Hay
Date
July 22, 2025, 5:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   36.445585] ==================================================================
[   36.445685] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   36.445685] 
[   36.445748] Invalid free of 0x00000000a4abf1a1 (in kfence-#139):
[   36.445807]  test_double_free+0x100/0x238
[   36.445870]  kunit_try_run_case+0x170/0x3f0
[   36.445915]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.445962]  kthread+0x328/0x630
[   36.446001]  ret_from_fork+0x10/0x20
[   36.446043] 
[   36.446067] kfence-#139: 0x00000000a4abf1a1-0x000000002b8c9777, size=32, cache=test
[   36.446067] 
[   36.446127] allocated by task 336 on cpu 1 at 36.445384s (0.000740s ago):
[   36.446201]  test_alloc+0x230/0x628
[   36.446242]  test_double_free+0xd4/0x238
[   36.446283]  kunit_try_run_case+0x170/0x3f0
[   36.446325]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.446371]  kthread+0x328/0x630
[   36.446407]  ret_from_fork+0x10/0x20
[   36.446447] 
[   36.446473] freed by task 336 on cpu 1 at 36.445446s (0.001023s ago):
[   36.446539]  test_double_free+0xf0/0x238
[   36.446581]  kunit_try_run_case+0x170/0x3f0
[   36.446624]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.446671]  kthread+0x328/0x630
[   36.446709]  ret_from_fork+0x10/0x20
[   36.446750] 
[   36.446793] CPU: 1 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250722 #1 PREEMPT 
[   36.446896] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   36.446929] Hardware name: linux,dummy-virt (DT)
[   36.446966] ==================================================================
[   36.341614] ==================================================================
[   36.341746] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   36.341746] 
[   36.341837] Invalid free of 0x000000002f0f3e04 (in kfence-#138):
[   36.341909]  test_double_free+0x1bc/0x238
[   36.341960]  kunit_try_run_case+0x170/0x3f0
[   36.342007]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.342053]  kthread+0x328/0x630
[   36.342096]  ret_from_fork+0x10/0x20
[   36.342138] 
[   36.342168] kfence-#138: 0x000000002f0f3e04-0x00000000fd09caa5, size=32, cache=kmalloc-32
[   36.342168] 
[   36.342231] allocated by task 334 on cpu 1 at 36.341385s (0.000842s ago):
[   36.342299]  test_alloc+0x29c/0x628
[   36.342341]  test_double_free+0xd4/0x238
[   36.342382]  kunit_try_run_case+0x170/0x3f0
[   36.342421]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.342468]  kthread+0x328/0x630
[   36.342506]  ret_from_fork+0x10/0x20
[   36.342547] 
[   36.342571] freed by task 334 on cpu 1 at 36.341457s (0.001110s ago):
[   36.342635]  test_double_free+0x1ac/0x238
[   36.342676]  kunit_try_run_case+0x170/0x3f0
[   36.342715]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.342760]  kthread+0x328/0x630
[   36.342797]  ret_from_fork+0x10/0x20
[   36.342848] 
[   36.342894] CPU: 1 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250722 #1 PREEMPT 
[   36.342986] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   36.343021] Hardware name: linux,dummy-virt (DT)
[   36.343055] ==================================================================

[   31.491977] ==================================================================
[   31.492392] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   31.492392] 
[   31.492841] Invalid free of 0x(____ptrval____) (in kfence-#102):
[   31.493428]  test_double_free+0x112/0x260
[   31.493654]  kunit_try_run_case+0x1a5/0x480
[   31.493805]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.493988]  kthread+0x337/0x6f0
[   31.494111]  ret_from_fork+0x116/0x1d0
[   31.494259]  ret_from_fork_asm+0x1a/0x30
[   31.494504] 
[   31.494599] kfence-#102: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.494599] 
[   31.495019] allocated by task 353 on cpu 1 at 31.491773s (0.003244s ago):
[   31.495454]  test_alloc+0x2a6/0x10f0
[   31.495598]  test_double_free+0xdb/0x260
[   31.495818]  kunit_try_run_case+0x1a5/0x480
[   31.496054]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.496332]  kthread+0x337/0x6f0
[   31.496502]  ret_from_fork+0x116/0x1d0
[   31.496703]  ret_from_fork_asm+0x1a/0x30
[   31.496901] 
[   31.497028] freed by task 353 on cpu 1 at 31.491857s (0.005169s ago):
[   31.497348]  test_double_free+0xfa/0x260
[   31.497584]  kunit_try_run_case+0x1a5/0x480
[   31.497793]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.498065]  kthread+0x337/0x6f0
[   31.498259]  ret_from_fork+0x116/0x1d0
[   31.498392]  ret_from_fork_asm+0x1a/0x30
[   31.498558] 
[   31.498678] CPU: 1 UID: 0 PID: 353 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) 
[   31.499337] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.499508] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.499859] ==================================================================
[   31.387989] ==================================================================
[   31.388574] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   31.388574] 
[   31.388933] Invalid free of 0x(____ptrval____) (in kfence-#101):
[   31.389259]  test_double_free+0x1d3/0x260
[   31.389417]  kunit_try_run_case+0x1a5/0x480
[   31.389650]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.389924]  kthread+0x337/0x6f0
[   31.390074]  ret_from_fork+0x116/0x1d0
[   31.390307]  ret_from_fork_asm+0x1a/0x30
[   31.390490] 
[   31.390586] kfence-#101: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   31.390586] 
[   31.390987] allocated by task 351 on cpu 0 at 31.387706s (0.003278s ago):
[   31.391308]  test_alloc+0x364/0x10f0
[   31.391474]  test_double_free+0xdb/0x260
[   31.391653]  kunit_try_run_case+0x1a5/0x480
[   31.391826]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.392083]  kthread+0x337/0x6f0
[   31.392249]  ret_from_fork+0x116/0x1d0
[   31.392410]  ret_from_fork_asm+0x1a/0x30
[   31.392676] 
[   31.392748] freed by task 351 on cpu 0 at 31.387780s (0.004965s ago):
[   31.393144]  test_double_free+0x1e0/0x260
[   31.393328]  kunit_try_run_case+0x1a5/0x480
[   31.393536]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.393732]  kthread+0x337/0x6f0
[   31.393878]  ret_from_fork+0x116/0x1d0
[   31.394066]  ret_from_fork_asm+0x1a/0x30
[   31.395218] 
[   31.395514] CPU: 0 UID: 0 PID: 351 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) 
[   31.396197] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.396534] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.397007] ==================================================================