Hay
Date
May 26, 2025, 9:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   23.082237] ==================================================================
[   23.082472] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   23.082472] 
[   23.082621] Invalid free of 0x0000000016d85281 (in kfence-#109):
[   23.082828]  test_double_free+0x1bc/0x238
[   23.082961]  kunit_try_run_case+0x170/0x3f0
[   23.083067]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.083145]  kthread+0x328/0x630
[   23.083218]  ret_from_fork+0x10/0x20
[   23.083302] 
[   23.083382] kfence-#109: 0x0000000016d85281-0x00000000714381cb, size=32, cache=kmalloc-32
[   23.083382] 
[   23.083543] allocated by task 303 on cpu 0 at 23.081268s (0.002220s ago):
[   23.083766]  test_alloc+0x29c/0x628
[   23.083899]  test_double_free+0xd4/0x238
[   23.084003]  kunit_try_run_case+0x170/0x3f0
[   23.084130]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.084305]  kthread+0x328/0x630
[   23.084505]  ret_from_fork+0x10/0x20
[   23.084601] 
[   23.084864] freed by task 303 on cpu 0 at 23.081436s (0.003414s ago):
[   23.085077]  test_double_free+0x1ac/0x238
[   23.085200]  kunit_try_run_case+0x170/0x3f0
[   23.085341]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.085440]  kthread+0x328/0x630
[   23.085526]  ret_from_fork+0x10/0x20
[   23.085852] 
[   23.085948] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT 
[   23.086231] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.086430] Hardware name: linux,dummy-virt (DT)
[   23.086585] ==================================================================
[   23.184009] ==================================================================
[   23.184103] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   23.184103] 
[   23.184164] Invalid free of 0x00000000e1cdb67a (in kfence-#110):
[   23.184221]  test_double_free+0x100/0x238
[   23.184365]  kunit_try_run_case+0x170/0x3f0
[   23.184422]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.184478]  kthread+0x328/0x630
[   23.184530]  ret_from_fork+0x10/0x20
[   23.184571] 
[   23.184599] kfence-#110: 0x00000000e1cdb67a-0x00000000504e2f1d, size=32, cache=test
[   23.184599] 
[   23.184661] allocated by task 305 on cpu 0 at 23.183265s (0.001391s ago):
[   23.184729]  test_alloc+0x230/0x628
[   23.184770]  test_double_free+0xd4/0x238
[   23.185311]  kunit_try_run_case+0x170/0x3f0
[   23.185443]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.185500]  kthread+0x328/0x630
[   23.185538]  ret_from_fork+0x10/0x20
[   23.185621] 
[   23.185653] freed by task 305 on cpu 0 at 23.183357s (0.002290s ago):
[   23.185731]  test_double_free+0xf0/0x238
[   23.186105]  kunit_try_run_case+0x170/0x3f0
[   23.186421]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.186493]  kthread+0x328/0x630
[   23.186531]  ret_from_fork+0x10/0x20
[   23.186798] 
[   23.187178] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT 
[   23.187439] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.187640] Hardware name: linux,dummy-virt (DT)
[   23.187897] ==================================================================


[   16.715532] ==================================================================
[   16.716107] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   16.716107] 
[   16.716457] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   16.716742]  test_double_free+0x1d3/0x260
[   16.717427]  kunit_try_run_case+0x1a5/0x480
[   16.717638]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.717913]  kthread+0x337/0x6f0
[   16.718078]  ret_from_fork+0x116/0x1d0
[   16.718261]  ret_from_fork_asm+0x1a/0x30
[   16.718445] 
[   16.718547] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.718547] 
[   16.719276] allocated by task 321 on cpu 1 at 16.715293s (0.003981s ago):
[   16.719632]  test_alloc+0x364/0x10f0
[   16.720013]  test_double_free+0xdb/0x260
[   16.720279]  kunit_try_run_case+0x1a5/0x480
[   16.720453]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.720861]  kthread+0x337/0x6f0
[   16.721094]  ret_from_fork+0x116/0x1d0
[   16.721331]  ret_from_fork_asm+0x1a/0x30
[   16.721593] 
[   16.721685] freed by task 321 on cpu 1 at 16.715343s (0.006339s ago):
[   16.722124]  test_double_free+0x1e0/0x260
[   16.722316]  kunit_try_run_case+0x1a5/0x480
[   16.722729]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.722960]  kthread+0x337/0x6f0
[   16.723101]  ret_from_fork+0x116/0x1d0
[   16.723409]  ret_from_fork_asm+0x1a/0x30
[   16.723603] 
[   16.723713] CPU: 1 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) 
[   16.724390] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.724662] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.725025] ==================================================================
[   16.819451] ==================================================================
[   16.819891] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   16.819891] 
[   16.820294] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   16.820574]  test_double_free+0x112/0x260
[   16.821305]  kunit_try_run_case+0x1a5/0x480
[   16.821524]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.822010]  kthread+0x337/0x6f0
[   16.822207]  ret_from_fork+0x116/0x1d0
[   16.822543]  ret_from_fork_asm+0x1a/0x30
[   16.822878] 
[   16.823000] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.823000] 
[   16.823399] allocated by task 323 on cpu 1 at 16.819297s (0.004100s ago):
[   16.823718]  test_alloc+0x2a6/0x10f0
[   16.824224]  test_double_free+0xdb/0x260
[   16.824522]  kunit_try_run_case+0x1a5/0x480
[   16.824839]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.825104]  kthread+0x337/0x6f0
[   16.825412]  ret_from_fork+0x116/0x1d0
[   16.825697]  ret_from_fork_asm+0x1a/0x30
[   16.825988] 
[   16.826125] freed by task 323 on cpu 1 at 16.819336s (0.006786s ago):
[   16.826437]  test_double_free+0xfa/0x260
[   16.826860]  kunit_try_run_case+0x1a5/0x480
[   16.827166]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.827488]  kthread+0x337/0x6f0
[   16.827693]  ret_from_fork+0x116/0x1d0
[   16.828038]  ret_from_fork_asm+0x1a/0x30
[   16.828241] 
[   16.828391] CPU: 1 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) 
[   16.829059] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.829284] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.829858] ==================================================================