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

Environment
qemu-arm64
qemu-x86_64

[   21.548461] ==================================================================
[   21.548671] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   21.548754] Read of size 1 at addr ffff800080a57b5f by task kunit_try_catch/251
[   21.548808] 
[   21.548908] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.548998] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.549051] Hardware name: linux,dummy-virt (DT)
[   21.549086] Call trace:
[   21.549120]  show_stack+0x20/0x38 (C)
[   21.549174]  dump_stack_lvl+0x8c/0xd0
[   21.549232]  print_report+0x310/0x608
[   21.549281]  kasan_report+0xdc/0x128
[   21.549328]  __asan_report_load1_noabort+0x20/0x30
[   21.549382]  kasan_alloca_oob_left+0x2b8/0x310
[   21.549430]  kunit_try_run_case+0x170/0x3f0
[   21.549489]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.549545]  kthread+0x328/0x630
[   21.549588]  ret_from_fork+0x10/0x20
[   21.549645] 
[   21.549669] The buggy address belongs to stack of task kunit_try_catch/251
[   21.549753] 
[   21.549779] The buggy address belongs to the virtual mapping at
[   21.549779]  [ffff800080a50000, ffff800080a59000) created by:
[   21.549779]  kernel_clone+0x150/0x7a8
[   21.549857] 
[   21.549879] The buggy address belongs to the physical page:
[   21.549912] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xfff00000c6481948 pfn:0x106481
[   21.549990] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.550071] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   21.550128] raw: fff00000c6481948 0000000000000000 00000001ffffffff 0000000000000000
[   21.550170] page dumped because: kasan: bad access detected
[   21.550201] 
[   21.550220] Memory state around the buggy address:
[   21.550255]  ffff800080a57a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.550299]  ffff800080a57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.550342] >ffff800080a57b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   21.550381]                                                     ^
[   21.550420]  ffff800080a57b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   21.550464]  ffff800080a57c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   21.550506] ==================================================================

[   14.842661] ==================================================================
[   14.843962] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   14.844820] Read of size 1 at addr ffff888103adfc3f by task kunit_try_catch/268
[   14.845118] 
[   14.845218] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.845267] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.845279] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.845300] Call Trace:
[   14.845314]  <TASK>
[   14.845332]  dump_stack_lvl+0x73/0xb0
[   14.845362]  print_report+0xd1/0x650
[   14.845384]  ? __virt_addr_valid+0x1db/0x2d0
[   14.845407]  ? kasan_alloca_oob_left+0x320/0x380
[   14.845428]  ? kasan_addr_to_slab+0x11/0xa0
[   14.845448]  ? kasan_alloca_oob_left+0x320/0x380
[   14.845470]  kasan_report+0x141/0x180
[   14.845491]  ? kasan_alloca_oob_left+0x320/0x380
[   14.845518]  __asan_report_load1_noabort+0x18/0x20
[   14.845541]  kasan_alloca_oob_left+0x320/0x380
[   14.845568]  ? __kasan_check_write+0x18/0x20
[   14.845587]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.845609]  ? finish_task_switch.isra.0+0x153/0x700
[   14.845631]  ? out_of_line_wait_on_bit_timeout+0x7e/0x190
[   14.845655]  ? trace_hardirqs_on+0x37/0xe0
[   14.845679]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   14.845704]  ? __schedule+0x10cc/0x2b60
[   14.845724]  ? __pfx_read_tsc+0x10/0x10
[   14.845747]  ? ktime_get_ts64+0x86/0x230
[   14.845773]  kunit_try_run_case+0x1a5/0x480
[   14.845797]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.845820]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.845843]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.845865]  ? __kthread_parkme+0x82/0x180
[   14.845886]  ? preempt_count_sub+0x50/0x80
[   14.845910]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.845933]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.845955]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.845976]  kthread+0x337/0x6f0
[   14.845996]  ? trace_preempt_on+0x20/0xc0
[   14.846017]  ? __pfx_kthread+0x10/0x10
[   14.846037]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.846499]  ? calculate_sigpending+0x7b/0xa0
[   14.846540]  ? __pfx_kthread+0x10/0x10
[   14.846563]  ret_from_fork+0x116/0x1d0
[   14.846582]  ? __pfx_kthread+0x10/0x10
[   14.846602]  ret_from_fork_asm+0x1a/0x30
[   14.846635]  </TASK>
[   14.846647] 
[   14.860569] The buggy address belongs to stack of task kunit_try_catch/268
[   14.861158] 
[   14.861406] The buggy address belongs to the physical page:
[   14.861643] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103adf
[   14.862067] flags: 0x200000000000000(node=0|zone=2)
[   14.862645] raw: 0200000000000000 ffffea00040eb7c8 ffffea00040eb7c8 0000000000000000
[   14.863145] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.863481] page dumped because: kasan: bad access detected
[   14.863800] 
[   14.864272] Memory state around the buggy address:
[   14.864533]  ffff888103adfb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.864810]  ffff888103adfb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.865452] >ffff888103adfc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.866036]                                         ^
[   14.866334]  ffff888103adfc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.866823]  ffff888103adfd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.867383] ==================================================================