Hay
Date
July 4, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   34.754187] ==================================================================
[   34.754273] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   34.754273] 
[   34.754331] Invalid free of 0x000000003a893bb6 (in kfence-#133):
[   34.754384]  test_invalid_addr_free+0xec/0x238
[   34.754433]  kunit_try_run_case+0x170/0x3f0
[   34.754477]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.754524]  kthread+0x328/0x630
[   34.754563]  ret_from_fork+0x10/0x20
[   34.754603] 
[   34.754627] kfence-#133: 0x00000000080b3eeb-0x00000000cef0d908, size=32, cache=test
[   34.754627] 
[   34.754678] allocated by task 342 on cpu 1 at 34.754075s (0.000600s ago):
[   34.754744]  test_alloc+0x230/0x628
[   34.754786]  test_invalid_addr_free+0xd4/0x238
[   34.754828]  kunit_try_run_case+0x170/0x3f0
[   34.754871]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.755004]  kthread+0x328/0x630
[   34.755040]  ret_from_fork+0x10/0x20
[   34.755080] 
[   34.755120] CPU: 1 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT 
[   34.755198] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.755228] Hardware name: linux,dummy-virt (DT)
[   34.755262] ==================================================================
[   34.650260] ==================================================================
[   34.650344] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   34.650344] 
[   34.650404] Invalid free of 0x0000000025cdc203 (in kfence-#132):
[   34.650459]  test_invalid_addr_free+0x1ac/0x238
[   34.650509]  kunit_try_run_case+0x170/0x3f0
[   34.650556]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.650603]  kthread+0x328/0x630
[   34.650669]  ret_from_fork+0x10/0x20
[   34.650712] 
[   34.650750] kfence-#132: 0x00000000e61c803f-0x000000006fa45e98, size=32, cache=kmalloc-32
[   34.650750] 
[   34.650819] allocated by task 340 on cpu 1 at 34.650134s (0.000681s ago):
[   34.650895]  test_alloc+0x29c/0x628
[   34.650948]  test_invalid_addr_free+0xd4/0x238
[   34.651005]  kunit_try_run_case+0x170/0x3f0
[   34.651061]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.651105]  kthread+0x328/0x630
[   34.651155]  ret_from_fork+0x10/0x20
[   34.651208] 
[   34.651250] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT 
[   34.651343] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.651375] Hardware name: linux,dummy-virt (DT)
[   34.651409] ==================================================================

[   32.013671] ==================================================================
[   32.014250] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   32.014250] 
[   32.014692] Invalid free of 0x(____ptrval____) (in kfence-#112):
[   32.015053]  test_invalid_addr_free+0x1e1/0x260
[   32.015327]  kunit_try_run_case+0x1a5/0x480
[   32.015633]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.015871]  kthread+0x337/0x6f0
[   32.016093]  ret_from_fork+0x116/0x1d0
[   32.016500]  ret_from_fork_asm+0x1a/0x30
[   32.016715] 
[   32.016791] kfence-#112: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   32.016791] 
[   32.017558] allocated by task 356 on cpu 0 at 32.013515s (0.004024s ago):
[   32.017941]  test_alloc+0x364/0x10f0
[   32.018086]  test_invalid_addr_free+0xdb/0x260
[   32.018565]  kunit_try_run_case+0x1a5/0x480
[   32.018876]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.019111]  kthread+0x337/0x6f0
[   32.019240]  ret_from_fork+0x116/0x1d0
[   32.019464]  ret_from_fork_asm+0x1a/0x30
[   32.019686] 
[   32.019820] CPU: 0 UID: 0 PID: 356 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) 
[   32.020486] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.020774] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   32.021253] ==================================================================
[   32.118353] ==================================================================
[   32.118768] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   32.118768] 
[   32.119077] Invalid free of 0x(____ptrval____) (in kfence-#113):
[   32.119298]  test_invalid_addr_free+0xfb/0x260
[   32.120090]  kunit_try_run_case+0x1a5/0x480
[   32.120412]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.120708]  kthread+0x337/0x6f0
[   32.120904]  ret_from_fork+0x116/0x1d0
[   32.121114]  ret_from_fork_asm+0x1a/0x30
[   32.121343] 
[   32.121461] kfence-#113: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   32.121461] 
[   32.121926] allocated by task 358 on cpu 1 at 32.118213s (0.003711s ago):
[   32.122185]  test_alloc+0x2a6/0x10f0
[   32.122370]  test_invalid_addr_free+0xdb/0x260
[   32.122796]  kunit_try_run_case+0x1a5/0x480
[   32.123098]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.123421]  kthread+0x337/0x6f0
[   32.123611]  ret_from_fork+0x116/0x1d0
[   32.123823]  ret_from_fork_asm+0x1a/0x30
[   32.124089] 
[   32.124251] CPU: 1 UID: 0 PID: 358 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) 
[   32.124834] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.125012] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   32.125299] ==================================================================