Hay
Date
July 9, 2025, 12:11 a.m.

Environment
qemu-arm64
qemu-x86_64

[   29.148784] ==================================================================
[   29.148901] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   29.148901] 
[   29.149010] Out-of-bounds read at 0x0000000087c812eb (105B right of kfence-#144):
[   29.149080]  test_kmalloc_aligned_oob_read+0x238/0x468
[   29.149131]  kunit_try_run_case+0x170/0x3f0
[   29.149177]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.149224]  kthread+0x328/0x630
[   29.149263]  ret_from_fork+0x10/0x20
[   29.149307] 
[   29.149333] kfence-#144: 0x00000000487d6161-0x0000000044c3ad43, size=73, cache=kmalloc-96
[   29.149333] 
[   29.149388] allocated by task 324 on cpu 1 at 29.148529s (0.000855s ago):
[   29.149474]  test_alloc+0x29c/0x628
[   29.149518]  test_kmalloc_aligned_oob_read+0x100/0x468
[   29.149563]  kunit_try_run_case+0x170/0x3f0
[   29.149604]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.149650]  kthread+0x328/0x630
[   29.149687]  ret_from_fork+0x10/0x20
[   29.149727] 
[   29.149779] CPU: 1 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   29.149864] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.149894] Hardware name: linux,dummy-virt (DT)
[   29.149931] ==================================================================

[   23.250518] ==================================================================
[   23.251055] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   23.251055] 
[   23.251534] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#122):
[   23.251864]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   23.252097]  kunit_try_run_case+0x1a5/0x480
[   23.252270]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.252542]  kthread+0x337/0x6f0
[   23.252721]  ret_from_fork+0x116/0x1d0
[   23.252915]  ret_from_fork_asm+0x1a/0x30
[   23.253120] 
[   23.253218] kfence-#122: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   23.253218] 
[   23.253578] allocated by task 340 on cpu 0 at 23.250307s (0.003270s ago):
[   23.253889]  test_alloc+0x364/0x10f0
[   23.254062]  test_kmalloc_aligned_oob_read+0x105/0x560
[   23.254235]  kunit_try_run_case+0x1a5/0x480
[   23.254412]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.254675]  kthread+0x337/0x6f0
[   23.254851]  ret_from_fork+0x116/0x1d0
[   23.255052]  ret_from_fork_asm+0x1a/0x30
[   23.255222] 
[   23.255327] CPU: 0 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   23.255757] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.255894] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.256273] ==================================================================