Hay
Date
June 2, 2025, 2:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.984587] ==================================================================
[   21.985440] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2e4/0x348
[   21.986364] Read of size 1 at addr ffff800080be7bea by task kunit_try_catch/240
[   21.987022] 
[   21.987464] CPU: 1 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G    B            N 6.12.32-rc1 #1
[   21.987683] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.987761] Hardware name: linux,dummy-virt (DT)
[   21.987839] Call trace:
[   21.987899]  dump_backtrace+0x9c/0x128
[   21.988020]  show_stack+0x20/0x38
[   21.988114]  dump_stack_lvl+0x8c/0xd0
[   21.988644]  print_report+0x310/0x5f0
[   21.988694]  kasan_report+0xdc/0x128
[   21.988741]  __asan_report_load1_noabort+0x20/0x30
[   21.988793]  kasan_alloca_oob_right+0x2e4/0x348
[   21.988842]  kunit_try_run_case+0x170/0x3f0
[   21.988891]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.988945]  kthread+0x24c/0x2d0
[   21.988990]  ret_from_fork+0x10/0x20
[   21.989041] 
[   21.994826] The buggy address belongs to stack of task kunit_try_catch/240
[   21.996006] 
[   21.996455] The buggy address belongs to the virtual mapping at
[   21.996455]  [ffff800080be0000, ffff800080be9000) created by:
[   21.996455]  kernel_clone+0x150/0x7a8
[   21.997913] 
[   21.998302] The buggy address belongs to the physical page:
[   21.998688] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106dcb
[   21.999606] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   22.000344] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   22.001131] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   22.001730] page dumped because: kasan: bad access detected
[   22.002291] 
[   22.002582] Memory state around the buggy address:
[   22.003060]  ffff800080be7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.003684]  ffff800080be7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.004063] >ffff800080be7b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   22.004428]                                                           ^
[   22.004761]  ffff800080be7c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2
[   22.005113]  ffff800080be7c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00
[   22.006345] ==================================================================

[   13.969958] ==================================================================
[   13.970304] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x32b/0x390
[   13.970463] Read of size 1 at addr ffff888102b5fcaa by task kunit_try_catch/258
[   13.971126] 
[   13.971626] CPU: 1 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G    B            N 6.12.32-rc1 #1
[   13.971699] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.971714] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.971733] Call Trace:
[   13.971748]  <TASK>
[   13.971772]  dump_stack_lvl+0x73/0xb0
[   13.971806]  print_report+0xd1/0x640
[   13.971829]  ? __virt_addr_valid+0x1db/0x2d0
[   13.971851]  ? kasan_alloca_oob_right+0x32b/0x390
[   13.971872]  ? kasan_addr_to_slab+0x11/0xa0
[   13.971977]  ? kasan_alloca_oob_right+0x32b/0x390
[   13.972008]  kasan_report+0x140/0x180
[   13.972033]  ? kasan_alloca_oob_right+0x32b/0x390
[   13.972059]  __asan_report_load1_noabort+0x18/0x20
[   13.972079]  kasan_alloca_oob_right+0x32b/0x390
[   13.972219]  ? dup_user_cpus_ptr+0x11e/0x260
[   13.972242]  ? __schedule+0xc49/0x27a0
[   13.972262]  ? trace_hardirqs_on+0x37/0xe0
[   13.972288]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.972312]  ? __schedule+0xc49/0x27a0
[   13.972330]  ? __pfx_read_tsc+0x10/0x10
[   13.972350]  ? ktime_get_ts64+0x84/0x230
[   13.972374]  kunit_try_run_case+0x1a6/0x480
[   13.972394]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.972413]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   13.972432]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.972455]  ? __kthread_parkme+0x82/0x160
[   13.972474]  ? preempt_count_sub+0x50/0x80
[   13.972495]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.972513]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.972535]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.972558]  kthread+0x257/0x310
[   13.972574]  ? __pfx_kthread+0x10/0x10
[   13.972592]  ret_from_fork+0x41/0x80
[   13.972610]  ? __pfx_kthread+0x10/0x10
[   13.972627]  ret_from_fork_asm+0x1a/0x30
[   13.972656]  </TASK>
[   13.972689] 
[   13.978554] The buggy address belongs to stack of task kunit_try_catch/258
[   13.978714] 
[   13.978768] The buggy address belongs to the physical page:
[   13.978867] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b5f
[   13.979359] flags: 0x200000000000000(node=0|zone=2)
[   13.979655] raw: 0200000000000000 ffffea00040ad7c8 ffffea00040ad7c8 0000000000000000
[   13.980060] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.980185] page dumped because: kasan: bad access detected
[   13.980280] 
[   13.980326] Memory state around the buggy address:
[   13.980593]  ffff888102b5fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.980995]  ffff888102b5fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.981331] >ffff888102b5fc80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00
[   13.981523]                                   ^
[   13.981728]  ffff888102b5fd00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3
[   13.981926]  ffff888102b5fd80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1
[   13.982382] ==================================================================