Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   33.063612] ==================================================================
[   33.063798] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   33.063798] 
[   33.064425] Invalid free of 0x00000000c915c51c (in kfence-#134):
[   33.064664]  test_double_free+0x1bc/0x238
[   33.064802]  kunit_try_run_case+0x170/0x3f0
[   33.065220]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.065902]  kthread+0x328/0x630
[   33.066282]  ret_from_fork+0x10/0x20
[   33.066436] 
[   33.066528] kfence-#134: 0x00000000c915c51c-0x000000008d8deb11, size=32, cache=kmalloc-32
[   33.066528] 
[   33.066764] allocated by task 303 on cpu 0 at 33.063035s (0.003718s ago):
[   33.067211]  test_alloc+0x29c/0x628
[   33.067319]  test_double_free+0xd4/0x238
[   33.067445]  kunit_try_run_case+0x170/0x3f0
[   33.067554]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.067666]  kthread+0x328/0x630
[   33.067757]  ret_from_fork+0x10/0x20
[   33.067865] 
[   33.067935] freed by task 303 on cpu 0 at 33.063199s (0.004727s ago):
[   33.068463]  test_double_free+0x1ac/0x238
[   33.068588]  kunit_try_run_case+0x170/0x3f0
[   33.068783]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.068913]  kthread+0x328/0x630
[   33.069662]  ret_from_fork+0x10/0x20
[   33.070214] 
[   33.070319] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   33.070555] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.070687] Hardware name: linux,dummy-virt (DT)
[   33.070776] ==================================================================
[   33.165517] ==================================================================
[   33.165860] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   33.165860] 
[   33.166583] Invalid free of 0x0000000048f6cd5e (in kfence-#135):
[   33.167474]  test_double_free+0x100/0x238
[   33.167620]  kunit_try_run_case+0x170/0x3f0
[   33.167751]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.167918]  kthread+0x328/0x630
[   33.168191]  ret_from_fork+0x10/0x20
[   33.168522] 
[   33.168585] kfence-#135: 0x0000000048f6cd5e-0x000000007bb004a5, size=32, cache=test
[   33.168585] 
[   33.168721] allocated by task 305 on cpu 0 at 33.164834s (0.003878s ago):
[   33.168988]  test_alloc+0x230/0x628
[   33.169293]  test_double_free+0xd4/0x238
[   33.169420]  kunit_try_run_case+0x170/0x3f0
[   33.169567]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.169680]  kthread+0x328/0x630
[   33.169815]  ret_from_fork+0x10/0x20
[   33.169915] 
[   33.169974] freed by task 305 on cpu 0 at 33.164930s (0.005036s ago):
[   33.170249]  test_double_free+0xf0/0x238
[   33.170653]  kunit_try_run_case+0x170/0x3f0
[   33.170772]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.170994]  kthread+0x328/0x630
[   33.171200]  ret_from_fork+0x10/0x20
[   33.171711] 
[   33.171871] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   33.172169] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.172259] Hardware name: linux,dummy-virt (DT)
[   33.172416] ==================================================================


[   17.244393] ==================================================================
[   17.244846] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.244846] 
[   17.245216] Invalid free of 0x(____ptrval____) (in kfence-#72):
[   17.245540]  test_double_free+0x112/0x260
[   17.245725]  kunit_try_run_case+0x1a5/0x480
[   17.245914]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.246262]  kthread+0x337/0x6f0
[   17.246391]  ret_from_fork+0x116/0x1d0
[   17.246576]  ret_from_fork_asm+0x1a/0x30
[   17.246951] 
[   17.247068] kfence-#72: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.247068] 
[   17.247380] allocated by task 322 on cpu 1 at 17.244233s (0.003145s ago):
[   17.247688]  test_alloc+0x2a6/0x10f0
[   17.247889]  test_double_free+0xdb/0x260
[   17.248062]  kunit_try_run_case+0x1a5/0x480
[   17.248290]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.248511]  kthread+0x337/0x6f0
[   17.248655]  ret_from_fork+0x116/0x1d0
[   17.248788]  ret_from_fork_asm+0x1a/0x30
[   17.249092] 
[   17.249189] freed by task 322 on cpu 1 at 17.244288s (0.004899s ago):
[   17.249551]  test_double_free+0xfa/0x260
[   17.249693]  kunit_try_run_case+0x1a5/0x480
[   17.249909]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.250200]  kthread+0x337/0x6f0
[   17.250326]  ret_from_fork+0x116/0x1d0
[   17.250499]  ret_from_fork_asm+0x1a/0x30
[   17.250768] 
[   17.250888] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   17.251398] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.251582] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.252116] ==================================================================
[   17.140420] ==================================================================
[   17.140850] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   17.140850] 
[   17.141224] Invalid free of 0x(____ptrval____) (in kfence-#71):
[   17.141805]  test_double_free+0x1d3/0x260
[   17.142003]  kunit_try_run_case+0x1a5/0x480
[   17.142216]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.142445]  kthread+0x337/0x6f0
[   17.142598]  ret_from_fork+0x116/0x1d0
[   17.142771]  ret_from_fork_asm+0x1a/0x30
[   17.143470] 
[   17.143564] kfence-#71: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.143564] 
[   17.143976] allocated by task 320 on cpu 0 at 17.140246s (0.003728s ago):
[   17.144498]  test_alloc+0x364/0x10f0
[   17.144762]  test_double_free+0xdb/0x260
[   17.145030]  kunit_try_run_case+0x1a5/0x480
[   17.145301]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.145536]  kthread+0x337/0x6f0
[   17.145772]  ret_from_fork+0x116/0x1d0
[   17.146109]  ret_from_fork_asm+0x1a/0x30
[   17.146352] 
[   17.146514] freed by task 320 on cpu 0 at 17.140292s (0.006219s ago):
[   17.146880]  test_double_free+0x1e0/0x260
[   17.147075]  kunit_try_run_case+0x1a5/0x480
[   17.147380]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.147606]  kthread+0x337/0x6f0
[   17.147888]  ret_from_fork+0x116/0x1d0
[   17.148087]  ret_from_fork_asm+0x1a/0x30
[   17.148403] 
[   17.148529] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   17.149131] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.149315] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.149859] ==================================================================