Hay
Date
July 3, 2025, 6:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.091817] ==================================================================
[   19.091882] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   19.092071] Read of size 1 at addr ffff800080ae7b4a by task kunit_try_catch/253
[   19.092148] 
[   19.092188] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   19.092276] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.092314] Hardware name: linux,dummy-virt (DT)
[   19.092359] Call trace:
[   19.092391]  show_stack+0x20/0x38 (C)
[   19.092452]  dump_stack_lvl+0x8c/0xd0
[   19.092502]  print_report+0x310/0x608
[   19.093223]  kasan_report+0xdc/0x128
[   19.093373]  __asan_report_load1_noabort+0x20/0x30
[   19.093516]  kasan_alloca_oob_right+0x2dc/0x340
[   19.093569]  kunit_try_run_case+0x170/0x3f0
[   19.093903]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.094120]  kthread+0x328/0x630
[   19.094242]  ret_from_fork+0x10/0x20
[   19.094438] 
[   19.094505] The buggy address belongs to stack of task kunit_try_catch/253
[   19.094641] 
[   19.094708] The buggy address belongs to the virtual mapping at
[   19.094708]  [ffff800080ae0000, ffff800080ae9000) created by:
[   19.094708]  kernel_clone+0x150/0x7a8
[   19.095152] 
[   19.095247] The buggy address belongs to the physical page:
[   19.095307] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065c7
[   19.095430] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.095787] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.096204] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.096333] page dumped because: kasan: bad access detected
[   19.096403] 
[   19.096522] Memory state around the buggy address:
[   19.096747]  ffff800080ae7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.096827]  ffff800080ae7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.097118] >ffff800080ae7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   19.097194]                                               ^
[   19.097302]  ffff800080ae7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   19.097348]  ffff800080ae7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.097553] ==================================================================

[   13.266784] ==================================================================
[   13.267647] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   13.268220] Read of size 1 at addr ffff888103a67c4a by task kunit_try_catch/271
[   13.268825] 
[   13.269059] CPU: 0 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.269122] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.269136] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.269308] Call Trace:
[   13.269341]  <TASK>
[   13.269358]  dump_stack_lvl+0x73/0xb0
[   13.269386]  print_report+0xd1/0x650
[   13.269409]  ? __virt_addr_valid+0x1db/0x2d0
[   13.269431]  ? kasan_alloca_oob_right+0x329/0x390
[   13.269454]  ? kasan_addr_to_slab+0x11/0xa0
[   13.269473]  ? kasan_alloca_oob_right+0x329/0x390
[   13.269495]  kasan_report+0x141/0x180
[   13.269517]  ? kasan_alloca_oob_right+0x329/0x390
[   13.269543]  __asan_report_load1_noabort+0x18/0x20
[   13.269566]  kasan_alloca_oob_right+0x329/0x390
[   13.269589]  ? __pfx_sched_clock_cpu+0x10/0x10
[   13.269609]  ? finish_task_switch.isra.0+0x153/0x700
[   13.269631]  ? out_of_line_wait_on_bit_timeout+0x7e/0x190
[   13.269654]  ? trace_hardirqs_on+0x37/0xe0
[   13.269679]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.269703]  ? __schedule+0x10cc/0x2b60
[   13.269724]  ? __pfx_read_tsc+0x10/0x10
[   13.269743]  ? ktime_get_ts64+0x86/0x230
[   13.269766]  kunit_try_run_case+0x1a5/0x480
[   13.269789]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.269811]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.269833]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.269855]  ? __kthread_parkme+0x82/0x180
[   13.269875]  ? preempt_count_sub+0x50/0x80
[   13.269898]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.269921]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.269943]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.269966]  kthread+0x337/0x6f0
[   13.269984]  ? trace_preempt_on+0x20/0xc0
[   13.270006]  ? __pfx_kthread+0x10/0x10
[   13.270025]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.270046]  ? calculate_sigpending+0x7b/0xa0
[   13.270070]  ? __pfx_kthread+0x10/0x10
[   13.270091]  ret_from_fork+0x116/0x1d0
[   13.270124]  ? __pfx_kthread+0x10/0x10
[   13.270145]  ret_from_fork_asm+0x1a/0x30
[   13.270188]  </TASK>
[   13.270199] 
[   13.283159] The buggy address belongs to stack of task kunit_try_catch/271
[   13.283430] 
[   13.283523] The buggy address belongs to the physical page:
[   13.284004] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a67
[   13.284968] flags: 0x200000000000000(node=0|zone=2)
[   13.285501] raw: 0200000000000000 ffffea00040e99c8 ffffea00040e99c8 0000000000000000
[   13.286189] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.286658] page dumped because: kasan: bad access detected
[   13.287190] 
[   13.287321] Memory state around the buggy address:
[   13.287565]  ffff888103a67b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.288210]  ffff888103a67b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.288743] >ffff888103a67c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.288962]                                               ^
[   13.289153]  ffff888103a67c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.289782]  ffff888103a67d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.290550] ==================================================================