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

Environment
qemu-arm64
qemu-x86_64

[   23.217280] ==================================================================
[   23.217371] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   23.217371] 
[   23.217428] Invalid free of 0x00000000b96772e6 (in kfence-#95):
[   23.217483]  test_double_free+0x100/0x238
[   23.217529]  kunit_try_run_case+0x170/0x3f0
[   23.217589]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.217632]  kthread+0x328/0x630
[   23.217672]  ret_from_fork+0x10/0x20
[   23.217711] 
[   23.217734] kfence-#95: 0x00000000b96772e6-0x00000000fd863d86, size=32, cache=test
[   23.217734] 
[   23.217787] allocated by task 305 on cpu 0 at 23.217071s (0.000712s ago):
[   23.217848]  test_alloc+0x230/0x628
[   23.217887]  test_double_free+0xd4/0x238
[   23.217927]  kunit_try_run_case+0x170/0x3f0
[   23.217965]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.218009]  kthread+0x328/0x630
[   23.218043]  ret_from_fork+0x10/0x20
[   23.218081] 
[   23.218105] freed by task 305 on cpu 0 at 23.217130s (0.000972s ago):
[   23.218165]  test_double_free+0xf0/0x238
[   23.218205]  kunit_try_run_case+0x170/0x3f0
[   23.218244]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.218287]  kthread+0x328/0x630
[   23.218323]  ret_from_fork+0x10/0x20
[   23.218360] 
[   23.218402] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.218480] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.218510] Hardware name: linux,dummy-virt (DT)
[   23.218543] ==================================================================
[   23.113355] ==================================================================
[   23.113471] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   23.113471] 
[   23.113536] Invalid free of 0x00000000af654106 (in kfence-#94):
[   23.113618]  test_double_free+0x1bc/0x238
[   23.113667]  kunit_try_run_case+0x170/0x3f0
[   23.113711]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.113755]  kthread+0x328/0x630
[   23.113795]  ret_from_fork+0x10/0x20
[   23.113834] 
[   23.113858] kfence-#94: 0x00000000af654106-0x00000000f384c7a3, size=32, cache=kmalloc-32
[   23.113858] 
[   23.113911] allocated by task 303 on cpu 0 at 23.113071s (0.000836s ago):
[   23.113972]  test_alloc+0x29c/0x628
[   23.114013]  test_double_free+0xd4/0x238
[   23.114052]  kunit_try_run_case+0x170/0x3f0
[   23.114093]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.114134]  kthread+0x328/0x630
[   23.114169]  ret_from_fork+0x10/0x20
[   23.114208] 
[   23.114231] freed by task 303 on cpu 0 at 23.113143s (0.001084s ago):
[   23.114293]  test_double_free+0x1ac/0x238
[   23.114334]  kunit_try_run_case+0x170/0x3f0
[   23.114377]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.114420]  kthread+0x328/0x630
[   23.114456]  ret_from_fork+0x10/0x20
[   23.114495] 
[   23.114542] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.114635] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.114666] Hardware name: linux,dummy-virt (DT)
[   23.114701] ==================================================================

[   17.342129] ==================================================================
[   17.342546] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.342546] 
[   17.343017] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   17.343568]  test_double_free+0x112/0x260
[   17.343768]  kunit_try_run_case+0x1a5/0x480
[   17.343995]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.344348]  kthread+0x337/0x6f0
[   17.344542]  ret_from_fork+0x116/0x1d0
[   17.345164]  ret_from_fork_asm+0x1a/0x30
[   17.345371] 
[   17.345453] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.345453] 
[   17.346023] allocated by task 324 on cpu 0 at 17.341946s (0.004074s ago):
[   17.346499]  test_alloc+0x2a6/0x10f0
[   17.346670]  test_double_free+0xdb/0x260
[   17.347009]  kunit_try_run_case+0x1a5/0x480
[   17.347208]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.347444]  kthread+0x337/0x6f0
[   17.347602]  ret_from_fork+0x116/0x1d0
[   17.347996]  ret_from_fork_asm+0x1a/0x30
[   17.348197] 
[   17.348283] freed by task 324 on cpu 0 at 17.342000s (0.006280s ago):
[   17.348735]  test_double_free+0xfa/0x260
[   17.349041]  kunit_try_run_case+0x1a5/0x480
[   17.349212]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.349592]  kthread+0x337/0x6f0
[   17.349773]  ret_from_fork+0x116/0x1d0
[   17.350064]  ret_from_fork_asm+0x1a/0x30
[   17.350252] 
[   17.350371] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.350988] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.351176] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.351698] ==================================================================
[   17.238196] ==================================================================
[   17.238673] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   17.238673] 
[   17.239078] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   17.239462]  test_double_free+0x1d3/0x260
[   17.239651]  kunit_try_run_case+0x1a5/0x480
[   17.239919]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.240125]  kthread+0x337/0x6f0
[   17.240359]  ret_from_fork+0x116/0x1d0
[   17.240555]  ret_from_fork_asm+0x1a/0x30
[   17.240837] 
[   17.240918] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.240918] 
[   17.241301] allocated by task 322 on cpu 1 at 17.237937s (0.003362s ago):
[   17.241602]  test_alloc+0x364/0x10f0
[   17.241766]  test_double_free+0xdb/0x260
[   17.241965]  kunit_try_run_case+0x1a5/0x480
[   17.242177]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.242410]  kthread+0x337/0x6f0
[   17.242564]  ret_from_fork+0x116/0x1d0
[   17.242793]  ret_from_fork_asm+0x1a/0x30
[   17.242960] 
[   17.243035] freed by task 322 on cpu 1 at 17.238009s (0.005024s ago):
[   17.243240]  test_double_free+0x1e0/0x260
[   17.243388]  kunit_try_run_case+0x1a5/0x480
[   17.243583]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.243960]  kthread+0x337/0x6f0
[   17.244170]  ret_from_fork+0x116/0x1d0
[   17.244376]  ret_from_fork_asm+0x1a/0x30
[   17.244580] 
[   17.244699] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.245208] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.245415] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.245854] ==================================================================