Hay
Date
June 17, 2025, 6:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   19.183168] ==================================================================
[   19.183268] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   19.183338] Read of size 1 at addr ffff800080a57b5f by task kunit_try_catch/260
[   19.183393] 
[   19.183546] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT 
[   19.183838] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.183892] Hardware name: linux,dummy-virt (DT)
[   19.183947] Call trace:
[   19.183983]  show_stack+0x20/0x38 (C)
[   19.184042]  dump_stack_lvl+0x8c/0xd0
[   19.184105]  print_report+0x310/0x608
[   19.184157]  kasan_report+0xdc/0x128
[   19.184207]  __asan_report_load1_noabort+0x20/0x30
[   19.184262]  kasan_alloca_oob_left+0x2b8/0x310
[   19.184316]  kunit_try_run_case+0x170/0x3f0
[   19.184367]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.184424]  kthread+0x328/0x630
[   19.184468]  ret_from_fork+0x10/0x20
[   19.184521] 
[   19.184546] The buggy address belongs to stack of task kunit_try_catch/260
[   19.184637] 
[   19.184670] The buggy address belongs to the virtual mapping at
[   19.184670]  [ffff800080a50000, ffff800080a59000) created by:
[   19.184670]  kernel_clone+0x150/0x7a8
[   19.184754] 
[   19.184778] The buggy address belongs to the physical page:
[   19.184815] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1050af
[   19.184875] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.184962] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.185017] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.185062] page dumped because: kasan: bad access detected
[   19.185096] 
[   19.185117] Memory state around the buggy address:
[   19.185152]  ffff800080a57a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.185198]  ffff800080a57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.185246] >ffff800080a57b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   19.185759]                                                     ^
[   19.185846]  ffff800080a57b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   19.185903]  ffff800080a57c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.185960] ==================================================================

[   20.658848] ==================================================================
[   20.659681] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   20.660275] Read of size 1 at addr ffff888103aa7c3f by task kunit_try_catch/278
[   20.660885] 
[   20.661127] CPU: 0 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) 
[   20.661304] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.661345] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.661406] Call Trace:
[   20.661447]  <TASK>
[   20.661493]  dump_stack_lvl+0x73/0xb0
[   20.661579]  print_report+0xd1/0x650
[   20.661654]  ? __virt_addr_valid+0x1db/0x2d0
[   20.661725]  ? kasan_alloca_oob_left+0x320/0x380
[   20.661794]  ? kasan_addr_to_slab+0x11/0xa0
[   20.661881]  ? kasan_alloca_oob_left+0x320/0x380
[   20.661954]  kasan_report+0x141/0x180
[   20.662028]  ? kasan_alloca_oob_left+0x320/0x380
[   20.662110]  __asan_report_load1_noabort+0x18/0x20
[   20.662191]  kasan_alloca_oob_left+0x320/0x380
[   20.662314]  ? trace_hardirqs_on+0x37/0xe0
[   20.662434]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   20.662528]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   20.662610]  ? __softirqentry_text_end+0x16/0x16
[   20.662684]  ? __pfx_read_tsc+0x10/0x10
[   20.662729]  ? ktime_get_ts64+0x86/0x230
[   20.662768]  kunit_try_run_case+0x1a5/0x480
[   20.662803]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.662860]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   20.662895]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   20.662931]  ? __kthread_parkme+0x82/0x180
[   20.662960]  ? preempt_count_sub+0x50/0x80
[   20.662991]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.663025]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.663057]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   20.663089]  kthread+0x337/0x6f0
[   20.663114]  ? trace_preempt_on+0x20/0xc0
[   20.663146]  ? __pfx_kthread+0x10/0x10
[   20.663173]  ? _raw_spin_unlock_irq+0x47/0x80
[   20.663207]  ? calculate_sigpending+0x7b/0xa0
[   20.663299]  ? __pfx_kthread+0x10/0x10
[   20.663359]  ret_from_fork+0x116/0x1d0
[   20.663388]  ? __pfx_kthread+0x10/0x10
[   20.663418]  ret_from_fork_asm+0x1a/0x30
[   20.663460]  </TASK>
[   20.663476] 
[   20.686290] The buggy address belongs to stack of task kunit_try_catch/278
[   20.687717] 
[   20.687943] The buggy address belongs to the physical page:
[   20.688407] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103aa7
[   20.689170] flags: 0x200000000000000(node=0|zone=2)
[   20.689715] raw: 0200000000000000 ffffea00040ea9c8 ffffea00040ea9c8 0000000000000000
[   20.690539] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   20.691199] page dumped because: kasan: bad access detected
[   20.691808] 
[   20.692024] Memory state around the buggy address:
[   20.692562]  ffff888103aa7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.693187]  ffff888103aa7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.693925] >ffff888103aa7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.694686]                                         ^
[   20.695098]  ffff888103aa7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   20.695918]  ffff888103aa7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   20.696494] ==================================================================