Hay
Date
July 9, 2025, 2:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   27.202324] ==================================================================
[   27.202427] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   27.202427] 
[   27.202531] Out-of-bounds read at 0x000000000670f5b2 (105B right of kfence-#145):
[   27.202592]  test_kmalloc_aligned_oob_read+0x238/0x468
[   27.202644]  kunit_try_run_case+0x170/0x3f0
[   27.202689]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.202733]  kthread+0x328/0x630
[   27.202774]  ret_from_fork+0x10/0x20
[   27.202815] 
[   27.202840] kfence-#145: 0x0000000044640e5e-0x00000000dd715642, size=73, cache=kmalloc-96
[   27.202840] 
[   27.202897] allocated by task 323 on cpu 0 at 27.202055s (0.000838s ago):
[   27.202972]  test_alloc+0x29c/0x628
[   27.203014]  test_kmalloc_aligned_oob_read+0x100/0x468
[   27.203059]  kunit_try_run_case+0x170/0x3f0
[   27.203114]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.203159]  kthread+0x328/0x630
[   27.203195]  ret_from_fork+0x10/0x20
[   27.203235] 
[   27.203284] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5 #1 PREEMPT 
[   27.203372] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   27.203404] Hardware name: linux,dummy-virt (DT)
[   27.203440] ==================================================================

[   22.743266] ==================================================================
[   22.743710] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   22.743710] 
[   22.744177] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#117):
[   22.744508]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   22.744701]  kunit_try_run_case+0x1a5/0x480
[   22.744925]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.745187]  kthread+0x337/0x6f0
[   22.745366]  ret_from_fork+0x116/0x1d0
[   22.745530]  ret_from_fork_asm+0x1a/0x30
[   22.745725] 
[   22.745820] kfence-#117: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   22.745820] 
[   22.746118] allocated by task 340 on cpu 1 at 22.743051s (0.003064s ago):
[   22.746651]  test_alloc+0x364/0x10f0
[   22.746782]  test_kmalloc_aligned_oob_read+0x105/0x560
[   22.746961]  kunit_try_run_case+0x1a5/0x480
[   22.747114]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.747382]  kthread+0x337/0x6f0
[   22.747555]  ret_from_fork+0x116/0x1d0
[   22.747757]  ret_from_fork_asm+0x1a/0x30
[   22.747963] 
[   22.748089] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   22.748604] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.748782] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.749056] ==================================================================