Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   37.958869] ==================================================================
[   37.959004] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   37.959004] 
[   37.959186] Out-of-bounds read at 0x00000000753a0683 (105B right of kfence-#181):
[   37.959263]  test_kmalloc_aligned_oob_read+0x238/0x468
[   37.959357]  kunit_try_run_case+0x170/0x3f0
[   37.959428]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.959487]  kthread+0x328/0x630
[   37.959536]  ret_from_fork+0x10/0x20
[   37.959589] 
[   37.959619] kfence-#181: 0x000000002aeef090-0x0000000054bde486, size=73, cache=kmalloc-96
[   37.959619] 
[   37.959686] allocated by task 323 on cpu 0 at 37.958444s (0.001238s ago):
[   37.959771]  test_alloc+0x29c/0x628
[   37.959865]  test_kmalloc_aligned_oob_read+0x100/0x468
[   37.959992]  kunit_try_run_case+0x170/0x3f0
[   37.960109]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.960229]  kthread+0x328/0x630
[   37.960342]  ret_from_fork+0x10/0x20
[   37.960447] 
[   37.960544] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   37.960739] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.960822] Hardware name: linux,dummy-virt (DT)
[   37.960872] ==================================================================


[   21.404481] ==================================================================
[   21.404935] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   21.404935] 
[   21.405391] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#112):
[   21.405667]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   21.405841]  kunit_try_run_case+0x1a5/0x480
[   21.406060]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.406387]  kthread+0x337/0x6f0
[   21.406578]  ret_from_fork+0x116/0x1d0
[   21.406804]  ret_from_fork_asm+0x1a/0x30
[   21.407033] 
[   21.407133] kfence-#112: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   21.407133] 
[   21.407533] allocated by task 340 on cpu 1 at 21.404259s (0.003273s ago):
[   21.407759]  test_alloc+0x364/0x10f0
[   21.407953]  test_kmalloc_aligned_oob_read+0x105/0x560
[   21.408225]  kunit_try_run_case+0x1a5/0x480
[   21.408476]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.408758]  kthread+0x337/0x6f0
[   21.408887]  ret_from_fork+0x116/0x1d0
[   21.409092]  ret_from_fork_asm+0x1a/0x30
[   21.409317] 
[   21.409448] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   21.409991] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.410208] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.410567] ==================================================================