Hay
Date
July 1, 2025, 3:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.152841] ==================================================================
[   19.152957] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   19.153148] Read of size 1 at addr ffff800080a17b4a by task kunit_try_catch/254
[   19.153403] 
[   19.153646] CPU: 0 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   19.153961] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.153995] Hardware name: linux,dummy-virt (DT)
[   19.154192] Call trace:
[   19.154304]  show_stack+0x20/0x38 (C)
[   19.154428]  dump_stack_lvl+0x8c/0xd0
[   19.154733]  print_report+0x310/0x608
[   19.154887]  kasan_report+0xdc/0x128
[   19.154966]  __asan_report_load1_noabort+0x20/0x30
[   19.155066]  kasan_alloca_oob_right+0x2dc/0x340
[   19.155551]  kunit_try_run_case+0x170/0x3f0
[   19.155704]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.155851]  kthread+0x328/0x630
[   19.155973]  ret_from_fork+0x10/0x20
[   19.156028] 
[   19.156060] The buggy address belongs to stack of task kunit_try_catch/254
[   19.156384] 
[   19.156437] The buggy address belongs to the virtual mapping at
[   19.156437]  [ffff800080a10000, ffff800080a19000) created by:
[   19.156437]  kernel_clone+0x150/0x7a8
[   19.156640] 
[   19.156718] The buggy address belongs to the physical page:
[   19.156867] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1057b1
[   19.156965] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.157341] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.157439] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.157610] page dumped because: kasan: bad access detected
[   19.157740] 
[   19.157811] Memory state around the buggy address:
[   19.157871]  ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.158211]  ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.158274] >ffff800080a17b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   19.158496]                                               ^
[   19.158658]  ffff800080a17b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   19.158765]  ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.158913] ==================================================================

[   13.490824] ==================================================================
[   13.491338] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   13.492081] Read of size 1 at addr ffff888103a17c4a by task kunit_try_catch/270
[   13.492573] 
[   13.492732] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.492783] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.492796] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.492985] Call Trace:
[   13.493000]  <TASK>
[   13.493033]  dump_stack_lvl+0x73/0xb0
[   13.493066]  print_report+0xd1/0x650
[   13.493091]  ? __virt_addr_valid+0x1db/0x2d0
[   13.493117]  ? kasan_alloca_oob_right+0x329/0x390
[   13.493138]  ? kasan_addr_to_slab+0x11/0xa0
[   13.493157]  ? kasan_alloca_oob_right+0x329/0x390
[   13.493179]  kasan_report+0x141/0x180
[   13.493210]  ? kasan_alloca_oob_right+0x329/0x390
[   13.493237]  __asan_report_load1_noabort+0x18/0x20
[   13.493260]  kasan_alloca_oob_right+0x329/0x390
[   13.493295]  ? irqentry_exit+0x2a/0x60
[   13.493316]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   13.493340]  ? trace_hardirqs_on+0x37/0xe0
[   13.493367]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.493392]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.493419]  kunit_try_run_case+0x1a5/0x480
[   13.493444]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.493465]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.493489]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.493511]  ? __kthread_parkme+0x82/0x180
[   13.493533]  ? preempt_count_sub+0x50/0x80
[   13.493557]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.493579]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.493601]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.493624]  kthread+0x337/0x6f0
[   13.493694]  ? trace_preempt_on+0x20/0xc0
[   13.493718]  ? __pfx_kthread+0x10/0x10
[   13.493738]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.493758]  ? calculate_sigpending+0x7b/0xa0
[   13.493782]  ? __pfx_kthread+0x10/0x10
[   13.493804]  ret_from_fork+0x116/0x1d0
[   13.493823]  ? __pfx_kthread+0x10/0x10
[   13.493843]  ret_from_fork_asm+0x1a/0x30
[   13.493874]  </TASK>
[   13.493885] 
[   13.502508] The buggy address belongs to stack of task kunit_try_catch/270
[   13.502871] 
[   13.502991] The buggy address belongs to the physical page:
[   13.503245] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a17
[   13.503538] flags: 0x200000000000000(node=0|zone=2)
[   13.503817] raw: 0200000000000000 ffffea00040e85c8 ffffea00040e85c8 0000000000000000
[   13.504406] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.504897] page dumped because: kasan: bad access detected
[   13.505199] 
[   13.505271] Memory state around the buggy address:
[   13.505428]  ffff888103a17b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.505728]  ffff888103a17b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.506090] >ffff888103a17c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.506311]                                               ^
[   13.506504]  ffff888103a17c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.507088]  ffff888103a17d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.507484] ==================================================================