Hay
Date
July 16, 2025, 3:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.753745] ==================================================================
[   18.753834] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   18.753893] Read of size 1 at addr ffff800080a37b5f by task kunit_try_catch/251
[   18.754313] 
[   18.754383] CPU: 1 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   18.754798] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.754841] Hardware name: linux,dummy-virt (DT)
[   18.754964] Call trace:
[   18.755012]  show_stack+0x20/0x38 (C)
[   18.755086]  dump_stack_lvl+0x8c/0xd0
[   18.755396]  print_report+0x310/0x5d0
[   18.755511]  kasan_report+0xdc/0x128
[   18.755606]  __asan_report_load1_noabort+0x20/0x30
[   18.756043]  kasan_alloca_oob_left+0x2b8/0x310
[   18.756138]  kunit_try_run_case+0x170/0x3f0
[   18.756509]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.756643]  kthread+0x328/0x630
[   18.756956]  ret_from_fork+0x10/0x20
[   18.757146] 
[   18.757409] The buggy address belongs to stack of task kunit_try_catch/251
[   18.757578] 
[   18.757647] The buggy address ffff800080a37b5f belongs to a vmalloc virtual mapping
[   18.757802] The buggy address belongs to the physical page:
[   18.757963] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107842
[   18.758131] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.758462] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.758682] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.758798] page dumped because: kasan: bad access detected
[   18.758925] 
[   18.759081] Memory state around the buggy address:
[   18.759128]  ffff800080a37a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.759540]  ffff800080a37a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.759676] >ffff800080a37b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   18.759836]                                                     ^
[   18.759901]  ffff800080a37b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   18.759955]  ffff800080a37c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.760077] ==================================================================

[   14.449617] ==================================================================
[   14.450904] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   14.451692] Read of size 1 at addr ffff88810398fc3f by task kunit_try_catch/268
[   14.452330] 
[   14.452543] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.452598] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.452610] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.452630] Call Trace:
[   14.452643]  <TASK>
[   14.452660]  dump_stack_lvl+0x73/0xb0
[   14.452692]  print_report+0xd1/0x610
[   14.452716]  ? __virt_addr_valid+0x1db/0x2d0
[   14.452740]  ? kasan_alloca_oob_left+0x320/0x380
[   14.452775]  ? kasan_addr_to_slab+0x11/0xa0
[   14.452796]  ? kasan_alloca_oob_left+0x320/0x380
[   14.452820]  kasan_report+0x141/0x180
[   14.452842]  ? kasan_alloca_oob_left+0x320/0x380
[   14.452871]  __asan_report_load1_noabort+0x18/0x20
[   14.452897]  kasan_alloca_oob_left+0x320/0x380
[   14.452920]  ? __kasan_check_write+0x18/0x20
[   14.452940]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.452964]  ? finish_task_switch.isra.0+0x153/0x700
[   14.452989]  ? __schedule+0x200e/0x2b60
[   14.453011]  ? trace_hardirqs_on+0x37/0xe0
[   14.453038]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   14.453062]  ? __kasan_check_write+0x18/0x20
[   14.453083]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.453110]  ? trace_hardirqs_on+0x37/0xe0
[   14.453134]  ? __pfx_read_tsc+0x10/0x10
[   14.453156]  ? ktime_get_ts64+0x86/0x230
[   14.453180]  kunit_try_run_case+0x1a5/0x480
[   14.453207]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.453234]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.453258]  ? __kthread_parkme+0x82/0x180
[   14.453279]  ? preempt_count_sub+0x50/0x80
[   14.453303]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.453328]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.453354]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.453380]  kthread+0x337/0x6f0
[   14.453401]  ? trace_preempt_on+0x20/0xc0
[   14.453424]  ? __pfx_kthread+0x10/0x10
[   14.453454]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.453477]  ? calculate_sigpending+0x7b/0xa0
[   14.453503]  ? __pfx_kthread+0x10/0x10
[   14.453524]  ret_from_fork+0x116/0x1d0
[   14.453544]  ? __pfx_kthread+0x10/0x10
[   14.453565]  ret_from_fork_asm+0x1a/0x30
[   14.453597]  </TASK>
[   14.453609] 
[   14.466245] The buggy address belongs to stack of task kunit_try_catch/268
[   14.466701] 
[   14.466786] The buggy address belongs to the physical page:
[   14.466964] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10398f
[   14.467214] flags: 0x200000000000000(node=0|zone=2)
[   14.467389] raw: 0200000000000000 ffffea00040e63c8 ffffea00040e63c8 0000000000000000
[   14.468038] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.468748] page dumped because: kasan: bad access detected
[   14.469321] 
[   14.469515] Memory state around the buggy address:
[   14.469964]  ffff88810398fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.470614]  ffff88810398fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.471233] >ffff88810398fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.471938]                                         ^
[   14.472105]  ffff88810398fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.472322]  ffff88810398fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.472786] ==================================================================