Hay
Date
June 17, 2025, 6:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   21.932242] ==================================================================
[   21.932360] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   21.932360] 
[   21.932429] Invalid free of 0x000000001c3efaa2 (in kfence-#93):
[   21.932493]  test_double_free+0x1bc/0x238
[   21.932543]  kunit_try_run_case+0x170/0x3f0
[   21.932590]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.932635]  kthread+0x328/0x630
[   21.932677]  ret_from_fork+0x10/0x20
[   21.932720] 
[   21.932745] kfence-#93: 0x000000001c3efaa2-0x000000009dddf49e, size=32, cache=kmalloc-32
[   21.932745] 
[   21.932801] allocated by task 312 on cpu 1 at 21.931938s (0.000859s ago):
[   21.932867]  test_alloc+0x29c/0x628
[   21.932909]  test_double_free+0xd4/0x238
[   21.932966]  kunit_try_run_case+0x170/0x3f0
[   21.933008]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.933053]  kthread+0x328/0x630
[   21.933090]  ret_from_fork+0x10/0x20
[   21.933130] 
[   21.933154] freed by task 312 on cpu 1 at 21.932016s (0.001134s ago):
[   21.933219]  test_double_free+0x1ac/0x238
[   21.933260]  kunit_try_run_case+0x170/0x3f0
[   21.933300]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.933345]  kthread+0x328/0x630
[   21.933382]  ret_from_fork+0x10/0x20
[   21.933422] 
[   21.933467] CPU: 1 UID: 0 PID: 312 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT 
[   21.933551] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.933588] Hardware name: linux,dummy-virt (DT)
[   21.933624] ==================================================================
[   22.034714] ==================================================================
[   22.034811] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   22.034811] 
[   22.034875] Invalid free of 0x00000000db1f9ce7 (in kfence-#94):
[   22.034943]  test_double_free+0x100/0x238
[   22.034993]  kunit_try_run_case+0x170/0x3f0
[   22.035062]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.035120]  kthread+0x328/0x630
[   22.035160]  ret_from_fork+0x10/0x20
[   22.035246] 
[   22.035273] kfence-#94: 0x00000000db1f9ce7-0x00000000ab38c4b5, size=32, cache=test
[   22.035273] 
[   22.035328] allocated by task 314 on cpu 1 at 22.034492s (0.000832s ago):
[   22.035393]  test_alloc+0x230/0x628
[   22.035434]  test_double_free+0xd4/0x238
[   22.035476]  kunit_try_run_case+0x170/0x3f0
[   22.035517]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.035560]  kthread+0x328/0x630
[   22.035597]  ret_from_fork+0x10/0x20
[   22.035636] 
[   22.035660] freed by task 314 on cpu 1 at 22.034559s (0.001097s ago):
[   22.035724]  test_double_free+0xf0/0x238
[   22.035766]  kunit_try_run_case+0x170/0x3f0
[   22.035806]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.035852]  kthread+0x328/0x630
[   22.035887]  ret_from_fork+0x10/0x20
[   22.035936] 
[   22.035980] CPU: 1 UID: 0 PID: 314 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT 
[   22.036066] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.036097] Hardware name: linux,dummy-virt (DT)
[   22.036131] ==================================================================

[   27.316153] ==================================================================
[   27.316744] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   27.316744] 
[   27.317365] Invalid free of 0x(____ptrval____) (in kfence-#116):
[   27.317867]  test_double_free+0x112/0x260
[   27.318267]  kunit_try_run_case+0x1a5/0x480
[   27.318685]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.319248]  kthread+0x337/0x6f0
[   27.319683]  ret_from_fork+0x116/0x1d0
[   27.320079]  ret_from_fork_asm+0x1a/0x30
[   27.320542] 
[   27.320855] kfence-#116: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   27.320855] 
[   27.321607] allocated by task 332 on cpu 1 at 27.315824s (0.005778s ago):
[   27.322050]  test_alloc+0x2a6/0x10f0
[   27.322506]  test_double_free+0xdb/0x260
[   27.322941]  kunit_try_run_case+0x1a5/0x480
[   27.323473]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.323986]  kthread+0x337/0x6f0
[   27.324463]  ret_from_fork+0x116/0x1d0
[   27.324855]  ret_from_fork_asm+0x1a/0x30
[   27.325403] 
[   27.325598] freed by task 332 on cpu 1 at 27.315931s (0.009661s ago):
[   27.326312]  test_double_free+0xfa/0x260
[   27.326705]  kunit_try_run_case+0x1a5/0x480
[   27.327180]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.327793]  kthread+0x337/0x6f0
[   27.328161]  ret_from_fork+0x116/0x1d0
[   27.328713]  ret_from_fork_asm+0x1a/0x30
[   27.329166] 
[   27.329475] CPU: 1 UID: 0 PID: 332 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) 
[   27.330162] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.330674] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.331474] ==================================================================
[   27.212120] ==================================================================
[   27.212703] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   27.212703] 
[   27.213361] Invalid free of 0x(____ptrval____) (in kfence-#115):
[   27.214463]  test_double_free+0x1d3/0x260
[   27.214784]  kunit_try_run_case+0x1a5/0x480
[   27.215117]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.216060]  kthread+0x337/0x6f0
[   27.216456]  ret_from_fork+0x116/0x1d0
[   27.216851]  ret_from_fork_asm+0x1a/0x30
[   27.217268] 
[   27.217482] kfence-#115: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   27.217482] 
[   27.218421] allocated by task 330 on cpu 0 at 27.211817s (0.006599s ago):
[   27.218928]  test_alloc+0x364/0x10f0
[   27.219216]  test_double_free+0xdb/0x260
[   27.219647]  kunit_try_run_case+0x1a5/0x480
[   27.220143]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.220625]  kthread+0x337/0x6f0
[   27.221017]  ret_from_fork+0x116/0x1d0
[   27.221470]  ret_from_fork_asm+0x1a/0x30
[   27.221842] 
[   27.222085] freed by task 330 on cpu 0 at 27.211913s (0.010166s ago):
[   27.222616]  test_double_free+0x1e0/0x260
[   27.223120]  kunit_try_run_case+0x1a5/0x480
[   27.223632]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.224058]  kthread+0x337/0x6f0
[   27.224544]  ret_from_fork+0x116/0x1d0
[   27.224954]  ret_from_fork_asm+0x1a/0x30
[   27.225428] 
[   27.225678] CPU: 0 UID: 0 PID: 330 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) 
[   27.226681] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.227118] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.227751] ==================================================================