Hay
Date
July 9, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.787626] ==================================================================
[   18.788036] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   18.788126] Read of size 1 at addr ffff800080a17b4a by task kunit_try_catch/253
[   18.788183] 
[   18.788222] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.788670] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.788761] Hardware name: linux,dummy-virt (DT)
[   18.788934] Call trace:
[   18.789024]  show_stack+0x20/0x38 (C)
[   18.789085]  dump_stack_lvl+0x8c/0xd0
[   18.789151]  print_report+0x310/0x608
[   18.789207]  kasan_report+0xdc/0x128
[   18.789371]  __asan_report_load1_noabort+0x20/0x30
[   18.789462]  kasan_alloca_oob_right+0x2dc/0x340
[   18.789528]  kunit_try_run_case+0x170/0x3f0
[   18.789579]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.789634]  kthread+0x328/0x630
[   18.789696]  ret_from_fork+0x10/0x20
[   18.789748] 
[   18.789783] The buggy address belongs to stack of task kunit_try_catch/253
[   18.789838] 
[   18.789878] The buggy address belongs to the virtual mapping at
[   18.789878]  [ffff800080a10000, ffff800080a19000) created by:
[   18.789878]  kernel_clone+0x150/0x7a8
[   18.789964] 
[   18.789995] The buggy address belongs to the physical page:
[   18.790028] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106ce9
[   18.790094] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.790534] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.790599] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.791104] page dumped because: kasan: bad access detected
[   18.791541] 
[   18.791623] Memory state around the buggy address:
[   18.791837]  ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.791915]  ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.791961] >ffff800080a17b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   18.792003]                                               ^
[   18.792040]  ffff800080a17b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   18.792445]  ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.792593] ==================================================================

[   14.388912] ==================================================================
[   14.389615] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.389912] Read of size 1 at addr ffff8881039dfc4a by task kunit_try_catch/270
[   14.390241] 
[   14.390411] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.390457] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.390469] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.390489] Call Trace:
[   14.390501]  <TASK>
[   14.390515]  dump_stack_lvl+0x73/0xb0
[   14.390545]  print_report+0xd1/0x650
[   14.390568]  ? __virt_addr_valid+0x1db/0x2d0
[   14.390590]  ? kasan_alloca_oob_right+0x329/0x390
[   14.390613]  ? kasan_addr_to_slab+0x11/0xa0
[   14.390633]  ? kasan_alloca_oob_right+0x329/0x390
[   14.390657]  kasan_report+0x141/0x180
[   14.390678]  ? kasan_alloca_oob_right+0x329/0x390
[   14.390716]  __asan_report_load1_noabort+0x18/0x20
[   14.390741]  kasan_alloca_oob_right+0x329/0x390
[   14.390763]  ? __kasan_check_write+0x18/0x20
[   14.390783]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.390806]  ? finish_task_switch.isra.0+0x153/0x700
[   14.390829]  ? preempt_schedule_common+0xbe/0x110
[   14.390853]  ? trace_hardirqs_on+0x37/0xe0
[   14.390880]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.390903]  ? __kasan_check_write+0x18/0x20
[   14.390922]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.390949]  ? __pfx_queued_spin_lock_slowpath+0x10/0x10
[   14.390974]  ? __pfx_read_tsc+0x10/0x10
[   14.390995]  ? ktime_get_ts64+0x86/0x230
[   14.391019]  kunit_try_run_case+0x1a5/0x480
[   14.391044]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.391067]  ? _raw_spin_lock_irqsave+0xf9/0x100
[   14.391146]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.391171]  ? __kthread_parkme+0x82/0x180
[   14.391193]  ? preempt_count_sub+0x50/0x80
[   14.391216]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.391241]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.391267]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.391292]  kthread+0x337/0x6f0
[   14.391311]  ? trace_preempt_on+0x20/0xc0
[   14.391334]  ? __pfx_kthread+0x10/0x10
[   14.391354]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.391375]  ? calculate_sigpending+0x7b/0xa0
[   14.391399]  ? __pfx_kthread+0x10/0x10
[   14.391420]  ret_from_fork+0x116/0x1d0
[   14.391439]  ? __pfx_kthread+0x10/0x10
[   14.391459]  ret_from_fork_asm+0x1a/0x30
[   14.391489]  </TASK>
[   14.391500] 
[   14.403323] The buggy address belongs to stack of task kunit_try_catch/270
[   14.403547] 
[   14.403617] The buggy address belongs to the physical page:
[   14.403797] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039df
[   14.404030] flags: 0x200000000000000(node=0|zone=2)
[   14.404196] raw: 0200000000000000 ffffea00040e77c8 ffffea00040e77c8 0000000000000000
[   14.404435] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.404650] page dumped because: kasan: bad access detected
[   14.405658] 
[   14.405750] Memory state around the buggy address:
[   14.405901]  ffff8881039dfb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.406210]  ffff8881039dfb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.406468] >ffff8881039dfc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.406691]                                               ^
[   14.406948]  ffff8881039dfc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.407415]  ffff8881039dfd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.408893] ==================================================================