Hay
Date
May 26, 2025, 9:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.218012] ==================================================================
[   20.218198] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   20.218314] Read of size 1 at addr ffff800080a17b5f by task kunit_try_catch/251
[   20.218707] 
[   20.218854] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT 
[   20.219040] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.219099] Hardware name: linux,dummy-virt (DT)
[   20.219186] Call trace:
[   20.219254]  show_stack+0x20/0x38 (C)
[   20.219428]  dump_stack_lvl+0x8c/0xd0
[   20.219514]  print_report+0x310/0x608
[   20.219595]  kasan_report+0xdc/0x128
[   20.219679]  __asan_report_load1_noabort+0x20/0x30
[   20.219793]  kasan_alloca_oob_left+0x2b8/0x310
[   20.219899]  kunit_try_run_case+0x170/0x3f0
[   20.220044]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.220157]  kthread+0x328/0x630
[   20.220461]  ret_from_fork+0x10/0x20
[   20.220583] 
[   20.220672] The buggy address belongs to stack of task kunit_try_catch/251
[   20.220810] 
[   20.220874] The buggy address belongs to the virtual mapping at
[   20.220874]  [ffff800080a10000, ffff800080a19000) created by:
[   20.220874]  kernel_clone+0x150/0x7a8
[   20.221050] 
[   20.221098] The buggy address belongs to the physical page:
[   20.221171] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077f8
[   20.221298] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.221713] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.221878] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.221998] page dumped because: kasan: bad access detected
[   20.222096] 
[   20.222148] Memory state around the buggy address:
[   20.222223]  ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.222330]  ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.222420] >ffff800080a17b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   20.222508]                                                     ^
[   20.222592]  ffff800080a17b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.222696]  ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.222929] ==================================================================


[   12.842691] ==================================================================
[   12.843180] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   12.843522] Read of size 1 at addr ffff88810392fc3f by task kunit_try_catch/269
[   12.843879] 
[   12.843979] CPU: 1 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) 
[   12.844024] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.844037] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.844059] Call Trace:
[   12.844070]  <TASK>
[   12.844087]  dump_stack_lvl+0x73/0xb0
[   12.844114]  print_report+0xd1/0x650
[   12.844138]  ? __virt_addr_valid+0x1db/0x2d0
[   12.844161]  ? kasan_alloca_oob_left+0x320/0x380
[   12.844183]  ? kasan_addr_to_slab+0x11/0xa0
[   12.844205]  ? kasan_alloca_oob_left+0x320/0x380
[   12.844228]  kasan_report+0x141/0x180
[   12.844250]  ? kasan_alloca_oob_left+0x320/0x380
[   12.844278]  __asan_report_load1_noabort+0x18/0x20
[   12.844299]  kasan_alloca_oob_left+0x320/0x380
[   12.844322]  ? irqentry_exit+0x2a/0x60
[   12.844342]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   12.844369]  ? trace_hardirqs_on+0x37/0xe0
[   12.844407]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   12.844435]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   12.844464]  kunit_try_run_case+0x1a5/0x480
[   12.844488]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.844509]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.844536]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.844561]  ? __kthread_parkme+0x82/0x180
[   12.844582]  ? preempt_count_sub+0x50/0x80
[   12.844605]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.844626]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.844651]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.844675]  kthread+0x337/0x6f0
[   12.844695]  ? trace_preempt_on+0x20/0xc0
[   12.844716]  ? __pfx_kthread+0x10/0x10
[   12.844737]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.844760]  ? calculate_sigpending+0x7b/0xa0
[   12.844840]  ? __pfx_kthread+0x10/0x10
[   12.844865]  ret_from_fork+0x116/0x1d0
[   12.844885]  ? __pfx_kthread+0x10/0x10
[   12.844905]  ret_from_fork_asm+0x1a/0x30
[   12.844936]  </TASK>
[   12.844947] 
[   12.856493] The buggy address belongs to stack of task kunit_try_catch/269
[   12.857102] 
[   12.857308] The buggy address belongs to the physical page:
[   12.857611] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10392f
[   12.858276] flags: 0x200000000000000(node=0|zone=2)
[   12.858585] raw: 0200000000000000 ffffea00040e4bc8 ffffea00040e4bc8 0000000000000000
[   12.859276] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   12.859607] page dumped because: kasan: bad access detected
[   12.860021] 
[   12.860249] Memory state around the buggy address:
[   12.860692]  ffff88810392fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.861231]  ffff88810392fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.861647] >ffff88810392fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   12.862211]                                         ^
[   12.862459]  ffff88810392fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   12.862931]  ffff88810392fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.863436] ==================================================================