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

Environment
qemu-arm64
qemu-x86_64

[   20.348119] ==================================================================
[   20.348194] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   20.348194] 
[   20.348253] Invalid free of 0x000000001e3c47ea (in kfence-#91):
[   20.348306]  test_invalid_addr_free+0x1ac/0x238
[   20.348353]  kunit_try_run_case+0x170/0x3f0
[   20.348402]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.348446]  kthread+0x328/0x630
[   20.348483]  ret_from_fork+0x10/0x20
[   20.348521] 
[   20.348682] kfence-#91: 0x000000003a473fd7-0x000000004ff40023, size=32, cache=kmalloc-32
[   20.348682] 
[   20.348756] allocated by task 307 on cpu 0 at 20.347967s (0.000777s ago):
[   20.348821]  test_alloc+0x29c/0x628
[   20.348871]  test_invalid_addr_free+0xd4/0x238
[   20.348912]  kunit_try_run_case+0x170/0x3f0
[   20.348961]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.349011]  kthread+0x328/0x630
[   20.349047]  ret_from_fork+0x10/0x20
[   20.349096] 
[   20.349378] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.349474] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.349511] Hardware name: linux,dummy-virt (DT)
[   20.349600] ==================================================================
[   20.447602] ==================================================================
[   20.447706] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   20.447706] 
[   20.447767] Invalid free of 0x0000000052ee1042 (in kfence-#92):
[   20.447821]  test_invalid_addr_free+0xec/0x238
[   20.447867]  kunit_try_run_case+0x170/0x3f0
[   20.447908]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.447953]  kthread+0x328/0x630
[   20.447989]  ret_from_fork+0x10/0x20
[   20.448027] 
[   20.448052] kfence-#92: 0x00000000126a9155-0x00000000c60d422a, size=32, cache=test
[   20.448052] 
[   20.448105] allocated by task 309 on cpu 0 at 20.447478s (0.000624s ago):
[   20.448166]  test_alloc+0x230/0x628
[   20.448205]  test_invalid_addr_free+0xd4/0x238
[   20.448246]  kunit_try_run_case+0x170/0x3f0
[   20.448286]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.448330]  kthread+0x328/0x630
[   20.448364]  ret_from_fork+0x10/0x20
[   20.448407] 
[   20.448450] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.448527] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.448558] Hardware name: linux,dummy-virt (DT)
[   20.448590] ==================================================================

[   18.383763] ==================================================================
[   18.384170] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.384170] 
[   18.384584] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   18.384921]  test_invalid_addr_free+0xfb/0x260
[   18.385536]  kunit_try_run_case+0x1a5/0x480
[   18.385700]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.386089]  kthread+0x337/0x6f0
[   18.386264]  ret_from_fork+0x116/0x1d0
[   18.386446]  ret_from_fork_asm+0x1a/0x30
[   18.386631] 
[   18.387128] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.387128] 
[   18.387475] allocated by task 327 on cpu 1 at 18.383661s (0.003812s ago):
[   18.388000]  test_alloc+0x2a6/0x10f0
[   18.388192]  test_invalid_addr_free+0xdb/0x260
[   18.388376]  kunit_try_run_case+0x1a5/0x480
[   18.388589]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.389029]  kthread+0x337/0x6f0
[   18.389186]  ret_from_fork+0x116/0x1d0
[   18.389523]  ret_from_fork_asm+0x1a/0x30
[   18.389733] 
[   18.389851] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.390323] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.390507] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.391165] ==================================================================
[   18.279782] ==================================================================
[   18.280211] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.280211] 
[   18.280575] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   18.281218]  test_invalid_addr_free+0x1e1/0x260
[   18.281463]  kunit_try_run_case+0x1a5/0x480
[   18.281657]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.282076]  kthread+0x337/0x6f0
[   18.282365]  ret_from_fork+0x116/0x1d0
[   18.282530]  ret_from_fork_asm+0x1a/0x30
[   18.282709] 
[   18.282815] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.282815] 
[   18.283229] allocated by task 325 on cpu 1 at 18.279663s (0.003563s ago):
[   18.283503]  test_alloc+0x364/0x10f0
[   18.283672]  test_invalid_addr_free+0xdb/0x260
[   18.284336]  kunit_try_run_case+0x1a5/0x480
[   18.284583]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.284976]  kthread+0x337/0x6f0
[   18.285141]  ret_from_fork+0x116/0x1d0
[   18.285468]  ret_from_fork_asm+0x1a/0x30
[   18.285749] 
[   18.285865] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.286473] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.286748] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.287239] ==================================================================