Hay
Date
July 2, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   23.321284] ==================================================================
[   23.321369] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.321369] 
[   23.321430] Invalid free of 0x00000000b7aa2e21 (in kfence-#96):
[   23.321484]  test_invalid_addr_free+0x1ac/0x238
[   23.321531]  kunit_try_run_case+0x170/0x3f0
[   23.321593]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.321637]  kthread+0x328/0x630
[   23.321677]  ret_from_fork+0x10/0x20
[   23.321717] 
[   23.321741] kfence-#96: 0x0000000004b32fc8-0x0000000004311b9c, size=32, cache=kmalloc-32
[   23.321741] 
[   23.321798] allocated by task 307 on cpu 1 at 23.321136s (0.000658s ago):
[   23.321860]  test_alloc+0x29c/0x628
[   23.321901]  test_invalid_addr_free+0xd4/0x238
[   23.321942]  kunit_try_run_case+0x170/0x3f0
[   23.321981]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.322025]  kthread+0x328/0x630
[   23.322060]  ret_from_fork+0x10/0x20
[   23.322099] 
[   23.322147] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.322226] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.322257] Hardware name: linux,dummy-virt (DT)
[   23.322293] ==================================================================
[   23.425205] ==================================================================
[   23.425291] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   23.425291] 
[   23.425351] Invalid free of 0x00000000b9ef4f15 (in kfence-#97):
[   23.425400]  test_invalid_addr_free+0xec/0x238
[   23.425448]  kunit_try_run_case+0x170/0x3f0
[   23.425489]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.425534]  kthread+0x328/0x630
[   23.425587]  ret_from_fork+0x10/0x20
[   23.425628] 
[   23.425651] kfence-#97: 0x000000003f424765-0x000000009723ddbc, size=32, cache=test
[   23.425651] 
[   23.425703] allocated by task 309 on cpu 1 at 23.425090s (0.000610s ago):
[   23.425765]  test_alloc+0x230/0x628
[   23.425806]  test_invalid_addr_free+0xd4/0x238
[   23.425846]  kunit_try_run_case+0x170/0x3f0
[   23.425886]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.425929]  kthread+0x328/0x630
[   23.425963]  ret_from_fork+0x10/0x20
[   23.426005] 
[   23.426046] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.426123] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.426152] Hardware name: linux,dummy-virt (DT)
[   23.426186] ==================================================================

[   17.550010] ==================================================================
[   17.550384] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.550384] 
[   17.550693] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   17.551335]  test_invalid_addr_free+0xfb/0x260
[   17.551772]  kunit_try_run_case+0x1a5/0x480
[   17.552177]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.552529]  kthread+0x337/0x6f0
[   17.552658]  ret_from_fork+0x116/0x1d0
[   17.552832]  ret_from_fork_asm+0x1a/0x30
[   17.553214] 
[   17.553405] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.553405] 
[   17.554219] allocated by task 328 on cpu 1 at 17.549912s (0.004305s ago):
[   17.554504]  test_alloc+0x2a6/0x10f0
[   17.554679]  test_invalid_addr_free+0xdb/0x260
[   17.554939]  kunit_try_run_case+0x1a5/0x480
[   17.555132]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.555395]  kthread+0x337/0x6f0
[   17.555561]  ret_from_fork+0x116/0x1d0
[   17.555744]  ret_from_fork_asm+0x1a/0x30
[   17.555965] 
[   17.556091] CPU: 1 UID: 0 PID: 328 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.556533] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.556765] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.557088] ==================================================================
[   17.446077] ==================================================================
[   17.446434] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.446434] 
[   17.446712] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   17.446913]  test_invalid_addr_free+0x1e1/0x260
[   17.447071]  kunit_try_run_case+0x1a5/0x480
[   17.447222]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.447409]  kthread+0x337/0x6f0
[   17.447536]  ret_from_fork+0x116/0x1d0
[   17.447688]  ret_from_fork_asm+0x1a/0x30
[   17.447919] 
[   17.448019] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.448019] 
[   17.448312] allocated by task 326 on cpu 0 at 17.445915s (0.002394s ago):
[   17.448566]  test_alloc+0x364/0x10f0
[   17.449545]  test_invalid_addr_free+0xdb/0x260
[   17.449785]  kunit_try_run_case+0x1a5/0x480
[   17.449981]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.450211]  kthread+0x337/0x6f0
[   17.450382]  ret_from_fork+0x116/0x1d0
[   17.450553]  ret_from_fork_asm+0x1a/0x30
[   17.450732] 
[   17.450847] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.451278] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.451930] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.452418] ==================================================================