Hay
Date
June 7, 2025, 10:40 a.m.

Environment
qemu-arm64
qemu-x86_64

[   38.242214] ==================================================================
[   38.242927] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x238/0x468
[   38.242927] 
[   38.243918] Out-of-bounds read at 0x0000000004e2f5f9 (105B right of kfence-#176):
[   38.244556]  test_kmalloc_aligned_oob_read+0x238/0x468
[   38.245379]  kunit_try_run_case+0x170/0x3f0
[   38.246015]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.246716]  kthread+0x318/0x620
[   38.247196]  ret_from_fork+0x10/0x20
[   38.247715] 
[   38.248094] kfence-#176: 0x000000002cc07e27-0x000000004b6094a8, size=73, cache=kmalloc-96
[   38.248094] 
[   38.249011] allocated by task 312 on cpu 1 at 38.241765s (0.007235s ago):
[   38.249758]  test_alloc+0x29c/0x628
[   38.250311]  test_kmalloc_aligned_oob_read+0x100/0x468
[   38.251051]  kunit_try_run_case+0x170/0x3f0
[   38.251521]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.252354]  kthread+0x318/0x620
[   38.252785]  ret_from_fork+0x10/0x20
[   38.253351] 
[   38.253736] CPU: 1 UID: 0 PID: 312 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   38.254690] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.255179] Hardware name: linux,dummy-virt (DT)
[   38.255725] ==================================================================

[   31.267575] ==================================================================
[   31.268107] BUG: KFENCE: out-of-bounds read in test_kmalloc_aligned_oob_read+0x27f/0x570
[   31.268107] 
[   31.268733] Out-of-bounds read at 0x(____ptrval____) (105B right of kfence-#154):
[   31.269331]  test_kmalloc_aligned_oob_read+0x27f/0x570
[   31.269642]  kunit_try_run_case+0x1a6/0x480
[   31.270049]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.270389]  kthread+0x324/0x6e0
[   31.270780]  ret_from_fork+0x41/0x80
[   31.271184]  ret_from_fork_asm+0x1a/0x30
[   31.271446] 
[   31.271599] kfence-#154: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   31.271599] 
[   31.272509] allocated by task 331 on cpu 1 at 31.267113s (0.005390s ago):
[   31.273586]  test_alloc+0x365/0x10f0
[   31.273931]  test_kmalloc_aligned_oob_read+0x106/0x570
[   31.274223]  kunit_try_run_case+0x1a6/0x480
[   31.274644]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.275175]  kthread+0x324/0x6e0
[   31.275553]  ret_from_fork+0x41/0x80
[   31.275891]  ret_from_fork_asm+0x1a/0x30
[   31.276186] 
[   31.276380] CPU: 1 UID: 0 PID: 331 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   31.276903] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.277321] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.277962] ==================================================================