Hay
Date
July 24, 2025, 4:41 a.m.

Environment
qemu-arm64
qemu-x86_64

[   37.439485] ==================================================================
[   37.439580] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   37.439580] 
[   37.439643] Invalid free of 0x0000000075884a6a (in kfence-#138):
[   37.439703]  test_invalid_addr_free+0x1ac/0x238
[   37.439766]  kunit_try_run_case+0x170/0x3f0
[   37.439814]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.439860]  kthread+0x328/0x630
[   37.439901]  ret_from_fork+0x10/0x20
[   37.439943] 
[   37.439969] kfence-#138: 0x000000004b006104-0x00000000e61c5721, size=32, cache=kmalloc-32
[   37.439969] 
[   37.440030] allocated by task 338 on cpu 1 at 37.439337s (0.000688s ago):
[   37.440099]  test_alloc+0x29c/0x628
[   37.440139]  test_invalid_addr_free+0xd4/0x238
[   37.440181]  kunit_try_run_case+0x170/0x3f0
[   37.440223]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.440271]  kthread+0x328/0x630
[   37.440308]  ret_from_fork+0x10/0x20
[   37.440348] 
[   37.440395] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250724 #1 PREEMPT 
[   37.440488] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.440522] Hardware name: linux,dummy-virt (DT)
[   37.440558] ==================================================================
[   37.543455] ==================================================================
[   37.543564] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   37.543564] 
[   37.543628] Invalid free of 0x00000000e0604e65 (in kfence-#139):
[   37.543694]  test_invalid_addr_free+0xec/0x238
[   37.543741]  kunit_try_run_case+0x170/0x3f0
[   37.543803]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.543851]  kthread+0x328/0x630
[   37.543891]  ret_from_fork+0x10/0x20
[   37.543933] 
[   37.543958] kfence-#139: 0x00000000d56eae87-0x00000000d040da28, size=32, cache=test
[   37.543958] 
[   37.544020] allocated by task 340 on cpu 1 at 37.543322s (0.000694s ago):
[   37.544092]  test_alloc+0x230/0x628
[   37.544132]  test_invalid_addr_free+0xd4/0x238
[   37.544173]  kunit_try_run_case+0x170/0x3f0
[   37.544215]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.544263]  kthread+0x328/0x630
[   37.544299]  ret_from_fork+0x10/0x20
[   37.544341] 
[   37.544387] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250724 #1 PREEMPT 
[   37.544482] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.544513] Hardware name: linux,dummy-virt (DT)
[   37.544551] ==================================================================

[   33.649276] ==================================================================
[   33.649731] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   33.649731] 
[   33.650070] Invalid free of 0x(____ptrval____) (in kfence-#108):
[   33.650405]  test_invalid_addr_free+0xfb/0x260
[   33.650629]  kunit_try_run_case+0x1a5/0x480
[   33.650772]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.651166]  kthread+0x337/0x6f0
[   33.651313]  ret_from_fork+0x116/0x1d0
[   33.651523]  ret_from_fork_asm+0x1a/0x30
[   33.651732] 
[   33.651822] kfence-#108: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   33.651822] 
[   33.652215] allocated by task 357 on cpu 0 at 33.649146s (0.003067s ago):
[   33.652658]  test_alloc+0x2a6/0x10f0
[   33.652963]  test_invalid_addr_free+0xdb/0x260
[   33.653141]  kunit_try_run_case+0x1a5/0x480
[   33.653358]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.653588]  kthread+0x337/0x6f0
[   33.653754]  ret_from_fork+0x116/0x1d0
[   33.653925]  ret_from_fork_asm+0x1a/0x30
[   33.654141] 
[   33.654243] CPU: 0 UID: 0 PID: 357 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250724 #1 PREEMPT(voluntary) 
[   33.654701] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   33.654931] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.655334] ==================================================================
[   33.545299] ==================================================================
[   33.545697] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   33.545697] 
[   33.545997] Invalid free of 0x(____ptrval____) (in kfence-#107):
[   33.546415]  test_invalid_addr_free+0x1e1/0x260
[   33.546636]  kunit_try_run_case+0x1a5/0x480
[   33.546782]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.547198]  kthread+0x337/0x6f0
[   33.547369]  ret_from_fork+0x116/0x1d0
[   33.547520]  ret_from_fork_asm+0x1a/0x30
[   33.547730] 
[   33.547827] kfence-#107: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   33.547827] 
[   33.548210] allocated by task 355 on cpu 1 at 33.545151s (0.003056s ago):
[   33.548463]  test_alloc+0x364/0x10f0
[   33.548641]  test_invalid_addr_free+0xdb/0x260
[   33.548787]  kunit_try_run_case+0x1a5/0x480
[   33.548925]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.549120]  kthread+0x337/0x6f0
[   33.549289]  ret_from_fork+0x116/0x1d0
[   33.549478]  ret_from_fork_asm+0x1a/0x30
[   33.549687] 
[   33.549866] CPU: 1 UID: 0 PID: 355 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250724 #1 PREEMPT(voluntary) 
[   33.550324] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   33.550508] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.550931] ==================================================================