Hay
Date
July 1, 2025, 12:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   23.091567] ==================================================================
[   23.091652] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.091652] 
[   23.091715] Invalid free of 0x00000000f4ef0129 (in kfence-#104):
[   23.091773]  test_invalid_addr_free+0x1ac/0x238
[   23.091824]  kunit_try_run_case+0x170/0x3f0
[   23.091870]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.091915]  kthread+0x328/0x630
[   23.091956]  ret_from_fork+0x10/0x20
[   23.092000] 
[   23.092024] kfence-#104: 0x000000009ed88615-0x0000000039b2a707, size=32, cache=kmalloc-32
[   23.092024] 
[   23.092083] allocated by task 307 on cpu 0 at 23.091409s (0.000670s ago):
[   23.092149]  test_alloc+0x29c/0x628
[   23.092191]  test_invalid_addr_free+0xd4/0x238
[   23.092235]  kunit_try_run_case+0x170/0x3f0
[   23.092277]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.092323]  kthread+0x328/0x630
[   23.092361]  ret_from_fork+0x10/0x20
[   23.092401] 
[   23.092460] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.092543] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.092575] Hardware name: linux,dummy-virt (DT)
[   23.092612] ==================================================================
[   23.198002] ==================================================================
[   23.198089] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   23.198089] 
[   23.198149] Invalid free of 0x00000000e1731049 (in kfence-#105):
[   23.198204]  test_invalid_addr_free+0xec/0x238
[   23.198261]  kunit_try_run_case+0x170/0x3f0
[   23.198304]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.198355]  kthread+0x328/0x630
[   23.198392]  ret_from_fork+0x10/0x20
[   23.198442] 
[   23.198475] kfence-#105: 0x000000008757fb3e-0x00000000054abc4f, size=32, cache=test
[   23.198475] 
[   23.198529] allocated by task 309 on cpu 0 at 23.197877s (0.000648s ago):
[   23.198595]  test_alloc+0x230/0x628
[   23.198636]  test_invalid_addr_free+0xd4/0x238
[   23.198676]  kunit_try_run_case+0x170/0x3f0
[   23.198717]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.198761]  kthread+0x328/0x630
[   23.198795]  ret_from_fork+0x10/0x20
[   23.198837] 
[   23.198880] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.198963] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.199007] Hardware name: linux,dummy-virt (DT)
[   23.199042] ==================================================================

[   17.657536] ==================================================================
[   17.657912] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.657912] 
[   17.658310] Invalid free of 0x(____ptrval____) (in kfence-#79):
[   17.658588]  test_invalid_addr_free+0xfb/0x260
[   17.658798]  kunit_try_run_case+0x1a5/0x480
[   17.659000]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.659289]  kthread+0x337/0x6f0
[   17.659440]  ret_from_fork+0x116/0x1d0
[   17.659637]  ret_from_fork_asm+0x1a/0x30
[   17.659800] 
[   17.659876] kfence-#79: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.659876] 
[   17.660289] allocated by task 326 on cpu 1 at 17.657422s (0.002865s ago):
[   17.660627]  test_alloc+0x2a6/0x10f0
[   17.660795]  test_invalid_addr_free+0xdb/0x260
[   17.661005]  kunit_try_run_case+0x1a5/0x480
[   17.661271]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.661462]  kthread+0x337/0x6f0
[   17.661583]  ret_from_fork+0x116/0x1d0
[   17.661769]  ret_from_fork_asm+0x1a/0x30
[   17.661964] 
[   17.662093] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.662560] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.662746] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.663122] ==================================================================
[   17.553508] ==================================================================
[   17.553947] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.553947] 
[   17.554366] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   17.554646]  test_invalid_addr_free+0x1e1/0x260
[   17.554825]  kunit_try_run_case+0x1a5/0x480
[   17.555053]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.555824]  kthread+0x337/0x6f0
[   17.556095]  ret_from_fork+0x116/0x1d0
[   17.556305]  ret_from_fork_asm+0x1a/0x30
[   17.556497] 
[   17.556609] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.556609] 
[   17.556996] allocated by task 324 on cpu 0 at 17.553392s (0.003602s ago):
[   17.557619]  test_alloc+0x364/0x10f0
[   17.557779]  test_invalid_addr_free+0xdb/0x260
[   17.558125]  kunit_try_run_case+0x1a5/0x480
[   17.558314]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.558679]  kthread+0x337/0x6f0
[   17.558920]  ret_from_fork+0x116/0x1d0
[   17.559088]  ret_from_fork_asm+0x1a/0x30
[   17.559298] 
[   17.559645] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.560195] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.560386] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.560883] ==================================================================