Hay
Date
July 5, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   31.211030] ==================================================================
[   31.211162] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   31.211162] 
[   31.211276] Out-of-bounds read at 0x0000000029bd3a52 (105B right of kfence-#182):
[   31.211340]  test_kmalloc_aligned_oob_read+0x238/0x468
[   31.211420]  kunit_try_run_case+0x170/0x3f0
[   31.211469]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.211514]  kthread+0x328/0x630
[   31.211556]  ret_from_fork+0x10/0x20
[   31.211597] 
[   31.211623] kfence-#182: 0x00000000a45795dc-0x00000000836f6167, size=73, cache=kmalloc-96
[   31.211623] 
[   31.211680] allocated by task 324 on cpu 1 at 31.210653s (0.001023s ago):
[   31.211757]  test_alloc+0x29c/0x628
[   31.211800]  test_kmalloc_aligned_oob_read+0x100/0x468
[   31.211845]  kunit_try_run_case+0x170/0x3f0
[   31.211887]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.211930]  kthread+0x328/0x630
[   31.211968]  ret_from_fork+0x10/0x20
[   31.212007] 
[   31.212058] CPU: 1 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   31.212142] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.212174] Hardware name: linux,dummy-virt (DT)
[   31.212209] ==================================================================

[   25.996462] ==================================================================
[   25.997024] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   25.997024] 
[   25.997590] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#140):
[   25.998242]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   25.998546]  kunit_try_run_case+0x1a5/0x480
[   25.998846]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.999069]  kthread+0x337/0x6f0
[   25.999219]  ret_from_fork+0x116/0x1d0
[   25.999391]  ret_from_fork_asm+0x1a/0x30
[   25.999634] 
[   25.999770] kfence-#140: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   25.999770] 
[   26.000416] allocated by task 341 on cpu 1 at 25.996221s (0.004193s ago):
[   26.000837]  test_alloc+0x364/0x10f0
[   26.001136]  test_kmalloc_aligned_oob_read+0x105/0x560
[   26.001443]  kunit_try_run_case+0x1a5/0x480
[   26.001628]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.001847]  kthread+0x337/0x6f0
[   26.001992]  ret_from_fork+0x116/0x1d0
[   26.002148]  ret_from_fork_asm+0x1a/0x30
[   26.002415] 
[   26.002610] CPU: 1 UID: 0 PID: 341 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   26.003674] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.003990] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.004335] ==================================================================