Hay
Date
July 5, 2025, 5:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.321833] ==================================================================
[   20.321927] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   20.322135] Read of size 1 at addr ffff800080a77b4a by task kunit_try_catch/253
[   20.322186] 
[   20.322220] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   20.322304] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.322485] Hardware name: linux,dummy-virt (DT)
[   20.322591] Call trace:
[   20.322620]  show_stack+0x20/0x38 (C)
[   20.322686]  dump_stack_lvl+0x8c/0xd0
[   20.322735]  print_report+0x310/0x608
[   20.322923]  kasan_report+0xdc/0x128
[   20.323112]  __asan_report_load1_noabort+0x20/0x30
[   20.323210]  kasan_alloca_oob_right+0x2dc/0x340
[   20.323362]  kunit_try_run_case+0x170/0x3f0
[   20.323462]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.323545]  kthread+0x328/0x630
[   20.323590]  ret_from_fork+0x10/0x20
[   20.323638] 
[   20.323661] The buggy address belongs to stack of task kunit_try_catch/253
[   20.323718] 
[   20.323742] The buggy address belongs to the virtual mapping at
[   20.323742]  [ffff800080a70000, ffff800080a79000) created by:
[   20.323742]  kernel_clone+0x150/0x7a8
[   20.324131] 
[   20.324227] The buggy address belongs to the physical page:
[   20.324492] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078bc
[   20.324572] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.324718] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.324808] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.324874] page dumped because: kasan: bad access detected
[   20.325058] 
[   20.325091] Memory state around the buggy address:
[   20.325135]  ffff800080a77a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.325212]  ffff800080a77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.325256] >ffff800080a77b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.325298]                                               ^
[   20.325336]  ffff800080a77b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.325440]  ffff800080a77c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.325481] ==================================================================

[   13.429810] ==================================================================
[   13.430434] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   13.430779] Read of size 1 at addr ffff888102b17c4a by task kunit_try_catch/271
[   13.431080] 
[   13.431193] CPU: 1 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.431431] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.431446] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.431483] Call Trace:
[   13.431496]  <TASK>
[   13.431513]  dump_stack_lvl+0x73/0xb0
[   13.431542]  print_report+0xd1/0x650
[   13.431564]  ? __virt_addr_valid+0x1db/0x2d0
[   13.431588]  ? kasan_alloca_oob_right+0x329/0x390
[   13.431610]  ? kasan_addr_to_slab+0x11/0xa0
[   13.431630]  ? kasan_alloca_oob_right+0x329/0x390
[   13.431653]  kasan_report+0x141/0x180
[   13.431686]  ? kasan_alloca_oob_right+0x329/0x390
[   13.431714]  __asan_report_load1_noabort+0x18/0x20
[   13.431739]  kasan_alloca_oob_right+0x329/0x390
[   13.431763]  ? finish_task_switch.isra.0+0x153/0x700
[   13.431787]  ? ww_mutex_unlock+0x6e/0x150
[   13.431809]  ? trace_hardirqs_on+0x37/0xe0
[   13.431835]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.431860]  ? __schedule+0x10cc/0x2b60
[   13.431881]  ? __pfx_read_tsc+0x10/0x10
[   13.431903]  ? ktime_get_ts64+0x86/0x230
[   13.431926]  kunit_try_run_case+0x1a5/0x480
[   13.431951]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.431973]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.431997]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.432019]  ? __kthread_parkme+0x82/0x180
[   13.432040]  ? preempt_count_sub+0x50/0x80
[   13.432063]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.432087]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.432109]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.432133]  kthread+0x337/0x6f0
[   13.432152]  ? trace_preempt_on+0x20/0xc0
[   13.432174]  ? __pfx_kthread+0x10/0x10
[   13.432237]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.432260]  ? calculate_sigpending+0x7b/0xa0
[   13.432284]  ? __pfx_kthread+0x10/0x10
[   13.432306]  ret_from_fork+0x116/0x1d0
[   13.432325]  ? __pfx_kthread+0x10/0x10
[   13.432346]  ret_from_fork_asm+0x1a/0x30
[   13.432377]  </TASK>
[   13.432388] 
[   13.440138] The buggy address belongs to stack of task kunit_try_catch/271
[   13.440944] 
[   13.441054] The buggy address belongs to the physical page:
[   13.441388] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b17
[   13.441724] flags: 0x200000000000000(node=0|zone=2)
[   13.441969] raw: 0200000000000000 0000000000000000 ffffea00040ac5c8 0000000000000000
[   13.442257] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.442496] page dumped because: kasan: bad access detected
[   13.442705] 
[   13.442799] Memory state around the buggy address:
[   13.443020]  ffff888102b17b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.443479]  ffff888102b17b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.443851] >ffff888102b17c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.444079]                                               ^
[   13.444295]  ffff888102b17c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.444641]  ffff888102b17d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.445039] ==================================================================