Hay
Date
July 15, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   23.137921] ==================================================================
[   23.138014] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   23.138014] 
[   23.138073] Invalid free of 0x000000006fb98c8e (in kfence-#96):
[   23.138126]  test_double_free+0x100/0x238
[   23.138173]  kunit_try_run_case+0x170/0x3f0
[   23.138234]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.138280]  kthread+0x328/0x630
[   23.138321]  ret_from_fork+0x10/0x20
[   23.138361] 
[   23.138386] kfence-#96: 0x000000006fb98c8e-0x00000000270dc602, size=32, cache=test
[   23.138386] 
[   23.138437] allocated by task 307 on cpu 1 at 23.137705s (0.000729s ago):
[   23.138500]  test_alloc+0x230/0x628
[   23.138540]  test_double_free+0xd4/0x238
[   23.138578]  kunit_try_run_case+0x170/0x3f0
[   23.138619]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.138663]  kthread+0x328/0x630
[   23.138702]  ret_from_fork+0x10/0x20
[   23.138741] 
[   23.138764] freed by task 307 on cpu 1 at 23.137765s (0.000996s ago):
[   23.138824]  test_double_free+0xf0/0x238
[   23.138862]  kunit_try_run_case+0x170/0x3f0
[   23.138903]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.138949]  kthread+0x328/0x630
[   23.138987]  ret_from_fork+0x10/0x20
[   23.139026] 
[   23.139069] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   23.139146] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.139176] Hardware name: linux,dummy-virt (DT)
[   23.139221] ==================================================================
[   23.034050] ==================================================================
[   23.034175] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   23.034175] 
[   23.034262] Invalid free of 0x0000000058bd1c1c (in kfence-#95):
[   23.034328]  test_double_free+0x1bc/0x238
[   23.034374]  kunit_try_run_case+0x170/0x3f0
[   23.034421]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.034468]  kthread+0x328/0x630
[   23.034509]  ret_from_fork+0x10/0x20
[   23.034549] 
[   23.034574] kfence-#95: 0x0000000058bd1c1c-0x00000000ada53306, size=32, cache=kmalloc-32
[   23.034574] 
[   23.034629] allocated by task 305 on cpu 1 at 23.033791s (0.000834s ago):
[   23.034691]  test_alloc+0x29c/0x628
[   23.034729]  test_double_free+0xd4/0x238
[   23.034768]  kunit_try_run_case+0x170/0x3f0
[   23.034808]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.034855]  kthread+0x328/0x630
[   23.034893]  ret_from_fork+0x10/0x20
[   23.034931] 
[   23.034954] freed by task 305 on cpu 1 at 23.033868s (0.001082s ago):
[   23.035016]  test_double_free+0x1ac/0x238
[   23.035055]  kunit_try_run_case+0x170/0x3f0
[   23.035096]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.035143]  kthread+0x328/0x630
[   23.035182]  ret_from_fork+0x10/0x20
[   23.035233] 
[   23.035282] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   23.035361] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.035396] Hardware name: linux,dummy-virt (DT)
[   23.035431] ==================================================================

[   16.476182] ==================================================================
[   16.476606] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   16.476606] 
[   16.477087] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   16.477329]  test_double_free+0x112/0x260
[   16.478040]  kunit_try_run_case+0x1a5/0x480
[   16.478243]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.478460]  kthread+0x337/0x6f0
[   16.478617]  ret_from_fork+0x41/0x80
[   16.478791]  ret_from_fork_asm+0x1a/0x30
[   16.478980] 
[   16.479074] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.479074] 
[   16.479420] allocated by task 324 on cpu 0 at 16.476015s (0.003403s ago):
[   16.479693]  test_alloc+0x2a6/0x10f0
[   16.480414]  test_double_free+0xdb/0x260
[   16.480588]  kunit_try_run_case+0x1a5/0x480
[   16.480893]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.481274]  kthread+0x337/0x6f0
[   16.481430]  ret_from_fork+0x41/0x80
[   16.481708]  ret_from_fork_asm+0x1a/0x30
[   16.481921] 
[   16.482183] freed by task 324 on cpu 0 at 16.476064s (0.006116s ago):
[   16.482536]  test_double_free+0xfa/0x260
[   16.482784]  kunit_try_run_case+0x1a5/0x480
[   16.483051]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.483373]  kthread+0x337/0x6f0
[   16.483526]  ret_from_fork+0x41/0x80
[   16.483818]  ret_from_fork_asm+0x1a/0x30
[   16.484006] 
[   16.484201] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   16.484805] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.484997] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.485378] ==================================================================
[   16.372258] ==================================================================
[   16.372672] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   16.372672] 
[   16.373080] Invalid free of 0x(____ptrval____) (in kfence-#73):
[   16.373397]  test_double_free+0x1d3/0x260
[   16.373560]  kunit_try_run_case+0x1a5/0x480
[   16.373766]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.374061]  kthread+0x337/0x6f0
[   16.374230]  ret_from_fork+0x41/0x80
[   16.374381]  ret_from_fork_asm+0x1a/0x30
[   16.374521] 
[   16.374603] kfence-#73: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.374603] 
[   16.375120] allocated by task 322 on cpu 1 at 16.372042s (0.003075s ago):
[   16.375414]  test_alloc+0x364/0x10f0
[   16.375586]  test_double_free+0xdb/0x260
[   16.375757]  kunit_try_run_case+0x1a5/0x480
[   16.375910]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.376301]  kthread+0x337/0x6f0
[   16.376472]  ret_from_fork+0x41/0x80
[   16.376628]  ret_from_fork_asm+0x1a/0x30
[   16.376786] 
[   16.376857] freed by task 322 on cpu 1 at 16.372122s (0.004733s ago):
[   16.377097]  test_double_free+0x1e0/0x260
[   16.377304]  kunit_try_run_case+0x1a5/0x480
[   16.377504]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.377757]  kthread+0x337/0x6f0
[   16.377926]  ret_from_fork+0x41/0x80
[   16.378081]  ret_from_fork_asm+0x1a/0x30
[   16.378267] 
[   16.378383] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   16.378766] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.379075] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.379419] ==================================================================