Hay
Date
July 17, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.668375] ==================================================================
[   21.668469] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   21.668469] 
[   21.668532] Invalid free of 0x0000000087e34b07 (in kfence-#98):
[   21.668587]  test_invalid_addr_free+0x1ac/0x238
[   21.668634]  kunit_try_run_case+0x170/0x3f0
[   21.668678]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.668722]  kthread+0x328/0x630
[   21.668762]  ret_from_fork+0x10/0x20
[   21.668801] 
[   21.668825] kfence-#98: 0x0000000040b4be02-0x000000001f4e49e0, size=32, cache=kmalloc-32
[   21.668825] 
[   21.668895] allocated by task 307 on cpu 0 at 21.668217s (0.000675s ago):
[   21.668961]  test_alloc+0x29c/0x628
[   21.669002]  test_invalid_addr_free+0xd4/0x238
[   21.669043]  kunit_try_run_case+0x170/0x3f0
[   21.669083]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.669126]  kthread+0x328/0x630
[   21.669163]  ret_from_fork+0x10/0x20
[   21.669203] 
[   21.669249] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   21.669327] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.669355] Hardware name: linux,dummy-virt (DT)
[   21.669391] ==================================================================
[   21.772276] ==================================================================
[   21.772371] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   21.772371] 
[   21.772433] Invalid free of 0x00000000908fd59d (in kfence-#99):
[   21.772489]  test_invalid_addr_free+0xec/0x238
[   21.772538]  kunit_try_run_case+0x170/0x3f0
[   21.772581]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.772626]  kthread+0x328/0x630
[   21.772663]  ret_from_fork+0x10/0x20
[   21.772701] 
[   21.772725] kfence-#99: 0x000000008adc0511-0x0000000097d06900, size=32, cache=test
[   21.772725] 
[   21.772780] allocated by task 309 on cpu 0 at 21.772148s (0.000627s ago):
[   21.772843]  test_alloc+0x230/0x628
[   21.772896]  test_invalid_addr_free+0xd4/0x238
[   21.772936]  kunit_try_run_case+0x170/0x3f0
[   21.772977]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.773020]  kthread+0x328/0x630
[   21.773056]  ret_from_fork+0x10/0x20
[   21.773095] 
[   21.773139] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   21.773217] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.773246] Hardware name: linux,dummy-virt (DT)
[   21.773279] ==================================================================

[   18.363324] ==================================================================
[   18.363779] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.363779] 
[   18.364645] Invalid free of 0x(____ptrval____) (in kfence-#81):
[   18.365079]  test_invalid_addr_free+0x1e1/0x260
[   18.365316]  kunit_try_run_case+0x1a5/0x480
[   18.365478]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.365680]  kthread+0x337/0x6f0
[   18.365855]  ret_from_fork+0x116/0x1d0
[   18.366003]  ret_from_fork_asm+0x1a/0x30
[   18.366220] 
[   18.366323] kfence-#81: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.366323] 
[   18.367016] allocated by task 324 on cpu 0 at 18.363195s (0.003819s ago):
[   18.367317]  test_alloc+0x364/0x10f0
[   18.367507]  test_invalid_addr_free+0xdb/0x260
[   18.367728]  kunit_try_run_case+0x1a5/0x480
[   18.368140]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.368372]  kthread+0x337/0x6f0
[   18.368523]  ret_from_fork+0x116/0x1d0
[   18.368717]  ret_from_fork_asm+0x1a/0x30
[   18.368899] 
[   18.369022] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.369467] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.370018] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.370379] ==================================================================
[   18.467286] ==================================================================
[   18.467642] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.467642] 
[   18.468035] Invalid free of 0x(____ptrval____) (in kfence-#82):
[   18.468639]  test_invalid_addr_free+0xfb/0x260
[   18.469172]  kunit_try_run_case+0x1a5/0x480
[   18.469536]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.469808]  kthread+0x337/0x6f0
[   18.470139]  ret_from_fork+0x116/0x1d0
[   18.470513]  ret_from_fork_asm+0x1a/0x30
[   18.470696] 
[   18.470857] kfence-#82: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.470857] 
[   18.471364] allocated by task 326 on cpu 1 at 18.467174s (0.004188s ago):
[   18.471582]  test_alloc+0x2a6/0x10f0
[   18.471965]  test_invalid_addr_free+0xdb/0x260
[   18.472384]  kunit_try_run_case+0x1a5/0x480
[   18.472813]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.473099]  kthread+0x337/0x6f0
[   18.473221]  ret_from_fork+0x116/0x1d0
[   18.473355]  ret_from_fork_asm+0x1a/0x30
[   18.473493] 
[   18.473588] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.473950] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.474168] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.474543] ==================================================================