Hay
Date
July 1, 2025, 12:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   28.707573] ==================================================================
[   28.707660] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   28.707660] 
[   28.707757] Out-of-bounds read at 0x00000000267e1a29 (105B right of kfence-#158):
[   28.707819]  test_kmalloc_aligned_oob_read+0x238/0x468
[   28.707868]  kunit_try_run_case+0x170/0x3f0
[   28.707914]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.707959]  kthread+0x328/0x630
[   28.707999]  ret_from_fork+0x10/0x20
[   28.708040] 
[   28.708064] kfence-#158: 0x0000000027a1dfd2-0x0000000066eaf546, size=73, cache=kmalloc-96
[   28.708064] 
[   28.708118] allocated by task 323 on cpu 0 at 28.707320s (0.000795s ago):
[   28.708191]  test_alloc+0x29c/0x628
[   28.708236]  test_kmalloc_aligned_oob_read+0x100/0x468
[   28.708281]  kunit_try_run_case+0x170/0x3f0
[   28.708322]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.708366]  kthread+0x328/0x630
[   28.708403]  ret_from_fork+0x10/0x20
[   28.708456] 
[   28.708504] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   28.708586] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.708617] Hardware name: linux,dummy-virt (DT)
[   28.708655] ==================================================================

[   22.545661] ==================================================================
[   22.546082] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27e/0x560
[   22.546082] 
[   22.546531] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#126):
[   22.546879]  test_kmalloc_aligned_oob_read+0x27e/0x560
[   22.547108]  kunit_try_run_case+0x1a5/0x480
[   22.547328]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.547602]  kthread+0x337/0x6f0
[   22.547749]  ret_from_fork+0x116/0x1d0
[   22.547974]  ret_from_fork_asm+0x1a/0x30
[   22.548193] 
[   22.548278] kfence-#126: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   22.548278] 
[   22.548717] allocated by task 340 on cpu 1 at 22.545433s (0.003282s ago):
[   22.548998]  test_alloc+0x364/0x10f0
[   22.549219]  test_kmalloc_aligned_oob_read+0x105/0x560
[   22.549522]  kunit_try_run_case+0x1a5/0x480
[   22.549725]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.549944]  kthread+0x337/0x6f0
[   22.550098]  ret_from_fork+0x116/0x1d0
[   22.550230]  ret_from_fork_asm+0x1a/0x30
[   22.550401] 
[   22.550548] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   22.551080] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.551299] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.551678] ==================================================================