Hay
Date
May 29, 2025, 7:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.379634] ==================================================================
[   32.379809] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   32.379809] 
[   32.379934] Out-of-bounds read at 0x00000000ca9eb9e6 (105B right of kfence-#166):
[   32.380007]  test_kmalloc_aligned_oob_read+0x238/0x468
[   32.380065]  kunit_try_run_case+0x170/0x3f0
[   32.380116]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.380166]  kthread+0x328/0x630
[   32.380211]  ret_from_fork+0x10/0x20
[   32.380256] 
[   32.380284] kfence-#166: 0x000000000f97f6c4-0x00000000206bd9e6, size=73, cache=kmalloc-96
[   32.380284] 
[   32.380345] allocated by task 323 on cpu 0 at 32.379200s (0.001140s ago):
[   32.380452]  test_alloc+0x29c/0x628
[   32.380503]  test_kmalloc_aligned_oob_read+0x100/0x468
[   32.380554]  kunit_try_run_case+0x170/0x3f0
[   32.380599]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.380647]  kthread+0x328/0x630
[   32.380688]  ret_from_fork+0x10/0x20
[   32.380730] 
[   32.380786] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT 
[   32.380879] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.380911] Hardware name: linux,dummy-virt (DT)
[   32.380952] ==================================================================


[   22.818263] ==================================================================
[   22.818715] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   22.818715] 
[   22.819148] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#133):
[   22.819503]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   22.819702]  kunit_try_run_case+0x1a5/0x480
[   22.820108]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.820349]  kthread+0x337/0x6f0
[   22.820483]  ret_from_fork+0x116/0x1d0
[   22.820690]  ret_from_fork_asm+0x1a/0x30
[   22.820931] 
[   22.821025] kfence-#133: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   22.821025] 
[   22.821339] allocated by task 340 on cpu 0 at 22.818046s (0.003291s ago):
[   22.821688]  test_alloc+0x364/0x10f0
[   22.821977]  test_kmalloc_aligned_oob_read+0x105/0x560
[   22.822215]  kunit_try_run_case+0x1a5/0x480
[   22.822401]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.822671]  kthread+0x337/0x6f0
[   22.822805]  ret_from_fork+0x116/0x1d0
[   22.823001]  ret_from_fork_asm+0x1a/0x30
[   22.823207] 
[   22.823308] CPU: 0 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT(voluntary) 
[   22.824010] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.824188] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.824464] ==================================================================