Hay
Date
May 12, 2025, 11:48 a.m.

Environment
qemu-arm64
qemu-x86_64

[   21.242817] ==================================================================
[   21.242943] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   21.242943] 
[   21.243014] Invalid free of 0x00000000304509bc (in kfence-#104):
[   21.243101]  test_double_free+0x1bc/0x238
[   21.243151]  kunit_try_run_case+0x170/0x3f0
[   21.243194]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.243237]  kthread+0x328/0x630
[   21.243277]  ret_from_fork+0x10/0x20
[   21.243315] 
[   21.243340] kfence-#104: 0x00000000304509bc-0x0000000096f48a84, size=32, cache=kmalloc-32
[   21.243340] 
[   21.243395] allocated by task 303 on cpu 0 at 21.242543s (0.000848s ago):
[   21.243459]  test_alloc+0x29c/0x628
[   21.243499]  test_double_free+0xd4/0x238
[   21.243538]  kunit_try_run_case+0x170/0x3f0
[   21.243577]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.243618]  kthread+0x328/0x630
[   21.243655]  ret_from_fork+0x10/0x20
[   21.243694] 
[   21.243717] freed by task 303 on cpu 0 at 21.242623s (0.001090s ago):
[   21.243777]  test_double_free+0x1ac/0x238
[   21.243817]  kunit_try_run_case+0x170/0x3f0
[   21.243855]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.243896]  kthread+0x328/0x630
[   21.243934]  ret_from_fork+0x10/0x20
[   21.243972] 
[   21.244017] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT 
[   21.244108] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.244136] Hardware name: linux,dummy-virt (DT)
[   21.244169] ==================================================================
[   21.346686] ==================================================================
[   21.346778] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   21.346778] 
[   21.346844] Invalid free of 0x00000000a73bcd9a (in kfence-#105):
[   21.346899]  test_double_free+0x100/0x238
[   21.346945]  kunit_try_run_case+0x170/0x3f0
[   21.346988]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.347031]  kthread+0x328/0x630
[   21.347094]  ret_from_fork+0x10/0x20
[   21.347137] 
[   21.347162] kfence-#105: 0x00000000a73bcd9a-0x00000000613b457c, size=32, cache=test
[   21.347162] 
[   21.347217] allocated by task 305 on cpu 0 at 21.346434s (0.000779s ago):
[   21.347281]  test_alloc+0x230/0x628
[   21.347322]  test_double_free+0xd4/0x238
[   21.347360]  kunit_try_run_case+0x170/0x3f0
[   21.347398]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.347439]  kthread+0x328/0x630
[   21.347475]  ret_from_fork+0x10/0x20
[   21.347514] 
[   21.347538] freed by task 305 on cpu 0 at 21.346496s (0.001037s ago):
[   21.347598]  test_double_free+0xf0/0x238
[   21.347636]  kunit_try_run_case+0x170/0x3f0
[   21.347674]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.347714]  kthread+0x328/0x630
[   21.347752]  ret_from_fork+0x10/0x20
[   21.347788] 
[   21.347831] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT 
[   21.347912] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.347942] Hardware name: linux,dummy-virt (DT)
[   21.347976] ==================================================================

[   24.242107] ==================================================================
[   24.242619] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   24.242619] 
[   24.243304] Invalid free of 0x(____ptrval____) (in kfence-#104):
[   24.244309]  test_double_free+0x1d3/0x260
[   24.244551]  kunit_try_run_case+0x1a5/0x480
[   24.245181]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.245406]  kthread+0x337/0x6f0
[   24.245976]  ret_from_fork+0x116/0x1d0
[   24.246148]  ret_from_fork_asm+0x1a/0x30
[   24.246797] 
[   24.246924] kfence-#104: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   24.246924] 
[   24.247451] allocated by task 320 on cpu 0 at 24.241703s (0.005741s ago):
[   24.248139]  test_alloc+0x364/0x10f0
[   24.248384]  test_double_free+0xdb/0x260
[   24.248534]  kunit_try_run_case+0x1a5/0x480
[   24.248645]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.249140]  kthread+0x337/0x6f0
[   24.249655]  ret_from_fork+0x116/0x1d0
[   24.250057]  ret_from_fork_asm+0x1a/0x30
[   24.250475] 
[   24.250700] freed by task 320 on cpu 0 at 24.241798s (0.008897s ago):
[   24.251121]  test_double_free+0x1e0/0x260
[   24.251502]  kunit_try_run_case+0x1a5/0x480
[   24.251692]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.252143]  kthread+0x337/0x6f0
[   24.252582]  ret_from_fork+0x116/0x1d0
[   24.252969]  ret_from_fork_asm+0x1a/0x30
[   24.253465] 
[   24.253674] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) 
[   24.254407] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.254679] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.255237] ==================================================================
[   24.345932] ==================================================================
[   24.346382] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   24.346382] 
[   24.346651] Invalid free of 0x(____ptrval____) (in kfence-#105):
[   24.346957]  test_double_free+0x112/0x260
[   24.347315]  kunit_try_run_case+0x1a5/0x480
[   24.347637]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.347837]  kthread+0x337/0x6f0
[   24.348193]  ret_from_fork+0x116/0x1d0
[   24.348516]  ret_from_fork_asm+0x1a/0x30
[   24.348926] 
[   24.349080] kfence-#105: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   24.349080] 
[   24.349550] allocated by task 322 on cpu 1 at 24.345656s (0.003887s ago):
[   24.349845]  test_alloc+0x2a6/0x10f0
[   24.350164]  test_double_free+0xdb/0x260
[   24.350611]  kunit_try_run_case+0x1a5/0x480
[   24.350997]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.351350]  kthread+0x337/0x6f0
[   24.351632]  ret_from_fork+0x116/0x1d0
[   24.351919]  ret_from_fork_asm+0x1a/0x30
[   24.352125] 
[   24.352246] freed by task 322 on cpu 1 at 24.345753s (0.006488s ago):
[   24.352783]  test_double_free+0xfa/0x260
[   24.353125]  kunit_try_run_case+0x1a5/0x480
[   24.353488]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.353805]  kthread+0x337/0x6f0
[   24.353983]  ret_from_fork+0x116/0x1d0
[   24.354170]  ret_from_fork_asm+0x1a/0x30
[   24.354378] 
[   24.354565] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) 
[   24.355702] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.356132] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.356706] ==================================================================