Hay
Date
June 17, 2025, 3:40 p.m.

Environment
qemu-arm64
qemu-x86_64

[   24.540657] ==================================================================
[   24.541641] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   24.542116] Read of size 1 at addr ffff800080a97b4a by task kunit_try_catch/255
[   24.542298] 
[   24.542380] CPU: 0 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT 
[   24.542557] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.542619] Hardware name: linux,dummy-virt (DT)
[   24.542693] Call trace:
[   24.542765]  show_stack+0x20/0x38 (C)
[   24.542899]  dump_stack_lvl+0x8c/0xd0
[   24.543018]  print_report+0x310/0x608
[   24.543129]  kasan_report+0xdc/0x128
[   24.543236]  __asan_report_load1_noabort+0x20/0x30
[   24.543357]  kasan_alloca_oob_right+0x2dc/0x340
[   24.543480]  kunit_try_run_case+0x170/0x3f0
[   24.543995]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.544611]  kthread+0x328/0x630
[   24.545354]  ret_from_fork+0x10/0x20
[   24.545672] 
[   24.545749] The buggy address belongs to stack of task kunit_try_catch/255
[   24.546091] 
[   24.546202] The buggy address belongs to the virtual mapping at
[   24.546202]  [ffff800080a90000, ffff800080a99000) created by:
[   24.546202]  kernel_clone+0x150/0x7a8
[   24.546464] 
[   24.546542] The buggy address belongs to the physical page:
[   24.546624] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078e1
[   24.546771] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   24.546928] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   24.547029] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   24.547108] page dumped because: kasan: bad access detected
[   24.547204] 
[   24.547244] Memory state around the buggy address:
[   24.547348]  ffff800080a97a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.547784]  ffff800080a97a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.547911] >ffff800080a97b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   24.548002]                                               ^
[   24.548097]  ffff800080a97b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   24.548222]  ffff800080a97c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   24.548329] ==================================================================

[   22.242901] ==================================================================
[   22.243854] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   22.244910] Read of size 1 at addr ffff8881039efc4a by task kunit_try_catch/273
[   22.245996] 
[   22.246263] CPU: 0 UID: 0 PID: 273 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT(voluntary) 
[   22.246385] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.246417] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.246468] Call Trace:
[   22.246504]  <TASK>
[   22.246541]  dump_stack_lvl+0x73/0xb0
[   22.246616]  print_report+0xd1/0x650
[   22.246688]  ? __virt_addr_valid+0x1db/0x2d0
[   22.246756]  ? kasan_alloca_oob_right+0x329/0x390
[   22.246818]  ? kasan_addr_to_slab+0x11/0xa0
[   22.246875]  ? kasan_alloca_oob_right+0x329/0x390
[   22.246938]  kasan_report+0x141/0x180
[   22.247000]  ? kasan_alloca_oob_right+0x329/0x390
[   22.247079]  __asan_report_load1_noabort+0x18/0x20
[   22.247145]  kasan_alloca_oob_right+0x329/0x390
[   22.247213]  ? finish_task_switch.isra.0+0x153/0x700
[   22.247277]  ? down_write_killable+0x8e/0x180
[   22.248482]  ? trace_hardirqs_on+0x37/0xe0
[   22.248560]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   22.248629]  ? __schedule+0x10cc/0x2b60
[   22.248693]  ? __pfx_read_tsc+0x10/0x10
[   22.248747]  ? ktime_get_ts64+0x86/0x230
[   22.248816]  kunit_try_run_case+0x1a5/0x480
[   22.248885]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.248943]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   22.249005]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   22.249096]  ? __kthread_parkme+0x82/0x180
[   22.249166]  ? preempt_count_sub+0x50/0x80
[   22.249229]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.249325]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.249400]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   22.249470]  kthread+0x337/0x6f0
[   22.249528]  ? trace_preempt_on+0x20/0xc0
[   22.249595]  ? __pfx_kthread+0x10/0x10
[   22.249653]  ? _raw_spin_unlock_irq+0x47/0x80
[   22.249709]  ? calculate_sigpending+0x7b/0xa0
[   22.249771]  ? __pfx_kthread+0x10/0x10
[   22.249825]  ret_from_fork+0x41/0x80
[   22.249887]  ? __pfx_kthread+0x10/0x10
[   22.249919]  ret_from_fork_asm+0x1a/0x30
[   22.249969]  </TASK>
[   22.249986] 
[   22.272265] The buggy address belongs to stack of task kunit_try_catch/273
[   22.272686] 
[   22.272789] The buggy address belongs to the physical page:
[   22.272987] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039ef
[   22.273259] flags: 0x200000000000000(node=0|zone=2)
[   22.274135] raw: 0200000000000000 ffffea00040e7bc8 ffffea00040e7bc8 0000000000000000
[   22.275574] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   22.276797] page dumped because: kasan: bad access detected
[   22.277431] 
[   22.277663] Memory state around the buggy address:
[   22.278510]  ffff8881039efb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.279174]  ffff8881039efb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.279898] >ffff8881039efc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   22.280802]                                               ^
[   22.281226]  ffff8881039efc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   22.282251]  ffff8881039efd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   22.282853] ==================================================================