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

Environment
qemu-arm64
qemu-x86_64

[   25.543637] ==================================================================
[   25.543749] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   25.543749] 
[   25.543845] Out-of-bounds read at 0x00000000263aa964 (105B right of kfence-#141):
[   25.543908]  test_kmalloc_aligned_oob_read+0x238/0x468
[   25.543959]  kunit_try_run_case+0x170/0x3f0
[   25.544005]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.544049]  kthread+0x328/0x630
[   25.544089]  ret_from_fork+0x10/0x20
[   25.544130] 
[   25.544155] kfence-#141: 0x000000000a66dc2c-0x00000000ac8c02e8, size=73, cache=kmalloc-96
[   25.544155] 
[   25.544209] allocated by task 323 on cpu 0 at 25.543375s (0.000830s ago):
[   25.544280]  test_alloc+0x29c/0x628
[   25.544320]  test_kmalloc_aligned_oob_read+0x100/0x468
[   25.544365]  kunit_try_run_case+0x170/0x3f0
[   25.544660]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.544714]  kthread+0x328/0x630
[   25.544750]  ret_from_fork+0x10/0x20
[   25.544791] 
[   25.544840] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   25.544924] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.544954] Hardware name: linux,dummy-virt (DT)
[   25.544991] ==================================================================

[   23.479871] ==================================================================
[   23.480289] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   23.480289] 
[   23.480751] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#125):
[   23.481505]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   23.482056]  kunit_try_run_case+0x1a5/0x480
[   23.482337]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.482633]  kthread+0x337/0x6f0
[   23.482969]  ret_from_fork+0x116/0x1d0
[   23.483171]  ret_from_fork_asm+0x1a/0x30
[   23.483373] 
[   23.483460] kfence-#125: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   23.483460] 
[   23.483919] allocated by task 341 on cpu 1 at 23.479644s (0.004273s ago):
[   23.484561]  test_alloc+0x364/0x10f0
[   23.484866]  test_kmalloc_aligned_oob_read+0x105/0x560
[   23.485224]  kunit_try_run_case+0x1a5/0x480
[   23.485565]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.485950]  kthread+0x337/0x6f0
[   23.486092]  ret_from_fork+0x116/0x1d0
[   23.486371]  ret_from_fork_asm+0x1a/0x30
[   23.486733] 
[   23.486985] CPU: 1 UID: 0 PID: 341 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   23.487600] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.487854] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.488373] ==================================================================