Hay
Date
June 23, 2025, 1:39 p.m.

Environment
qemu-arm64
qemu-x86_64

[   28.007882] ==================================================================
[   28.008021] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   28.008157] Read of size 1 at addr ffff800080a57b4a by task kunit_try_catch/255
[   28.008797] 
[   28.008895] CPU: 0 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc1 #1 PREEMPT 
[   28.009294] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.009368] Hardware name: linux,dummy-virt (DT)
[   28.009727] Call trace:
[   28.010034]  show_stack+0x20/0x38 (C)
[   28.010173]  dump_stack_lvl+0x8c/0xd0
[   28.010296]  print_report+0x310/0x608
[   28.010430]  kasan_report+0xdc/0x128
[   28.010600]  __asan_report_load1_noabort+0x20/0x30
[   28.010744]  kasan_alloca_oob_right+0x2dc/0x340
[   28.011235]  kunit_try_run_case+0x170/0x3f0
[   28.011543]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.011743]  kthread+0x328/0x630
[   28.011882]  ret_from_fork+0x10/0x20
[   28.012011] 
[   28.012410] The buggy address belongs to stack of task kunit_try_catch/255
[   28.012696] 
[   28.012831] The buggy address belongs to the virtual mapping at
[   28.012831]  [ffff800080a50000, ffff800080a59000) created by:
[   28.012831]  kernel_clone+0x150/0x7a8
[   28.013237] 
[   28.013291] The buggy address belongs to the physical page:
[   28.013369] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107057
[   28.013516] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   28.013669] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   28.013788] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   28.013884] page dumped because: kasan: bad access detected
[   28.014017] 
[   28.014177] Memory state around the buggy address:
[   28.014360]  ffff800080a57a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   28.014994]  ffff800080a57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   28.015099] >ffff800080a57b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   28.015208]                                               ^
[   28.015290]  ffff800080a57b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   28.015945]  ffff800080a57c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   28.016919] ==================================================================

[   20.014345] ==================================================================
[   20.015816] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   20.016909] Read of size 1 at addr ffff88810a73fc4a by task kunit_try_catch/274
[   20.017717] 
[   20.017961] CPU: 1 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc1 #1 PREEMPT(voluntary) 
[   20.018088] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.018123] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.018184] Call Trace:
[   20.018236]  <TASK>
[   20.018285]  dump_stack_lvl+0x73/0xb0
[   20.018361]  print_report+0xd1/0x650
[   20.018433]  ? __virt_addr_valid+0x1db/0x2d0
[   20.018507]  ? kasan_alloca_oob_right+0x329/0x390
[   20.018577]  ? kasan_addr_to_slab+0x11/0xa0
[   20.018666]  ? kasan_alloca_oob_right+0x329/0x390
[   20.018735]  kasan_report+0x141/0x180
[   20.018773]  ? kasan_alloca_oob_right+0x329/0x390
[   20.018819]  __asan_report_load1_noabort+0x18/0x20
[   20.018850]  kasan_alloca_oob_right+0x329/0x390
[   20.018891]  ? pick_task_fair+0xc9/0x340
[   20.018930]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   20.018966]  ? trace_hardirqs_on+0x37/0xe0
[   20.019000]  ? __schedule+0x207f/0x2b60
[   20.019033]  ? __pfx_read_tsc+0x10/0x10
[   20.019062]  ? ktime_get_ts64+0x86/0x230
[   20.019098]  kunit_try_run_case+0x1a5/0x480
[   20.019136]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.019170]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   20.019206]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   20.019271]  ? __kthread_parkme+0x82/0x180
[   20.019308]  ? preempt_count_sub+0x50/0x80
[   20.019345]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.019382]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.019417]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   20.019452]  kthread+0x337/0x6f0
[   20.019476]  ? trace_preempt_on+0x20/0xc0
[   20.019509]  ? __pfx_kthread+0x10/0x10
[   20.019535]  ? _raw_spin_unlock_irq+0x47/0x80
[   20.019566]  ? calculate_sigpending+0x7b/0xa0
[   20.019598]  ? __pfx_kthread+0x10/0x10
[   20.019652]  ret_from_fork+0x41/0x80
[   20.019685]  ? __pfx_kthread+0x10/0x10
[   20.019710]  ret_from_fork_asm+0x1a/0x30
[   20.019756]  </TASK>
[   20.019770] 
[   20.035542] The buggy address belongs to stack of task kunit_try_catch/274
[   20.036272] 
[   20.036507] The buggy address belongs to the physical page:
[   20.037053] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a73f
[   20.037808] flags: 0x200000000000000(node=0|zone=2)
[   20.038183] raw: 0200000000000000 ffffea000429cfc8 ffffea000429cfc8 0000000000000000
[   20.038934] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   20.039680] page dumped because: kasan: bad access detected
[   20.040243] 
[   20.040481] Memory state around the buggy address:
[   20.040949]  ffff88810a73fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.041596]  ffff88810a73fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.042097] >ffff88810a73fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.042822]                                               ^
[   20.043404]  ffff88810a73fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   20.043967]  ffff88810a73fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   20.044569] ==================================================================