Hay
Date
July 10, 2025, 9:07 a.m.

Environment
qemu-arm64
qemu-x86_64

[   34.651240] ==================================================================
[   34.651329] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   34.651329] 
[   34.651390] Invalid free of 0x00000000d9d4c869 (in kfence-#130):
[   34.651448]  test_invalid_addr_free+0x1ac/0x238
[   34.651498]  kunit_try_run_case+0x170/0x3f0
[   34.651553]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.651599]  kthread+0x328/0x630
[   34.651640]  ret_from_fork+0x10/0x20
[   34.651681] 
[   34.651706] kfence-#130: 0x00000000fee7980e-0x000000007d810949, size=32, cache=kmalloc-32
[   34.651706] 
[   34.651763] allocated by task 338 on cpu 1 at 34.651077s (0.000682s ago):
[   34.651827]  test_alloc+0x29c/0x628
[   34.651869]  test_invalid_addr_free+0xd4/0x238
[   34.651915]  kunit_try_run_case+0x170/0x3f0
[   34.651957]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.652003]  kthread+0x328/0x630
[   34.652040]  ret_from_fork+0x10/0x20
[   34.652080] 
[   34.652142] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250710 #1 PREEMPT 
[   34.652224] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.652255] Hardware name: linux,dummy-virt (DT)
[   34.652289] ==================================================================
[   34.755259] ==================================================================
[   34.755350] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   34.755350] 
[   34.755410] Invalid free of 0x00000000875a19a8 (in kfence-#131):
[   34.755464]  test_invalid_addr_free+0xec/0x238
[   34.755521]  kunit_try_run_case+0x170/0x3f0
[   34.755567]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.755613]  kthread+0x328/0x630
[   34.755652]  ret_from_fork+0x10/0x20
[   34.755692] 
[   34.755716] kfence-#131: 0x000000000d481e21-0x000000009f59de09, size=32, cache=test
[   34.755716] 
[   34.755769] allocated by task 340 on cpu 1 at 34.755112s (0.000654s ago):
[   34.755832]  test_alloc+0x230/0x628
[   34.755873]  test_invalid_addr_free+0xd4/0x238
[   34.755914]  kunit_try_run_case+0x170/0x3f0
[   34.755956]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.756000]  kthread+0x328/0x630
[   34.756036]  ret_from_fork+0x10/0x20
[   34.756074] 
[   34.756117] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250710 #1 PREEMPT 
[   34.756239] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.756282] Hardware name: linux,dummy-virt (DT)
[   34.756315] ==================================================================

[   31.180184] ==================================================================
[   31.180555] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   31.180555] 
[   31.181115] Invalid free of 0x(____ptrval____) (in kfence-#104):
[   31.181483]  test_invalid_addr_free+0x1e1/0x260
[   31.182136]  kunit_try_run_case+0x1a5/0x480
[   31.182363]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.182818]  kthread+0x337/0x6f0
[   31.183014]  ret_from_fork+0x116/0x1d0
[   31.183375]  ret_from_fork_asm+0x1a/0x30
[   31.183677] 
[   31.183778] kfence-#104: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   31.183778] 
[   31.184334] allocated by task 355 on cpu 0 at 31.180058s (0.004254s ago):
[   31.184854]  test_alloc+0x364/0x10f0
[   31.185047]  test_invalid_addr_free+0xdb/0x260
[   31.185384]  kunit_try_run_case+0x1a5/0x480
[   31.185771]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.186007]  kthread+0x337/0x6f0
[   31.186139]  ret_from_fork+0x116/0x1d0
[   31.186329]  ret_from_fork_asm+0x1a/0x30
[   31.186522] 
[   31.186648] CPU: 0 UID: 0 PID: 355 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) 
[   31.187114] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.187317] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.187718] ==================================================================
[   31.284116] ==================================================================
[   31.284573] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   31.284573] 
[   31.285035] Invalid free of 0x(____ptrval____) (in kfence-#105):
[   31.285300]  test_invalid_addr_free+0xfb/0x260
[   31.285513]  kunit_try_run_case+0x1a5/0x480
[   31.286144]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.286638]  kthread+0x337/0x6f0
[   31.286817]  ret_from_fork+0x116/0x1d0
[   31.287039]  ret_from_fork_asm+0x1a/0x30
[   31.287459] 
[   31.287705] kfence-#105: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.287705] 
[   31.288232] allocated by task 357 on cpu 0 at 31.284027s (0.004202s ago):
[   31.288766]  test_alloc+0x2a6/0x10f0
[   31.289048]  test_invalid_addr_free+0xdb/0x260
[   31.289344]  kunit_try_run_case+0x1a5/0x480
[   31.289628]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.289907]  kthread+0x337/0x6f0
[   31.290059]  ret_from_fork+0x116/0x1d0
[   31.290232]  ret_from_fork_asm+0x1a/0x30
[   31.290417] 
[   31.290520] CPU: 0 UID: 0 PID: 357 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) 
[   31.291328] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.291663] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.292160] ==================================================================