Hay
Date
July 10, 2025, 6:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.076280] ==================================================================
[   19.076676] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   19.077163] Read of size 1 at addr ffff800080947b5f by task kunit_try_catch/251
[   19.077255] 
[   19.077298] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   19.077396] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.077734] Hardware name: linux,dummy-virt (DT)
[   19.077787] Call trace:
[   19.077815]  show_stack+0x20/0x38 (C)
[   19.078012]  dump_stack_lvl+0x8c/0xd0
[   19.078351]  print_report+0x310/0x608
[   19.078509]  kasan_report+0xdc/0x128
[   19.078842]  __asan_report_load1_noabort+0x20/0x30
[   19.079094]  kasan_alloca_oob_left+0x2b8/0x310
[   19.079324]  kunit_try_run_case+0x170/0x3f0
[   19.079478]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.079656]  kthread+0x328/0x630
[   19.079733]  ret_from_fork+0x10/0x20
[   19.080128] 
[   19.080198] The buggy address belongs to stack of task kunit_try_catch/251
[   19.080414] 
[   19.080564] The buggy address belongs to the virtual mapping at
[   19.080564]  [ffff800080940000, ffff800080949000) created by:
[   19.080564]  kernel_clone+0x150/0x7a8
[   19.080655] 
[   19.080716] The buggy address belongs to the physical page:
[   19.080965] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107004
[   19.081164] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.081432] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.081573] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.081833] page dumped because: kasan: bad access detected
[   19.081919] 
[   19.082072] Memory state around the buggy address:
[   19.082111]  ffff800080947a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.082158]  ffff800080947a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.082205] >ffff800080947b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   19.082562]                                                     ^
[   19.083029]  ffff800080947b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   19.083336]  ffff800080947c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.083430] ==================================================================

[   14.312293] ==================================================================
[   14.312693] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   14.313193] Read of size 1 at addr ffff888103b07c3f by task kunit_try_catch/268
[   14.313452] 
[   14.313724] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.313771] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.313783] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.313803] Call Trace:
[   14.313815]  <TASK>
[   14.313829]  dump_stack_lvl+0x73/0xb0
[   14.313860]  print_report+0xd1/0x650
[   14.313881]  ? __virt_addr_valid+0x1db/0x2d0
[   14.313905]  ? kasan_alloca_oob_left+0x320/0x380
[   14.313927]  ? kasan_addr_to_slab+0x11/0xa0
[   14.313948]  ? kasan_alloca_oob_left+0x320/0x380
[   14.313971]  kasan_report+0x141/0x180
[   14.313992]  ? kasan_alloca_oob_left+0x320/0x380
[   14.314019]  __asan_report_load1_noabort+0x18/0x20
[   14.314059]  kasan_alloca_oob_left+0x320/0x380
[   14.314081]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.314105]  ? finish_task_switch.isra.0+0x153/0x700
[   14.314127]  ? preempt_schedule_common+0xbe/0x110
[   14.314151]  ? trace_hardirqs_on+0x37/0xe0
[   14.314176]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   14.314201]  ? __schedule+0x10cc/0x2b60
[   14.314222]  ? __pfx_read_tsc+0x10/0x10
[   14.314244]  ? ktime_get_ts64+0x86/0x230
[   14.314268]  kunit_try_run_case+0x1a5/0x480
[   14.314295]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.314319]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.314343]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.314367]  ? __kthread_parkme+0x82/0x180
[   14.314389]  ? preempt_count_sub+0x50/0x80
[   14.314412]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.314438]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.314463]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.314489]  kthread+0x337/0x6f0
[   14.314508]  ? trace_preempt_on+0x20/0xc0
[   14.314529]  ? __pfx_kthread+0x10/0x10
[   14.314550]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.314572]  ? calculate_sigpending+0x7b/0xa0
[   14.314596]  ? __pfx_kthread+0x10/0x10
[   14.315101]  ret_from_fork+0x116/0x1d0
[   14.315123]  ? __pfx_kthread+0x10/0x10
[   14.315144]  ret_from_fork_asm+0x1a/0x30
[   14.315176]  </TASK>
[   14.315186] 
[   14.326137] The buggy address belongs to stack of task kunit_try_catch/268
[   14.326487] 
[   14.326872] The buggy address belongs to the physical page:
[   14.327311] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b07
[   14.327662] flags: 0x200000000000000(node=0|zone=2)
[   14.328340] raw: 0200000000000000 ffffea00040ec1c8 ffffea00040ec1c8 0000000000000000
[   14.328695] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.329176] page dumped because: kasan: bad access detected
[   14.329655] 
[   14.329853] Memory state around the buggy address:
[   14.330126]  ffff888103b07b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.330384]  ffff888103b07b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.330708] >ffff888103b07c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.330986]                                         ^
[   14.331372]  ffff888103b07c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.331689]  ffff888103b07d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.332263] ==================================================================