Hay
Date
July 8, 2025, 4:38 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.950495] ==================================================================
[   19.950576] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   19.950647] Read of size 1 at addr ffff8000808f7b5f by task kunit_try_catch/253
[   19.950701] 
[   19.950824] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.15.6-rc1 #1 PREEMPT 
[   19.951019] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.951082] Hardware name: linux,dummy-virt (DT)
[   19.951117] Call trace:
[   19.951146]  show_stack+0x20/0x38 (C)
[   19.951227]  dump_stack_lvl+0x8c/0xd0
[   19.951299]  print_report+0x310/0x608
[   19.951362]  kasan_report+0xdc/0x128
[   19.951434]  __asan_report_load1_noabort+0x20/0x30
[   19.951508]  kasan_alloca_oob_left+0x2b8/0x310
[   19.951562]  kunit_try_run_case+0x170/0x3f0
[   19.951614]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.951687]  kthread+0x328/0x630
[   19.951741]  ret_from_fork+0x10/0x20
[   19.951792] 
[   19.951925] The buggy address belongs to stack of task kunit_try_catch/253
[   19.952002] 
[   19.952118] The buggy address belongs to the virtual mapping at
[   19.952118]  [ffff8000808f0000, ffff8000808f9000) created by:
[   19.952118]  kernel_clone+0x150/0x7a8
[   19.952240] 
[   19.952287] The buggy address belongs to the physical page:
[   19.952351] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063a8
[   19.952727] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.952914] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.953021] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.953082] page dumped because: kasan: bad access detected
[   19.953117] 
[   19.953162] Memory state around the buggy address:
[   19.953195]  ffff8000808f7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.953240]  ffff8000808f7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.953419] >ffff8000808f7b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   19.953631]                                                     ^
[   19.953750]  ffff8000808f7b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   19.953836]  ffff8000808f7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.953951] ==================================================================

[   13.135592] ==================================================================
[   13.136175] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   13.136496] Read of size 1 at addr ffff888103c47c3f by task kunit_try_catch/271
[   13.136814] 
[   13.136974] CPU: 0 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.15.6-rc1 #1 PREEMPT(voluntary) 
[   13.137029] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.137042] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.137067] Call Trace:
[   13.137080]  <TASK>
[   13.137097]  dump_stack_lvl+0x73/0xb0
[   13.137128]  print_report+0xd1/0x650
[   13.137153]  ? __virt_addr_valid+0x1db/0x2d0
[   13.137179]  ? kasan_alloca_oob_left+0x320/0x380
[   13.137202]  ? kasan_addr_to_slab+0x11/0xa0
[   13.137225]  ? kasan_alloca_oob_left+0x320/0x380
[   13.137249]  kasan_report+0x141/0x180
[   13.137273]  ? kasan_alloca_oob_left+0x320/0x380
[   13.137302]  __asan_report_load1_noabort+0x18/0x20
[   13.137325]  kasan_alloca_oob_left+0x320/0x380
[   13.137352]  ? finish_task_switch.isra.0+0x153/0x700
[   13.137379]  ? ww_mutex_unlock+0x10e/0x150
[   13.137400]  ? trace_hardirqs_on+0x37/0xe0
[   13.137428]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   13.137455]  ? __schedule+0x10cc/0x2b60
[   13.137480]  ? __pfx_read_tsc+0x10/0x10
[   13.137502]  ? ktime_get_ts64+0x86/0x230
[   13.137604]  kunit_try_run_case+0x1a5/0x480
[   13.137631]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.137652]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.137679]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.137704]  ? __kthread_parkme+0x82/0x180
[   13.137729]  ? preempt_count_sub+0x50/0x80
[   13.137755]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.137776]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.137802]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.137828]  kthread+0x337/0x6f0
[   13.137895]  ? trace_preempt_on+0x20/0xc0
[   13.137921]  ? __pfx_kthread+0x10/0x10
[   13.137941]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.137965]  ? calculate_sigpending+0x7b/0xa0
[   13.137989]  ? __pfx_kthread+0x10/0x10
[   13.138009]  ret_from_fork+0x41/0x80
[   13.138032]  ? __pfx_kthread+0x10/0x10
[   13.138052]  ret_from_fork_asm+0x1a/0x30
[   13.138084]  </TASK>
[   13.138096] 
[   13.147367] The buggy address belongs to stack of task kunit_try_catch/271
[   13.147857] 
[   13.148001] The buggy address belongs to the physical page:
[   13.148412] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103c47
[   13.148828] flags: 0x200000000000000(node=0|zone=2)
[   13.149188] raw: 0200000000000000 ffffea00040f11c8 ffffea00040f11c8 0000000000000000
[   13.149443] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.149950] page dumped because: kasan: bad access detected
[   13.150347] 
[   13.150423] Memory state around the buggy address:
[   13.150624]  ffff888103c47b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.151138]  ffff888103c47b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.151798] >ffff888103c47c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.152261]                                         ^
[   13.152591]  ffff888103c47c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.153118]  ffff888103c47d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.153501] ==================================================================