Hay
Date
July 9, 2025, 12:11 a.m.

Environment
qemu-arm64
qemu-x86_64

[   23.948644] ==================================================================
[   23.948740] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.948740] 
[   23.948805] Invalid free of 0x00000000badb57dd (in kfence-#94):
[   23.948863]  test_invalid_addr_free+0x1ac/0x238
[   23.948913]  kunit_try_run_case+0x170/0x3f0
[   23.948975]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.949019]  kthread+0x328/0x630
[   23.949058]  ret_from_fork+0x10/0x20
[   23.949108] 
[   23.949133] kfence-#94: 0x000000002236b352-0x00000000ad6e720e, size=32, cache=kmalloc-32
[   23.949133] 
[   23.949187] allocated by task 308 on cpu 0 at 23.948492s (0.000691s ago):
[   23.949252]  test_alloc+0x29c/0x628
[   23.949295]  test_invalid_addr_free+0xd4/0x238
[   23.949337]  kunit_try_run_case+0x170/0x3f0
[   23.949379]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.949437]  kthread+0x328/0x630
[   23.949475]  ret_from_fork+0x10/0x20
[   23.949514] 
[   23.949564] CPU: 0 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   23.949647] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.949676] Hardware name: linux,dummy-virt (DT)
[   23.949714] ==================================================================
[   24.052676] ==================================================================
[   24.052771] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   24.052771] 
[   24.052834] Invalid free of 0x00000000b2c684f0 (in kfence-#95):
[   24.052888]  test_invalid_addr_free+0xec/0x238
[   24.052936]  kunit_try_run_case+0x170/0x3f0
[   24.052981]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.053027]  kthread+0x328/0x630
[   24.053065]  ret_from_fork+0x10/0x20
[   24.053114] 
[   24.053139] kfence-#95: 0x0000000040429a02-0x0000000085951ed4, size=32, cache=test
[   24.053139] 
[   24.053194] allocated by task 310 on cpu 0 at 24.052545s (0.000645s ago):
[   24.053256]  test_alloc+0x230/0x628
[   24.053297]  test_invalid_addr_free+0xd4/0x238
[   24.053340]  kunit_try_run_case+0x170/0x3f0
[   24.053379]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.053434]  kthread+0x328/0x630
[   24.053470]  ret_from_fork+0x10/0x20
[   24.053513] 
[   24.053555] CPU: 0 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   24.053637] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.053665] Hardware name: linux,dummy-virt (DT)
[   24.053703] ==================================================================

[   18.570411] ==================================================================
[   18.570859] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.570859] 
[   18.571249] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   18.571599]  test_invalid_addr_free+0xfb/0x260
[   18.571840]  kunit_try_run_case+0x1a5/0x480
[   18.572042]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.572868]  kthread+0x337/0x6f0
[   18.573061]  ret_from_fork+0x116/0x1d0
[   18.573204]  ret_from_fork_asm+0x1a/0x30
[   18.573597] 
[   18.573688] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.573688] 
[   18.574218] allocated by task 326 on cpu 1 at 18.570302s (0.003913s ago):
[   18.574769]  test_alloc+0x2a6/0x10f0
[   18.575048]  test_invalid_addr_free+0xdb/0x260
[   18.575229]  kunit_try_run_case+0x1a5/0x480
[   18.575625]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.575834]  kthread+0x337/0x6f0
[   18.576022]  ret_from_fork+0x116/0x1d0
[   18.576188]  ret_from_fork_asm+0x1a/0x30
[   18.576400] 
[   18.576801] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.577376] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.577569] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.578093] ==================================================================
[   18.466442] ==================================================================
[   18.466843] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.466843] 
[   18.467214] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   18.468200]  test_invalid_addr_free+0x1e1/0x260
[   18.468441]  kunit_try_run_case+0x1a5/0x480
[   18.468641]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.468821]  kthread+0x337/0x6f0
[   18.469010]  ret_from_fork+0x116/0x1d0
[   18.469224]  ret_from_fork_asm+0x1a/0x30
[   18.469503] 
[   18.469576] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.469576] 
[   18.470007] allocated by task 324 on cpu 0 at 18.466316s (0.003689s ago):
[   18.470226]  test_alloc+0x364/0x10f0
[   18.470458]  test_invalid_addr_free+0xdb/0x260
[   18.470694]  kunit_try_run_case+0x1a5/0x480
[   18.470868]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.471051]  kthread+0x337/0x6f0
[   18.471180]  ret_from_fork+0x116/0x1d0
[   18.471384]  ret_from_fork_asm+0x1a/0x30
[   18.471647] 
[   18.471790] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.472240] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.472508] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.472894] ==================================================================