Hay
Date
July 15, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.064600] ==================================================================
[   20.064743] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   20.064806] Read of size 1 at addr ffff8000809d7b5f by task kunit_try_catch/253
[   20.064858] 
[   20.064968] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   20.065435] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.065632] Hardware name: linux,dummy-virt (DT)
[   20.065671] Call trace:
[   20.065958]  show_stack+0x20/0x38 (C)
[   20.066094]  dump_stack_lvl+0x8c/0xd0
[   20.066161]  print_report+0x310/0x5d0
[   20.066301]  kasan_report+0xdc/0x128
[   20.066400]  __asan_report_load1_noabort+0x20/0x30
[   20.066498]  kasan_alloca_oob_left+0x2b8/0x310
[   20.066669]  kunit_try_run_case+0x170/0x3f0
[   20.066742]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.066956]  kthread+0x328/0x630
[   20.067114]  ret_from_fork+0x10/0x20
[   20.067337] 
[   20.067408] The buggy address belongs to stack of task kunit_try_catch/253
[   20.067510] 
[   20.067680] The buggy address ffff8000809d7b5f belongs to a vmalloc virtual mapping
[   20.067849] The buggy address belongs to the physical page:
[   20.067906] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106627
[   20.068039] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.068136] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.068455] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.068543] page dumped because: kasan: bad access detected
[   20.068673] 
[   20.068714] Memory state around the buggy address:
[   20.068792]  ffff8000809d7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.068901]  ffff8000809d7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.069015] >ffff8000809d7b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   20.069067]                                                     ^
[   20.069304]  ffff8000809d7b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.069609]  ffff8000809d7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.069774] ==================================================================

[   12.807831] ==================================================================
[   12.808313] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   12.808629] Read of size 1 at addr ffff8881039e7c3f by task kunit_try_catch/270
[   12.808948] 
[   12.809030] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   12.809343] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.809356] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.809375] Call Trace:
[   12.809386]  <TASK>
[   12.809399]  dump_stack_lvl+0x73/0xb0
[   12.809424]  print_report+0xd1/0x610
[   12.809447]  ? __virt_addr_valid+0x1db/0x2d0
[   12.809468]  ? kasan_alloca_oob_left+0x320/0x380
[   12.809490]  ? kasan_addr_to_slab+0x11/0xa0
[   12.809510]  ? kasan_alloca_oob_left+0x320/0x380
[   12.809532]  kasan_report+0x141/0x180
[   12.809554]  ? kasan_alloca_oob_left+0x320/0x380
[   12.809582]  __asan_report_load1_noabort+0x18/0x20
[   12.809603]  kasan_alloca_oob_left+0x320/0x380
[   12.809627]  ? finish_task_switch.isra.0+0x153/0x700
[   12.809651]  ? ww_mutex_unlock+0xce/0x150
[   12.809671]  ? trace_hardirqs_on+0x37/0xe0
[   12.809694]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   12.809720]  ? __schedule+0x10cc/0x2b60
[   12.809742]  ? __pfx_read_tsc+0x10/0x10
[   12.809761]  ? ktime_get_ts64+0x86/0x230
[   12.809785]  kunit_try_run_case+0x1a5/0x480
[   12.809806]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.809824]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.809936]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.809966]  ? __kthread_parkme+0x82/0x180
[   12.809988]  ? preempt_count_sub+0x50/0x80
[   12.810012]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.810032]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.810055]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.810078]  kthread+0x337/0x6f0
[   12.810095]  ? trace_preempt_on+0x20/0xc0
[   12.810117]  ? __pfx_kthread+0x10/0x10
[   12.810134]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.810155]  ? calculate_sigpending+0x7b/0xa0
[   12.810176]  ? __pfx_kthread+0x10/0x10
[   12.810194]  ret_from_fork+0x41/0x80
[   12.810213]  ? __pfx_kthread+0x10/0x10
[   12.810230]  ret_from_fork_asm+0x1a/0x30
[   12.810260]  </TASK>
[   12.810270] 
[   12.822801] The buggy address belongs to stack of task kunit_try_catch/270
[   12.823490] 
[   12.823647] The buggy address belongs to the physical page:
[   12.824187] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039e7
[   12.824940] flags: 0x200000000000000(node=0|zone=2)
[   12.825130] raw: 0200000000000000 ffffea00040e79c8 ffffea00040e79c8 0000000000000000
[   12.825367] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   12.825591] page dumped because: kasan: bad access detected
[   12.825952] 
[   12.826106] Memory state around the buggy address:
[   12.826504]  ffff8881039e7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.827214]  ffff8881039e7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.827892] >ffff8881039e7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   12.828728]                                         ^
[   12.829383]  ffff8881039e7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   12.830079]  ffff8881039e7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.830780] ==================================================================