Hay
Date
June 23, 2025, 1:39 p.m.

Environment
qemu-arm64
qemu-x86_64

[   27.961128] ==================================================================
[   27.961327] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   27.964712] Read of size 1 at addr ffff800080a57b5f by task kunit_try_catch/253
[   27.965839] 
[   27.966666] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc1 #1 PREEMPT 
[   27.967320] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.967681] Hardware name: linux,dummy-virt (DT)
[   27.967793] Call trace:
[   27.967862]  show_stack+0x20/0x38 (C)
[   27.968001]  dump_stack_lvl+0x8c/0xd0
[   27.968284]  print_report+0x310/0x608
[   27.968625]  kasan_report+0xdc/0x128
[   27.969232]  __asan_report_load1_noabort+0x20/0x30
[   27.969606]  kasan_alloca_oob_left+0x2b8/0x310
[   27.969741]  kunit_try_run_case+0x170/0x3f0
[   27.969868]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.970000]  kthread+0x328/0x630
[   27.970117]  ret_from_fork+0x10/0x20
[   27.971524] 
[   27.971632] The buggy address belongs to stack of task kunit_try_catch/253
[   27.971808] 
[   27.971878] The buggy address belongs to the virtual mapping at
[   27.971878]  [ffff800080a50000, ffff800080a59000) created by:
[   27.971878]  kernel_clone+0x150/0x7a8
[   27.972321] 
[   27.972469] The buggy address belongs to the physical page:
[   27.972544] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107057
[   27.972679] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   27.973279] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   27.973448] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   27.973954] page dumped because: kasan: bad access detected
[   27.974053] 
[   27.974336] Memory state around the buggy address:
[   27.974701]  ffff800080a57a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.974861]  ffff800080a57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.975140] >ffff800080a57b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   27.975620]                                                     ^
[   27.975723]  ffff800080a57b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   27.975834]  ffff800080a57c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   27.976898] ==================================================================

[   19.969144] ==================================================================
[   19.970044] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   19.971654] Read of size 1 at addr ffff88810a78fc3f by task kunit_try_catch/272
[   19.972881] 
[   19.973112] CPU: 1 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc1 #1 PREEMPT(voluntary) 
[   19.973279] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.973322] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.973438] Call Trace:
[   19.973510]  <TASK>
[   19.973586]  dump_stack_lvl+0x73/0xb0
[   19.973690]  print_report+0xd1/0x650
[   19.973777]  ? __virt_addr_valid+0x1db/0x2d0
[   19.973932]  ? kasan_alloca_oob_left+0x320/0x380
[   19.974008]  ? kasan_addr_to_slab+0x11/0xa0
[   19.974073]  ? kasan_alloca_oob_left+0x320/0x380
[   19.974143]  kasan_report+0x141/0x180
[   19.974182]  ? kasan_alloca_oob_left+0x320/0x380
[   19.974266]  __asan_report_load1_noabort+0x18/0x20
[   19.974307]  kasan_alloca_oob_left+0x320/0x380
[   19.974346]  ? finish_task_switch.isra.0+0x153/0x700
[   19.974385]  ? rwsem_down_read_slowpath+0x6be/0xb90
[   19.974419]  ? trace_hardirqs_on+0x37/0xe0
[   19.974455]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   19.974494]  ? __schedule+0x10cc/0x2b60
[   19.974528]  ? __pfx_read_tsc+0x10/0x10
[   19.974558]  ? ktime_get_ts64+0x86/0x230
[   19.974594]  kunit_try_run_case+0x1a5/0x480
[   19.974696]  ? __pfx_kunit_try_run_case+0x10/0x10
[   19.974761]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   19.974800]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   19.974837]  ? __kthread_parkme+0x82/0x180
[   19.974873]  ? preempt_count_sub+0x50/0x80
[   19.974911]  ? __pfx_kunit_try_run_case+0x10/0x10
[   19.974947]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.974982]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   19.975017]  kthread+0x337/0x6f0
[   19.975042]  ? trace_preempt_on+0x20/0xc0
[   19.975075]  ? __pfx_kthread+0x10/0x10
[   19.975101]  ? _raw_spin_unlock_irq+0x47/0x80
[   19.975133]  ? calculate_sigpending+0x7b/0xa0
[   19.975167]  ? __pfx_kthread+0x10/0x10
[   19.975194]  ret_from_fork+0x41/0x80
[   19.975224]  ? __pfx_kthread+0x10/0x10
[   19.975250]  ret_from_fork_asm+0x1a/0x30
[   19.975298]  </TASK>
[   19.975333] 
[   19.996453] The buggy address belongs to stack of task kunit_try_catch/272
[   19.997369] 
[   19.997597] The buggy address belongs to the physical page:
[   19.998383] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a78f
[   19.999348] flags: 0x200000000000000(node=0|zone=2)
[   20.000012] raw: 0200000000000000 ffffea000429e3c8 ffffea000429e3c8 0000000000000000
[   20.001059] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   20.002342] page dumped because: kasan: bad access detected
[   20.002739] 
[   20.002968] Memory state around the buggy address:
[   20.003491]  ffff88810a78fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.004245]  ffff88810a78fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.005041] >ffff88810a78fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.006336]                                         ^
[   20.007021]  ffff88810a78fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   20.007961]  ffff88810a78fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   20.008635] ==================================================================