Hay
Date
July 22, 2025, 5:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   40.813540] ==================================================================
[   40.813630] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   40.813630] 
[   40.813729] Out-of-bounds read at 0x00000000e74cd9b8 (105B right of kfence-#181):
[   40.813786]  test_kmalloc_aligned_oob_read+0x238/0x468
[   40.813855]  kunit_try_run_case+0x170/0x3f0
[   40.813903]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.813950]  kthread+0x328/0x630
[   40.813993]  ret_from_fork+0x10/0x20
[   40.814036] 
[   40.814060] kfence-#181: 0x00000000c423265b-0x0000000061530d2d, size=73, cache=kmalloc-96
[   40.814060] 
[   40.814114] allocated by task 354 on cpu 1 at 40.813280s (0.000830s ago):
[   40.814194]  test_alloc+0x29c/0x628
[   40.814237]  test_kmalloc_aligned_oob_read+0x100/0x468
[   40.814282]  kunit_try_run_case+0x170/0x3f0
[   40.814321]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.814366]  kthread+0x328/0x630
[   40.814403]  ret_from_fork+0x10/0x20
[   40.814446] 
[   40.814494] CPU: 1 UID: 0 PID: 354 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250722 #1 PREEMPT 
[   40.814579] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   40.814610] Hardware name: linux,dummy-virt (DT)
[   40.814644] ==================================================================

[   38.043964] ==================================================================
[   38.044469] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   38.044469] 
[   38.044897] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#165):
[   38.045580]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   38.045813]  kunit_try_run_case+0x1a5/0x480
[   38.046052]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   38.046278]  kthread+0x337/0x6f0
[   38.046759]  ret_from_fork+0x116/0x1d0
[   38.047100]  ret_from_fork_asm+0x1a/0x30
[   38.047328] 
[   38.047553] kfence-#165: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   38.047553] 
[   38.047944] allocated by task 371 on cpu 0 at 38.043709s (0.004233s ago):
[   38.048268]  test_alloc+0x364/0x10f0
[   38.048655]  test_kmalloc_aligned_oob_read+0x105/0x560
[   38.048981]  kunit_try_run_case+0x1a5/0x480
[   38.049158]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   38.049422]  kthread+0x337/0x6f0
[   38.049763]  ret_from_fork+0x116/0x1d0
[   38.049956]  ret_from_fork_asm+0x1a/0x30
[   38.050143] 
[   38.050445] CPU: 0 UID: 0 PID: 371 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) 
[   38.051018] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.051307] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.051670] ==================================================================