Hay
Date
July 8, 2025, 7:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   24.340253] ==================================================================
[   24.340372] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   24.340372] 
[   24.340443] Invalid free of 0x00000000e90dc952 (in kfence-#93):
[   24.340508]  test_double_free+0x1bc/0x238
[   24.340554]  kunit_try_run_case+0x170/0x3f0
[   24.340599]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.340643]  kthread+0x328/0x630
[   24.340682]  ret_from_fork+0x10/0x20
[   24.340738] 
[   24.340762] kfence-#93: 0x00000000e90dc952-0x000000003a4fa68d, size=32, cache=kmalloc-32
[   24.340762] 
[   24.340817] allocated by task 303 on cpu 1 at 24.339922s (0.000891s ago):
[   24.340880]  test_alloc+0x29c/0x628
[   24.340920]  test_double_free+0xd4/0x238
[   24.340962]  kunit_try_run_case+0x170/0x3f0
[   24.341000]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.341044]  kthread+0x328/0x630
[   24.341079]  ret_from_fork+0x10/0x20
[   24.341119] 
[   24.341142] freed by task 303 on cpu 1 at 24.339994s (0.001144s ago):
[   24.341206]  test_double_free+0x1ac/0x238
[   24.341247]  kunit_try_run_case+0x170/0x3f0
[   24.341286]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.341330]  kthread+0x328/0x630
[   24.341366]  ret_from_fork+0x10/0x20
[   24.341403] 
[   24.341451] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   24.341533] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.341563] Hardware name: linux,dummy-virt (DT)
[   24.341603] ==================================================================
[   24.444028] ==================================================================
[   24.444132] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   24.444132] 
[   24.444194] Invalid free of 0x00000000f87393c8 (in kfence-#94):
[   24.444248]  test_double_free+0x100/0x238
[   24.444291]  kunit_try_run_case+0x170/0x3f0
[   24.444333]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.444378]  kthread+0x328/0x630
[   24.444414]  ret_from_fork+0x10/0x20
[   24.444452] 
[   24.444476] kfence-#94: 0x00000000f87393c8-0x00000000e7483b79, size=32, cache=test
[   24.444476] 
[   24.444528] allocated by task 305 on cpu 1 at 24.443821s (0.000703s ago):
[   24.444590]  test_alloc+0x230/0x628
[   24.444631]  test_double_free+0xd4/0x238
[   24.444669]  kunit_try_run_case+0x170/0x3f0
[   24.444721]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.444765]  kthread+0x328/0x630
[   24.444800]  ret_from_fork+0x10/0x20
[   24.444839] 
[   24.444861] freed by task 305 on cpu 1 at 24.443883s (0.000975s ago):
[   24.444923]  test_double_free+0xf0/0x238
[   24.444963]  kunit_try_run_case+0x170/0x3f0
[   24.445003]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.445046]  kthread+0x328/0x630
[   24.445082]  ret_from_fork+0x10/0x20
[   24.445121] 
[   24.445162] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   24.445240] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.445268] Hardware name: linux,dummy-virt (DT)
[   24.445302] ==================================================================

[   19.168654] ==================================================================
[   19.169240] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   19.169240] 
[   19.169617] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   19.169877]  test_double_free+0x112/0x260
[   19.170113]  kunit_try_run_case+0x1a5/0x480
[   19.170327]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.170581]  kthread+0x337/0x6f0
[   19.170836]  ret_from_fork+0x116/0x1d0
[   19.170976]  ret_from_fork_asm+0x1a/0x30
[   19.171196] 
[   19.171322] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.171322] 
[   19.171706] allocated by task 322 on cpu 0 at 19.168379s (0.003325s ago):
[   19.172023]  test_alloc+0x2a6/0x10f0
[   19.172189]  test_double_free+0xdb/0x260
[   19.172406]  kunit_try_run_case+0x1a5/0x480
[   19.172582]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.172968]  kthread+0x337/0x6f0
[   19.173155]  ret_from_fork+0x116/0x1d0
[   19.173402]  ret_from_fork_asm+0x1a/0x30
[   19.173710] 
[   19.173809] freed by task 322 on cpu 0 at 19.168440s (0.005367s ago):
[   19.174086]  test_double_free+0xfa/0x260
[   19.174221]  kunit_try_run_case+0x1a5/0x480
[   19.174434]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.174884]  kthread+0x337/0x6f0
[   19.175103]  ret_from_fork+0x116/0x1d0
[   19.175286]  ret_from_fork_asm+0x1a/0x30
[   19.175443] 
[   19.175615] CPU: 0 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   19.176130] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.176271] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.176771] ==================================================================
[   19.064657] ==================================================================
[   19.065084] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   19.065084] 
[   19.065416] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   19.066050]  test_double_free+0x1d3/0x260
[   19.066273]  kunit_try_run_case+0x1a5/0x480
[   19.066458]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.067019]  kthread+0x337/0x6f0
[   19.067289]  ret_from_fork+0x116/0x1d0
[   19.067451]  ret_from_fork_asm+0x1a/0x30
[   19.067761] 
[   19.067850] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   19.067850] 
[   19.068280] allocated by task 320 on cpu 1 at 19.064404s (0.003874s ago):
[   19.068771]  test_alloc+0x364/0x10f0
[   19.068944]  test_double_free+0xdb/0x260
[   19.069250]  kunit_try_run_case+0x1a5/0x480
[   19.069512]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.069849]  kthread+0x337/0x6f0
[   19.070096]  ret_from_fork+0x116/0x1d0
[   19.070354]  ret_from_fork_asm+0x1a/0x30
[   19.070541] 
[   19.070685] freed by task 320 on cpu 1 at 19.064473s (0.006210s ago):
[   19.071130]  test_double_free+0x1e0/0x260
[   19.071297]  kunit_try_run_case+0x1a5/0x480
[   19.071578]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.071825]  kthread+0x337/0x6f0
[   19.071983]  ret_from_fork+0x116/0x1d0
[   19.072170]  ret_from_fork_asm+0x1a/0x30
[   19.072356] 
[   19.072463] CPU: 1 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   19.073256] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.073533] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.073975] ==================================================================