Hay
Date
July 6, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   23.238164] ==================================================================
[   23.238274] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   23.238274] 
[   23.238334] Invalid free of 0x000000006fe7b543 (in kfence-#96):
[   23.238390]  test_double_free+0x100/0x238
[   23.238438]  kunit_try_run_case+0x170/0x3f0
[   23.238481]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.238525]  kthread+0x328/0x630
[   23.238563]  ret_from_fork+0x10/0x20
[   23.238602] 
[   23.238625] kfence-#96: 0x000000006fe7b543-0x000000000b47d9eb, size=32, cache=test
[   23.238625] 
[   23.238680] allocated by task 305 on cpu 1 at 23.237936s (0.000740s ago):
[   23.238741]  test_alloc+0x230/0x628
[   23.238783]  test_double_free+0xd4/0x238
[   23.238822]  kunit_try_run_case+0x170/0x3f0
[   23.238862]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.238906]  kthread+0x328/0x630
[   23.238941]  ret_from_fork+0x10/0x20
[   23.238980] 
[   23.239003] freed by task 305 on cpu 1 at 23.237999s (0.001000s ago):
[   23.239065]  test_double_free+0xf0/0x238
[   23.239106]  kunit_try_run_case+0x170/0x3f0
[   23.239146]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.239189]  kthread+0x328/0x630
[   23.239237]  ret_from_fork+0x10/0x20
[   23.239277] 
[   23.239319] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.239395] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.239423] Hardware name: linux,dummy-virt (DT)
[   23.239458] ==================================================================
[   23.134266] ==================================================================
[   23.134385] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   23.134385] 
[   23.134461] Invalid free of 0x000000002dab1826 (in kfence-#95):
[   23.134528]  test_double_free+0x1bc/0x238
[   23.134575]  kunit_try_run_case+0x170/0x3f0
[   23.134621]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.134665]  kthread+0x328/0x630
[   23.134703]  ret_from_fork+0x10/0x20
[   23.134744] 
[   23.134768] kfence-#95: 0x000000002dab1826-0x0000000048002fae, size=32, cache=kmalloc-32
[   23.134768] 
[   23.134822] allocated by task 303 on cpu 1 at 23.133931s (0.000887s ago):
[   23.134884]  test_alloc+0x29c/0x628
[   23.134924]  test_double_free+0xd4/0x238
[   23.134966]  kunit_try_run_case+0x170/0x3f0
[   23.135004]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.135048]  kthread+0x328/0x630
[   23.135083]  ret_from_fork+0x10/0x20
[   23.135122] 
[   23.135146] freed by task 303 on cpu 1 at 23.134005s (0.001137s ago):
[   23.135223]  test_double_free+0x1ac/0x238
[   23.135264]  kunit_try_run_case+0x170/0x3f0
[   23.135304]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.135347]  kthread+0x328/0x630
[   23.135384]  ret_from_fork+0x10/0x20
[   23.135423] 
[   23.135472] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.135551] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.135580] Hardware name: linux,dummy-virt (DT)
[   23.135616] ==================================================================

[   17.449069] ==================================================================
[   17.449497] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   17.449497] 
[   17.449963] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   17.450672]  test_double_free+0x1d3/0x260
[   17.450893]  kunit_try_run_case+0x1a5/0x480
[   17.451105]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.451590]  kthread+0x337/0x6f0
[   17.451793]  ret_from_fork+0x116/0x1d0
[   17.452149]  ret_from_fork_asm+0x1a/0x30
[   17.452362] 
[   17.452473] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.452473] 
[   17.452822] allocated by task 320 on cpu 0 at 17.448810s (0.004009s ago):
[   17.453059]  test_alloc+0x364/0x10f0
[   17.453198]  test_double_free+0xdb/0x260
[   17.453490]  kunit_try_run_case+0x1a5/0x480
[   17.453764]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.453941]  kthread+0x337/0x6f0
[   17.454189]  ret_from_fork+0x116/0x1d0
[   17.454336]  ret_from_fork_asm+0x1a/0x30
[   17.454480] 
[   17.454555] freed by task 320 on cpu 0 at 17.448877s (0.005675s ago):
[   17.454767]  test_double_free+0x1e0/0x260
[   17.454909]  kunit_try_run_case+0x1a5/0x480
[   17.455479]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.456000]  kthread+0x337/0x6f0
[   17.456753]  ret_from_fork+0x116/0x1d0
[   17.456987]  ret_from_fork_asm+0x1a/0x30
[   17.457184] 
[   17.457373] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.457914] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.458123] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.458533] ==================================================================
[   17.553042] ==================================================================
[   17.553454] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.553454] 
[   17.553745] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   17.553983]  test_double_free+0x112/0x260
[   17.554190]  kunit_try_run_case+0x1a5/0x480
[   17.554412]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.554670]  kthread+0x337/0x6f0
[   17.554839]  ret_from_fork+0x116/0x1d0
[   17.555035]  ret_from_fork_asm+0x1a/0x30
[   17.555307] 
[   17.555410] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.555410] 
[   17.555765] allocated by task 322 on cpu 1 at 17.552794s (0.002969s ago):
[   17.556093]  test_alloc+0x2a6/0x10f0
[   17.556249]  test_double_free+0xdb/0x260
[   17.556421]  kunit_try_run_case+0x1a5/0x480
[   17.556626]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.556838]  kthread+0x337/0x6f0
[   17.557024]  ret_from_fork+0x116/0x1d0
[   17.557206]  ret_from_fork_asm+0x1a/0x30
[   17.557413] 
[   17.557496] freed by task 322 on cpu 1 at 17.552832s (0.004662s ago):
[   17.557759]  test_double_free+0xfa/0x260
[   17.557929]  kunit_try_run_case+0x1a5/0x480
[   17.558175]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.558354]  kthread+0x337/0x6f0
[   17.558479]  ret_from_fork+0x116/0x1d0
[   17.558625]  ret_from_fork_asm+0x1a/0x30
[   17.558837] 
[   17.558973] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.559488] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.559634] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.559914] ==================================================================