Hay
Date
July 19, 2025, 11:12 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.176386] ==================================================================
[   20.176475] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   20.176475] 
[   20.176535] Invalid free of 0x00000000632495f8 (in kfence-#90):
[   20.176586]  test_invalid_addr_free+0x1ac/0x238
[   20.176633]  kunit_try_run_case+0x170/0x3f0
[   20.176679]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.176739]  kthread+0x328/0x630
[   20.176778]  ret_from_fork+0x10/0x20
[   20.176820] 
[   20.176844] kfence-#90: 0x000000005cdd5abb-0x00000000edb49eb2, size=32, cache=kmalloc-32
[   20.176844] 
[   20.176900] allocated by task 307 on cpu 0 at 20.176244s (0.000652s ago):
[   20.176963]  test_alloc+0x29c/0x628
[   20.177004]  test_invalid_addr_free+0xd4/0x238
[   20.177046]  kunit_try_run_case+0x170/0x3f0
[   20.177086]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.177130]  kthread+0x328/0x630
[   20.177165]  ret_from_fork+0x10/0x20
[   20.177206] 
[   20.177251] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.177331] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.177361] Hardware name: linux,dummy-virt (DT)
[   20.177396] ==================================================================
[   20.280502] ==================================================================
[   20.280596] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   20.280596] 
[   20.280656] Invalid free of 0x00000000e28bb487 (in kfence-#91):
[   20.280728]  test_invalid_addr_free+0xec/0x238
[   20.280777]  kunit_try_run_case+0x170/0x3f0
[   20.280820]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.280865]  kthread+0x328/0x630
[   20.280903]  ret_from_fork+0x10/0x20
[   20.280942] 
[   20.280966] kfence-#91: 0x00000000666241c3-0x00000000dfd44d06, size=32, cache=test
[   20.280966] 
[   20.281020] allocated by task 309 on cpu 0 at 20.280374s (0.000643s ago):
[   20.281081]  test_alloc+0x230/0x628
[   20.281121]  test_invalid_addr_free+0xd4/0x238
[   20.281162]  kunit_try_run_case+0x170/0x3f0
[   20.281203]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.281246]  kthread+0x328/0x630
[   20.281281]  ret_from_fork+0x10/0x20
[   20.281321] 
[   20.281364] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.281442] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.281473] Hardware name: linux,dummy-virt (DT)
[   20.281507] ==================================================================

[   18.524765] ==================================================================
[   18.525164] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.525164] 
[   18.525574] Invalid free of 0x(____ptrval____) (in kfence-#79):
[   18.525859]  test_invalid_addr_free+0xfb/0x260
[   18.526045]  kunit_try_run_case+0x1a5/0x480
[   18.526212]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.526538]  kthread+0x337/0x6f0
[   18.526695]  ret_from_fork+0x116/0x1d0
[   18.526829]  ret_from_fork_asm+0x1a/0x30
[   18.527026] 
[   18.527123] kfence-#79: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.527123] 
[   18.527562] allocated by task 327 on cpu 0 at 18.524660s (0.002900s ago):
[   18.527780]  test_alloc+0x2a6/0x10f0
[   18.527964]  test_invalid_addr_free+0xdb/0x260
[   18.528191]  kunit_try_run_case+0x1a5/0x480
[   18.528399]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.528641]  kthread+0x337/0x6f0
[   18.528865]  ret_from_fork+0x116/0x1d0
[   18.529028]  ret_from_fork_asm+0x1a/0x30
[   18.529168] 
[   18.529259] CPU: 0 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.529702] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.529893] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.530226] ==================================================================
[   18.420786] ==================================================================
[   18.421195] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.421195] 
[   18.421616] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   18.422202]  test_invalid_addr_free+0x1e1/0x260
[   18.422369]  kunit_try_run_case+0x1a5/0x480
[   18.422592]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.422823]  kthread+0x337/0x6f0
[   18.422990]  ret_from_fork+0x116/0x1d0
[   18.423188]  ret_from_fork_asm+0x1a/0x30
[   18.423392] 
[   18.423471] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.423471] 
[   18.423870] allocated by task 325 on cpu 1 at 18.420663s (0.003204s ago):
[   18.424797]  test_alloc+0x364/0x10f0
[   18.424983]  test_invalid_addr_free+0xdb/0x260
[   18.425330]  kunit_try_run_case+0x1a5/0x480
[   18.425506]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.425877]  kthread+0x337/0x6f0
[   18.426124]  ret_from_fork+0x116/0x1d0
[   18.426359]  ret_from_fork_asm+0x1a/0x30
[   18.426628] 
[   18.426805] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.427329] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.427629] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.428086] ==================================================================