Hay
Date
June 20, 2025, 12:38 p.m.

Environment
qemu-arm64
qemu-x86_64

[   35.030283] ==================================================================
[   35.030472] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   35.030649] Read of size 1 at addr ffff800080a57b4a by task kunit_try_catch/264
[   35.030784] 
[   35.030881] CPU: 0 UID: 0 PID: 264 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT 
[   35.031124] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.031186] Hardware name: linux,dummy-virt (DT)
[   35.031266] Call trace:
[   35.031321]  show_stack+0x20/0x38 (C)
[   35.031514]  dump_stack_lvl+0x8c/0xd0
[   35.031702]  print_report+0x310/0x608
[   35.031815]  kasan_report+0xdc/0x128
[   35.031926]  __asan_report_load1_noabort+0x20/0x30
[   35.032530]  kasan_alloca_oob_right+0x2dc/0x340
[   35.032723]  kunit_try_run_case+0x170/0x3f0
[   35.032880]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.033017]  kthread+0x328/0x630
[   35.033129]  ret_from_fork+0x10/0x20
[   35.033255] 
[   35.033310] The buggy address belongs to stack of task kunit_try_catch/264
[   35.033445] 
[   35.033514] The buggy address belongs to the virtual mapping at
[   35.033514]  [ffff800080a50000, ffff800080a59000) created by:
[   35.033514]  kernel_clone+0x150/0x7a8
[   35.033727] 
[   35.033782] The buggy address belongs to the physical page:
[   35.033850] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105955
[   35.034161] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   35.034317] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   35.034449] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   35.034585] page dumped because: kasan: bad access detected
[   35.034687] 
[   35.034750] Memory state around the buggy address:
[   35.034840]  ffff800080a57a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   35.034969]  ffff800080a57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   35.035128] >ffff800080a57b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   35.035227]                                               ^
[   35.035319]  ffff800080a57b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   35.035437]  ffff800080a57c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   35.035540] ==================================================================

[   27.747835] ==================================================================
[   27.748395] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   27.749083] Read of size 1 at addr ffff888103a1fc4a by task kunit_try_catch/282
[   27.750013] 
[   27.750427] CPU: 0 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) 
[   27.750546] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.750564] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.750591] Call Trace:
[   27.750611]  <TASK>
[   27.750635]  dump_stack_lvl+0x73/0xb0
[   27.750680]  print_report+0xd1/0x650
[   27.750708]  ? __virt_addr_valid+0x1db/0x2d0
[   27.750735]  ? kasan_alloca_oob_right+0x329/0x390
[   27.750761]  ? kasan_addr_to_slab+0x11/0xa0
[   27.750785]  ? kasan_alloca_oob_right+0x329/0x390
[   27.750809]  kasan_report+0x141/0x180
[   27.750833]  ? kasan_alloca_oob_right+0x329/0x390
[   27.750863]  __asan_report_load1_noabort+0x18/0x20
[   27.750890]  kasan_alloca_oob_right+0x329/0x390
[   27.750915]  ? __pfx_sched_clock_cpu+0x10/0x10
[   27.750941]  ? finish_task_switch.isra.0+0x153/0x700
[   27.750969]  ? __up.isra.0+0xee/0x140
[   27.750993]  ? trace_hardirqs_on+0x37/0xe0
[   27.751020]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   27.751047]  ? __schedule+0x10cc/0x2b60
[   27.751071]  ? __pfx_read_tsc+0x10/0x10
[   27.751096]  ? ktime_get_ts64+0x86/0x230
[   27.751124]  kunit_try_run_case+0x1a5/0x480
[   27.751160]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.751198]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   27.751243]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   27.751288]  ? __kthread_parkme+0x82/0x180
[   27.751326]  ? preempt_count_sub+0x50/0x80
[   27.751370]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.751416]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.751483]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   27.751536]  kthread+0x337/0x6f0
[   27.751582]  ? trace_preempt_on+0x20/0xc0
[   27.751621]  ? __pfx_kthread+0x10/0x10
[   27.751656]  ? _raw_spin_unlock_irq+0x47/0x80
[   27.751699]  ? calculate_sigpending+0x7b/0xa0
[   27.751745]  ? __pfx_kthread+0x10/0x10
[   27.751793]  ret_from_fork+0x116/0x1d0
[   27.751838]  ? __pfx_kthread+0x10/0x10
[   27.751887]  ret_from_fork_asm+0x1a/0x30
[   27.751953]  </TASK>
[   27.751976] 
[   27.764740] The buggy address belongs to stack of task kunit_try_catch/282
[   27.765390] 
[   27.765576] The buggy address belongs to the physical page:
[   27.765852] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a1f
[   27.766849] flags: 0x200000000000000(node=0|zone=2)
[   27.767349] raw: 0200000000000000 ffffea00040e87c8 ffffea00040e87c8 0000000000000000
[   27.767836] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   27.768317] page dumped because: kasan: bad access detected
[   27.768660] 
[   27.768846] Memory state around the buggy address:
[   27.769039]  ffff888103a1fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.769514]  ffff888103a1fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.770006] >ffff888103a1fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   27.770571]                                               ^
[   27.770858]  ffff888103a1fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   27.771432]  ffff888103a1fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   27.772025] ==================================================================