Hay
Date
June 16, 2025, 7:07 a.m.

Environment
qemu-arm64
qemu-x86_64

[   24.806500] ==================================================================
[   24.806661] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   24.806661] 
[   24.806790] Invalid free of 0x00000000ff7f821c (in kfence-#130):
[   24.806925]  test_invalid_addr_free+0x1ac/0x238
[   24.807041]  kunit_try_run_case+0x170/0x3f0
[   24.807146]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.807248]  kthread+0x328/0x630
[   24.807344]  ret_from_fork+0x10/0x20
[   24.807443] 
[   24.807501] kfence-#130: 0x00000000fcb5e0b5-0x0000000032fcb08b, size=32, cache=kmalloc-32
[   24.807501] 
[   24.807632] allocated by task 316 on cpu 0 at 24.806228s (0.001396s ago):
[   24.807780]  test_alloc+0x29c/0x628
[   24.807889]  test_invalid_addr_free+0xd4/0x238
[   24.807986]  kunit_try_run_case+0x170/0x3f0
[   24.808132]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.808241]  kthread+0x328/0x630
[   24.808364]  ret_from_fork+0x10/0x20
[   24.808493] 
[   24.808635] CPU: 0 UID: 0 PID: 316 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250616 #1 PREEMPT 
[   24.808908] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.809002] Hardware name: linux,dummy-virt (DT)
[   24.809109] ==================================================================
[   24.910906] ==================================================================
[   24.911081] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   24.911081] 
[   24.911224] Invalid free of 0x00000000a52bb7a3 (in kfence-#131):
[   24.911353]  test_invalid_addr_free+0xec/0x238
[   24.911477]  kunit_try_run_case+0x170/0x3f0
[   24.911592]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.911704]  kthread+0x328/0x630
[   24.911813]  ret_from_fork+0x10/0x20
[   24.911930] 
[   24.911993] kfence-#131: 0x00000000923591cf-0x0000000038e5d8b4, size=32, cache=test
[   24.911993] 
[   24.912140] allocated by task 318 on cpu 0 at 24.910581s (0.001549s ago):
[   24.912708]  test_alloc+0x230/0x628
[   24.913030]  test_invalid_addr_free+0xd4/0x238
[   24.913231]  kunit_try_run_case+0x170/0x3f0
[   24.913326]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.913709]  kthread+0x328/0x630
[   24.913972]  ret_from_fork+0x10/0x20
[   24.914737] 
[   24.915128] CPU: 0 UID: 0 PID: 318 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250616 #1 PREEMPT 
[   24.915549] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.916323] Hardware name: linux,dummy-virt (DT)
[   24.916686] ==================================================================

[   18.044961] ==================================================================
[   18.045486] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.045486] 
[   18.045806] Invalid free of 0x(____ptrval____) (in kfence-#83):
[   18.046095]  test_invalid_addr_free+0x1e1/0x260
[   18.046267]  kunit_try_run_case+0x1a5/0x480
[   18.046412]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.046756]  kthread+0x337/0x6f0
[   18.046887]  ret_from_fork+0x116/0x1d0
[   18.047022]  ret_from_fork_asm+0x1a/0x30
[   18.047212] 
[   18.047304] kfence-#83: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.047304] 
[   18.047689] allocated by task 333 on cpu 0 at 18.044798s (0.002888s ago):
[   18.047972]  test_alloc+0x364/0x10f0
[   18.048106]  test_invalid_addr_free+0xdb/0x260
[   18.048308]  kunit_try_run_case+0x1a5/0x480
[   18.048551]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.048776]  kthread+0x337/0x6f0
[   18.048889]  ret_from_fork+0x116/0x1d0
[   18.049020]  ret_from_fork_asm+0x1a/0x30
[   18.049152] 
[   18.049243] CPU: 0 UID: 0 PID: 333 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) 
[   18.049796] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.050009] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.050302] ==================================================================
[   18.148957] ==================================================================
[   18.149411] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.149411] 
[   18.149792] Invalid free of 0x(____ptrval____) (in kfence-#84):
[   18.150639]  test_invalid_addr_free+0xfb/0x260
[   18.151048]  kunit_try_run_case+0x1a5/0x480
[   18.151270]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.151680]  kthread+0x337/0x6f0
[   18.151864]  ret_from_fork+0x116/0x1d0
[   18.152184]  ret_from_fork_asm+0x1a/0x30
[   18.152492] 
[   18.152604] kfence-#84: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.152604] 
[   18.152976] allocated by task 335 on cpu 0 at 18.148823s (0.004150s ago):
[   18.153289]  test_alloc+0x2a6/0x10f0
[   18.153804]  test_invalid_addr_free+0xdb/0x260
[   18.154117]  kunit_try_run_case+0x1a5/0x480
[   18.154401]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.154767]  kthread+0x337/0x6f0
[   18.154963]  ret_from_fork+0x116/0x1d0
[   18.155257]  ret_from_fork_asm+0x1a/0x30
[   18.155493] 
[   18.155746] CPU: 0 UID: 0 PID: 335 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) 
[   18.156328] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.156562] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.157080] ==================================================================