Hay
Date
March 19, 2025, 10:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   37.756273] ==================================================================
[   37.756575] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   37.757153] Read of size 1 at addr ffff800080947b5f by task kunit_try_catch/253
[   37.757350] 
[   37.757502] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.14.0-rc7-next-20250319 #1 PREEMPT 
[   37.757795] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.757883] Hardware name: linux,dummy-virt (DT)
[   37.757993] Call trace:
[   37.758125]  show_stack+0x20/0x38 (C)
[   37.758299]  dump_stack_lvl+0x8c/0xd0
[   37.758884]  print_report+0x2fc/0x5f0
[   37.759109]  kasan_report+0xc8/0x118
[   37.759268]  __asan_report_load1_noabort+0x20/0x30
[   37.759444]  kasan_alloca_oob_left+0x2b8/0x310
[   37.759682]  kunit_try_run_case+0x14c/0x3d0
[   37.759877]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.760078]  kthread+0x318/0x618
[   37.760655]  ret_from_fork+0x10/0x20
[   37.760850] 
[   37.760924] The buggy address belongs to stack of task kunit_try_catch/253
[   37.761147] 
[   37.761236] The buggy address belongs to the virtual mapping at
[   37.761236]  [ffff800080940000, ffff800080949000) created by:
[   37.761236]  kernel_clone+0x140/0x788
[   37.762007] 
[   37.762140] The buggy address belongs to the physical page:
[   37.762274] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10693d
[   37.762455] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   37.762691] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   37.762903] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   37.763120] page dumped because: kasan: bad access detected
[   37.763234] 
[   37.763639] Memory state around the buggy address:
[   37.763784]  ffff800080947a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   37.763999]  ffff800080947a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   37.764219] >ffff800080947b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   37.764423]                                                     ^
[   37.764566]  ffff800080947b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   37.764996]  ffff800080947c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   37.765143] ==================================================================

[   24.678366] ==================================================================
[   24.679366] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x31d/0x380
[   24.680196] Read of size 1 at addr ffff88810399fc3f by task kunit_try_catch/272
[   24.680985] 
[   24.681344] CPU: 0 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G    B            N  6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) 
[   24.681473] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.681559] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.681645] Call Trace:
[   24.681684]  <TASK>
[   24.681937]  dump_stack_lvl+0x73/0xb0
[   24.682030]  print_report+0xd1/0x660
[   24.682101]  ? __virt_addr_valid+0x1db/0x2d0
[   24.682249]  ? kasan_addr_to_slab+0x11/0xa0
[   24.682318]  kasan_report+0x104/0x140
[   24.682375]  ? kasan_alloca_oob_left+0x31d/0x380
[   24.682539]  ? kasan_alloca_oob_left+0x31d/0x380
[   24.682634]  __asan_report_load1_noabort+0x18/0x20
[   24.682744]  kasan_alloca_oob_left+0x31d/0x380
[   24.682802]  ? irqentry_exit+0x2a/0x60
[   24.682838]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   24.682874]  ? trace_hardirqs_on+0x37/0xe0
[   24.682913]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   24.682955]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   24.682996]  kunit_try_run_case+0x1b2/0x490
[   24.683031]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.683063]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.683095]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.683164]  ? __kthread_parkme+0x82/0x160
[   24.683267]  ? preempt_count_sub+0x50/0x80
[   24.683316]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.683351]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.683387]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.683420]  kthread+0x323/0x710
[   24.683451]  ? trace_preempt_on+0x20/0xc0
[   24.683484]  ? __pfx_kthread+0x10/0x10
[   24.683516]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.683545]  ? calculate_sigpending+0x7b/0xa0
[   24.683576]  ? __pfx_kthread+0x10/0x10
[   24.683636]  ret_from_fork+0x41/0x80
[   24.683669]  ? __pfx_kthread+0x10/0x10
[   24.683759]  ret_from_fork_asm+0x1a/0x30
[   24.683860]  </TASK>
[   24.683892] 
[   24.699082] The buggy address belongs to stack of task kunit_try_catch/272
[   24.699488] 
[   24.699667] The buggy address belongs to the physical page:
[   24.700336] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10399f
[   24.701878] flags: 0x200000000000000(node=0|zone=2)
[   24.702419] raw: 0200000000000000 ffffea00040e67c8 ffffea00040e67c8 0000000000000000
[   24.703940] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   24.704549] page dumped because: kasan: bad access detected
[   24.705263] 
[   24.705422] Memory state around the buggy address:
[   24.705704]  ffff88810399fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.706084]  ffff88810399fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.706585] >ffff88810399fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   24.709055]                                         ^
[   24.710468]  ffff88810399fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   24.711019]  ffff88810399fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   24.711911] ==================================================================