Hay
Date
July 4, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.266880] ==================================================================
[   20.267007] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   20.267094] Read of size 1 at addr ffff800080a77b4a by task kunit_try_catch/253
[   20.267146] 
[   20.267200] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   20.267291] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.267329] Hardware name: linux,dummy-virt (DT)
[   20.267365] Call trace:
[   20.267800]  show_stack+0x20/0x38 (C)
[   20.268068]  dump_stack_lvl+0x8c/0xd0
[   20.268203]  print_report+0x310/0x608
[   20.268275]  kasan_report+0xdc/0x128
[   20.268440]  __asan_report_load1_noabort+0x20/0x30
[   20.268599]  kasan_alloca_oob_right+0x2dc/0x340
[   20.268670]  kunit_try_run_case+0x170/0x3f0
[   20.268764]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.269054]  kthread+0x328/0x630
[   20.269217]  ret_from_fork+0x10/0x20
[   20.269444] 
[   20.269529] The buggy address belongs to stack of task kunit_try_catch/253
[   20.269687] 
[   20.269747] The buggy address belongs to the virtual mapping at
[   20.269747]  [ffff800080a70000, ffff800080a79000) created by:
[   20.269747]  kernel_clone+0x150/0x7a8
[   20.269837] 
[   20.269859] The buggy address belongs to the physical page:
[   20.269900] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106f35
[   20.269961] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.270037] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.270087] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.270138] page dumped because: kasan: bad access detected
[   20.270182] 
[   20.270210] Memory state around the buggy address:
[   20.270253]  ffff800080a77a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.270300]  ffff800080a77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.270353] >ffff800080a77b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.270399]                                               ^
[   20.270444]  ffff800080a77b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.270506]  ffff800080a77c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.270547] ==================================================================

[   13.842869] ==================================================================
[   13.843373] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   13.843745] Read of size 1 at addr ffff88810392fc4a by task kunit_try_catch/270
[   13.844508] 
[   13.844630] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.844682] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.844695] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.844718] Call Trace:
[   13.844733]  <TASK>
[   13.844753]  dump_stack_lvl+0x73/0xb0
[   13.844796]  print_report+0xd1/0x650
[   13.844819]  ? __virt_addr_valid+0x1db/0x2d0
[   13.844841]  ? kasan_alloca_oob_right+0x329/0x390
[   13.844863]  ? kasan_addr_to_slab+0x11/0xa0
[   13.844883]  ? kasan_alloca_oob_right+0x329/0x390
[   13.844905]  kasan_report+0x141/0x180
[   13.844925]  ? kasan_alloca_oob_right+0x329/0x390
[   13.844951]  __asan_report_load1_noabort+0x18/0x20
[   13.844974]  kasan_alloca_oob_right+0x329/0x390
[   13.844993]  ? __kasan_check_write+0x18/0x20
[   13.845013]  ? __pfx_sched_clock_cpu+0x10/0x10
[   13.845034]  ? finish_task_switch.isra.0+0x153/0x700
[   13.845056]  ? ww_mutex_unlock+0x6e/0x150
[   13.845079]  ? trace_hardirqs_on+0x37/0xe0
[   13.845104]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.845128]  ? __schedule+0x10cc/0x2b60
[   13.845149]  ? __pfx_read_tsc+0x10/0x10
[   13.845170]  ? ktime_get_ts64+0x86/0x230
[   13.845193]  kunit_try_run_case+0x1a5/0x480
[   13.845228]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.845251]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.845273]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.845294]  ? __kthread_parkme+0x82/0x180
[   13.845314]  ? preempt_count_sub+0x50/0x80
[   13.845337]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.845359]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.845381]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.845404]  kthread+0x337/0x6f0
[   13.845421]  ? trace_preempt_on+0x20/0xc0
[   13.845442]  ? __pfx_kthread+0x10/0x10
[   13.845461]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.845482]  ? calculate_sigpending+0x7b/0xa0
[   13.845505]  ? __pfx_kthread+0x10/0x10
[   13.845524]  ret_from_fork+0x116/0x1d0
[   13.845542]  ? __pfx_kthread+0x10/0x10
[   13.845560]  ret_from_fork_asm+0x1a/0x30
[   13.845591]  </TASK>
[   13.845602] 
[   13.856075] The buggy address belongs to stack of task kunit_try_catch/270
[   13.857263] 
[   13.857460] The buggy address belongs to the physical page:
[   13.858172] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10392f
[   13.858622] flags: 0x200000000000000(node=0|zone=2)
[   13.858813] raw: 0200000000000000 ffffea00040e4bc8 ffffea00040e4bc8 0000000000000000
[   13.859037] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.859969] page dumped because: kasan: bad access detected
[   13.860962] 
[   13.861444] Memory state around the buggy address:
[   13.862171]  ffff88810392fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.863516]  ffff88810392fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.864620] >ffff88810392fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.865116]                                               ^
[   13.865937]  ffff88810392fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.866634]  ffff88810392fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.867526] ==================================================================