Hay
Date
June 25, 2025, 8:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   38.056819] ==================================================================
[   38.056881] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   38.056881] 
[   38.056973] Out-of-bounds read at 0x00000000db2ea026 (105B right of kfence-#155):
[   38.057032]  test_kmalloc_aligned_oob_read+0x238/0x468
[   38.057081]  kunit_try_run_case+0x170/0x3f0
[   38.057126]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.057168]  kthread+0x328/0x630
[   38.057208]  ret_from_fork+0x10/0x20
[   38.057247] 
[   38.057271] kfence-#155: 0x000000004dd8e523-0x00000000c30cfabc, size=73, cache=kmalloc-96
[   38.057271] 
[   38.057323] allocated by task 335 on cpu 0 at 38.056559s (0.000760s ago):
[   38.057392]  test_alloc+0x29c/0x628
[   38.057450]  test_kmalloc_aligned_oob_read+0x100/0x468
[   38.057494]  kunit_try_run_case+0x170/0x3f0
[   38.057534]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.057578]  kthread+0x328/0x630
[   38.057613]  ret_from_fork+0x10/0x20
[   38.057654] 
[   38.057699] CPU: 0 UID: 0 PID: 335 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT 
[   38.057778] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.057807] Hardware name: linux,dummy-virt (DT)
[   38.057842] ==================================================================

[   32.452402] ==================================================================
[   32.452784] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   32.452784] 
[   32.453363] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#126):
[   32.453651]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   32.453844]  kunit_try_run_case+0x1a5/0x480
[   32.454046]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.454238]  kthread+0x337/0x6f0
[   32.454367]  ret_from_fork+0x116/0x1d0
[   32.454561]  ret_from_fork_asm+0x1a/0x30
[   32.454758] 
[   32.454837] kfence-#126: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   32.454837] 
[   32.455174] allocated by task 352 on cpu 1 at 32.452168s (0.003004s ago):
[   32.455506]  test_alloc+0x364/0x10f0
[   32.455681]  test_kmalloc_aligned_oob_read+0x105/0x560
[   32.455916]  kunit_try_run_case+0x1a5/0x480
[   32.456077]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.456244]  kthread+0x337/0x6f0
[   32.456385]  ret_from_fork+0x116/0x1d0
[   32.456563]  ret_from_fork_asm+0x1a/0x30
[   32.456750] 
[   32.456874] CPU: 1 UID: 0 PID: 352 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) 
[   32.457485] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.457661] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   32.457969] ==================================================================