Hay
Date
July 8, 2025, 7:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.557083] ==================================================================
[   21.557143] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   21.557197] Read of size 1 at addr ffff800080a57b4a by task kunit_try_catch/253
[   21.557248] 
[   21.557278] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.557360] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.557387] Hardware name: linux,dummy-virt (DT)
[   21.557419] Call trace:
[   21.557443]  show_stack+0x20/0x38 (C)
[   21.557491]  dump_stack_lvl+0x8c/0xd0
[   21.557538]  print_report+0x310/0x608
[   21.557586]  kasan_report+0xdc/0x128
[   21.557630]  __asan_report_load1_noabort+0x20/0x30
[   21.557683]  kasan_alloca_oob_right+0x2dc/0x340
[   21.557857]  kunit_try_run_case+0x170/0x3f0
[   21.557915]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.559337]  kthread+0x328/0x630
[   21.559526]  ret_from_fork+0x10/0x20
[   21.559683] 
[   21.559740] The buggy address belongs to stack of task kunit_try_catch/253
[   21.559820] 
[   21.559847] The buggy address belongs to the virtual mapping at
[   21.559847]  [ffff800080a50000, ffff800080a59000) created by:
[   21.559847]  kernel_clone+0x150/0x7a8
[   21.560342] 
[   21.560379] The buggy address belongs to the physical page:
[   21.560656] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xfff00000c6481948 pfn:0x106481
[   21.560961] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.561366] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   21.561461] raw: fff00000c6481948 0000000000000000 00000001ffffffff 0000000000000000
[   21.561562] page dumped because: kasan: bad access detected
[   21.561687] 
[   21.561707] Memory state around the buggy address:
[   21.562418]  ffff800080a57a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.562522]  ffff800080a57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.562649] >ffff800080a57b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   21.562766]                                               ^
[   21.562840]  ffff800080a57b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   21.562947]  ffff800080a57c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   21.563123] ==================================================================

[   14.871393] ==================================================================
[   14.872709] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.873053] Read of size 1 at addr ffff88810398fc4a by task kunit_try_catch/270
[   14.873767] 
[   14.874023] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.874309] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.874324] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.874347] Call Trace:
[   14.874361]  <TASK>
[   14.874378]  dump_stack_lvl+0x73/0xb0
[   14.874408]  print_report+0xd1/0x650
[   14.874431]  ? __virt_addr_valid+0x1db/0x2d0
[   14.874452]  ? kasan_alloca_oob_right+0x329/0x390
[   14.874474]  ? kasan_addr_to_slab+0x11/0xa0
[   14.874494]  ? kasan_alloca_oob_right+0x329/0x390
[   14.874528]  kasan_report+0x141/0x180
[   14.874549]  ? kasan_alloca_oob_right+0x329/0x390
[   14.874576]  __asan_report_load1_noabort+0x18/0x20
[   14.874599]  kasan_alloca_oob_right+0x329/0x390
[   14.874622]  ? finish_task_switch.isra.0+0x153/0x700
[   14.874644]  ? out_of_line_wait_on_bit_timeout+0x7e/0x190
[   14.874669]  ? trace_hardirqs_on+0x37/0xe0
[   14.874693]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.874715]  ? __kasan_check_write+0x18/0x20
[   14.874732]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.874757]  ? trace_hardirqs_on+0x37/0xe0
[   14.874778]  ? __pfx_read_tsc+0x10/0x10
[   14.874799]  ? ktime_get_ts64+0x86/0x230
[   14.874822]  kunit_try_run_case+0x1a5/0x480
[   14.874846]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.874871]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.874893]  ? __kthread_parkme+0x82/0x180
[   14.874913]  ? preempt_count_sub+0x50/0x80
[   14.874935]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.874958]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.874980]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.875003]  kthread+0x337/0x6f0
[   14.875021]  ? trace_preempt_on+0x20/0xc0
[   14.875056]  ? __pfx_kthread+0x10/0x10
[   14.875113]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.875134]  ? calculate_sigpending+0x7b/0xa0
[   14.875157]  ? __pfx_kthread+0x10/0x10
[   14.875178]  ret_from_fork+0x116/0x1d0
[   14.875196]  ? __pfx_kthread+0x10/0x10
[   14.875216]  ret_from_fork_asm+0x1a/0x30
[   14.875248]  </TASK>
[   14.875259] 
[   14.888367] The buggy address belongs to stack of task kunit_try_catch/270
[   14.888884] 
[   14.889149] The buggy address belongs to the physical page:
[   14.889690] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10398f
[   14.890239] flags: 0x200000000000000(node=0|zone=2)
[   14.890624] raw: 0200000000000000 ffffea00040e63c8 ffffea00040e63c8 0000000000000000
[   14.891153] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.891476] page dumped because: kasan: bad access detected
[   14.891891] 
[   14.892123] Memory state around the buggy address:
[   14.892684]  ffff88810398fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.893287]  ffff88810398fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.893786] >ffff88810398fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.894330]                                               ^
[   14.894766]  ffff88810398fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.895278]  ffff88810398fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.895852] ==================================================================