Hay
Date
June 7, 2025, 10:40 a.m.

Environment
qemu-arm64
qemu-x86_64

[   23.801203] ==================================================================
[   23.801755] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2c0/0x318
[   23.802247] Read of size 1 at addr ffff800080bc7bdf by task kunit_try_catch/239
[   23.804132] 
[   23.804456] CPU: 0 UID: 0 PID: 239 Comm: kunit_try_catch Tainted: G    B            N 6.12.33-rc1 #1
[   23.804661] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.804785] Hardware name: linux,dummy-virt (DT)
[   23.805070] Call trace:
[   23.805133]  dump_backtrace+0x9c/0x128
[   23.805271]  show_stack+0x20/0x38
[   23.805381]  dump_stack_lvl+0x8c/0xd0
[   23.805481]  print_report+0x310/0x5f0
[   23.805588]  kasan_report+0xdc/0x128
[   23.805653]  __asan_report_load1_noabort+0x20/0x30
[   23.805706]  kasan_alloca_oob_left+0x2c0/0x318
[   23.805755]  kunit_try_run_case+0x170/0x3f0
[   23.805802]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.805855]  kthread+0x24c/0x2d0
[   23.805902]  ret_from_fork+0x10/0x20
[   23.805950] 
[   23.814662] The buggy address belongs to stack of task kunit_try_catch/239
[   23.815613] 
[   23.815955] The buggy address belongs to the virtual mapping at
[   23.815955]  [ffff800080bc0000, ffff800080bc9000) created by:
[   23.815955]  kernel_clone+0x150/0x7a8
[   23.817660] 
[   23.818025] The buggy address belongs to the physical page:
[   23.818734] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1041f7
[   23.819829] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   23.821194] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   23.822156] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   23.822990] page dumped because: kasan: bad access detected
[   23.824147] 
[   23.824302] Memory state around the buggy address:
[   23.824537]  ffff800080bc7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.824859]  ffff800080bc7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.825452] >ffff800080bc7b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   23.826346]                                                     ^
[   23.826888]  ffff800080bc7c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2
[   23.827557]  ffff800080bc7c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00
[   23.829391] ==================================================================

[   20.474021] ==================================================================
[   20.474806] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x322/0x380
[   20.475462] Read of size 1 at addr ffff888102cdfc9f by task kunit_try_catch/256
[   20.476054] 
[   20.476349] CPU: 1 UID: 0 PID: 256 Comm: kunit_try_catch Tainted: G    B            N 6.12.33-rc1 #1
[   20.476463] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.476502] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.476559] Call Trace:
[   20.476598]  <TASK>
[   20.476640]  dump_stack_lvl+0x73/0xb0
[   20.476721]  print_report+0xd1/0x640
[   20.476796]  ? __virt_addr_valid+0x1db/0x2d0
[   20.476917]  ? kasan_alloca_oob_left+0x322/0x380
[   20.476991]  ? kasan_addr_to_slab+0x11/0xa0
[   20.477060]  ? kasan_alloca_oob_left+0x322/0x380
[   20.477143]  kasan_report+0x140/0x180
[   20.477244]  ? kasan_alloca_oob_left+0x322/0x380
[   20.477332]  __asan_report_load1_noabort+0x18/0x20
[   20.477407]  kasan_alloca_oob_left+0x322/0x380
[   20.477494]  ? dup_user_cpus_ptr+0x11e/0x260
[   20.477566]  ? __schedule+0xc49/0x27a0
[   20.477630]  ? trace_hardirqs_on+0x37/0xe0
[   20.477699]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   20.477741]  ? __schedule+0xc49/0x27a0
[   20.477767]  ? __pfx_read_tsc+0x10/0x10
[   20.477793]  ? ktime_get_ts64+0x84/0x230
[   20.477880]  kunit_try_run_case+0x1a6/0x480
[   20.477918]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.477947]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   20.477976]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   20.478013]  ? __kthread_parkme+0x82/0x160
[   20.478041]  ? preempt_count_sub+0x50/0x80
[   20.478070]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.478097]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   20.478132]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.478170]  kthread+0x257/0x310
[   20.478198]  ? __pfx_kthread+0x10/0x10
[   20.478250]  ret_from_fork+0x41/0x80
[   20.478286]  ? __pfx_kthread+0x10/0x10
[   20.478312]  ret_from_fork_asm+0x1a/0x30
[   20.478352]  </TASK>
[   20.478366] 
[   20.492347] The buggy address belongs to stack of task kunit_try_catch/256
[   20.492960] 
[   20.493191] The buggy address belongs to the physical page:
[   20.493772] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102cdf
[   20.494507] flags: 0x200000000000000(node=0|zone=2)
[   20.494987] raw: 0200000000000000 ffffea00040b37c8 ffffea00040b37c8 0000000000000000
[   20.495673] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   20.496398] page dumped because: kasan: bad access detected
[   20.496931] 
[   20.497148] Memory state around the buggy address:
[   20.497502]  ffff888102cdfb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.498197]  ffff888102cdfc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.498913] >ffff888102cdfc80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00
[   20.499413]                             ^
[   20.499892]  ffff888102cdfd00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3
[   20.500539]  ffff888102cdfd80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1
[   20.501142] ==================================================================