Hay
Date
June 17, 2025, 6:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   27.234774] ==================================================================
[   27.234877] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   27.234877] 
[   27.235002] Out-of-bounds read at 0x00000000df657846 (105B right of kfence-#144):
[   27.235065]  test_kmalloc_aligned_oob_read+0x238/0x468
[   27.235118]  kunit_try_run_case+0x170/0x3f0
[   27.235165]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.235210]  kthread+0x328/0x630
[   27.235249]  ret_from_fork+0x10/0x20
[   27.235289] 
[   27.235316] kfence-#144: 0x00000000901e97b4-0x00000000d440038a, size=73, cache=kmalloc-96
[   27.235316] 
[   27.235367] allocated by task 332 on cpu 0 at 27.234494s (0.000869s ago):
[   27.235441]  test_alloc+0x29c/0x628
[   27.235482]  test_kmalloc_aligned_oob_read+0x100/0x468
[   27.235526]  kunit_try_run_case+0x170/0x3f0
[   27.235566]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.235608]  kthread+0x328/0x630
[   27.235645]  ret_from_fork+0x10/0x20
[   27.235685] 
[   27.235733] CPU: 0 UID: 0 PID: 332 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT 
[   27.235818] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.235847] Hardware name: linux,dummy-virt (DT)
[   27.235885] ==================================================================

[   32.724009] ==================================================================
[   32.724621] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   32.724621] 
[   32.725494] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#168):
[   32.726023]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   32.726486]  kunit_try_run_case+0x1a5/0x480
[   32.726785]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.727529]  kthread+0x337/0x6f0
[   32.727972]  ret_from_fork+0x116/0x1d0
[   32.728361]  ret_from_fork_asm+0x1a/0x30
[   32.728757] 
[   32.728941] kfence-#168: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   32.728941] 
[   32.729897] allocated by task 350 on cpu 0 at 32.723692s (0.006200s ago):
[   32.730450]  test_alloc+0x364/0x10f0
[   32.730728]  test_kmalloc_aligned_oob_read+0x105/0x560
[   32.731221]  kunit_try_run_case+0x1a5/0x480
[   32.731659]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.732170]  kthread+0x337/0x6f0
[   32.732474]  ret_from_fork+0x116/0x1d0
[   32.732751]  ret_from_fork_asm+0x1a/0x30
[   32.733153] 
[   32.733505] CPU: 0 UID: 0 PID: 350 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) 
[   32.734438] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.734818] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   32.735586] ==================================================================