Hay
Date
April 22, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64
rk3399-rock-pi-4b

[   23.717520] ==================================================================
[   23.717717] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   23.717717] 
[   23.717875] Invalid free of 0x000000001d41ad82 (in kfence-#116):
[   23.717985]  test_double_free+0x100/0x238
[   23.718079]  kunit_try_run_case+0x170/0x3f0
[   23.718174]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.718308]  kthread+0x328/0x630
[   23.718421]  ret_from_fork+0x10/0x20
[   23.718537] 
[   23.718596] kfence-#116: 0x000000001d41ad82-0x000000007bfba629, size=32, cache=test
[   23.718596] 
[   23.718740] allocated by task 307 on cpu 0 at 23.717034s (0.001694s ago):
[   23.718910]  test_alloc+0x230/0x628
[   23.719024]  test_double_free+0xd4/0x238
[   23.719132]  kunit_try_run_case+0x170/0x3f0
[   23.719252]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.719339]  kthread+0x328/0x630
[   23.719410]  ret_from_fork+0x10/0x20
[   23.719486] 
[   23.719546] freed by task 307 on cpu 0 at 23.717177s (0.002360s ago):
[   23.720079]  test_double_free+0xf0/0x238
[   23.720213]  kunit_try_run_case+0x170/0x3f0
[   23.720298]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.720537]  kthread+0x328/0x630
[   23.720626]  ret_from_fork+0x10/0x20
[   23.720718] 
[   23.720811] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   23.721121] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.721208] Hardware name: linux,dummy-virt (DT)
[   23.721289] ==================================================================
[   23.616688] ==================================================================
[   23.616893] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   23.616893] 
[   23.617018] Invalid free of 0x00000000bafac7d8 (in kfence-#115):
[   23.617147]  test_double_free+0x1bc/0x238
[   23.617240]  kunit_try_run_case+0x170/0x3f0
[   23.617327]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.619346]  kthread+0x328/0x630
[   23.619467]  ret_from_fork+0x10/0x20
[   23.619566] 
[   23.619618] kfence-#115: 0x00000000bafac7d8-0x000000007104e12b, size=32, cache=kmalloc-32
[   23.619618] 
[   23.620725] allocated by task 305 on cpu 0 at 23.614296s (0.006400s ago):
[   23.621416]  test_alloc+0x29c/0x628
[   23.621560]  test_double_free+0xd4/0x238
[   23.622242]  kunit_try_run_case+0x170/0x3f0
[   23.622518]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.622667]  kthread+0x328/0x630
[   23.622764]  ret_from_fork+0x10/0x20
[   23.622851] 
[   23.622907] freed by task 305 on cpu 0 at 23.614410s (0.008489s ago):
[   23.623055]  test_double_free+0x1ac/0x238
[   23.623144]  kunit_try_run_case+0x170/0x3f0
[   23.624376]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.624580]  kthread+0x328/0x630
[   23.624835]  ret_from_fork+0x10/0x20
[   23.625247] 
[   23.625427] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   23.625629] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.625705] Hardware name: linux,dummy-virt (DT)
[   23.626556] ==================================================================

[   27.643817] ==================================================================
[   27.644533] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   27.644533] 
[   27.645024] Invalid free of 0x(____ptrval____) (in kfence-#109):
[   27.645371]  test_double_free+0x112/0x260
[   27.645800]  kunit_try_run_case+0x1a5/0x480
[   27.646196]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.646615]  kthread+0x337/0x6f0
[   27.646927]  ret_from_fork+0x41/0x80
[   27.647223]  ret_from_fork_asm+0x1a/0x30
[   27.647664] 
[   27.647921] kfence-#109: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   27.647921] 
[   27.648752] allocated by task 325 on cpu 1 at 27.643545s (0.005200s ago):
[   27.649209]  test_alloc+0x2a6/0x10f0
[   27.649763]  test_double_free+0xdb/0x260
[   27.650188]  kunit_try_run_case+0x1a5/0x480
[   27.650684]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.651070]  kthread+0x337/0x6f0
[   27.651369]  ret_from_fork+0x41/0x80
[   27.651721]  ret_from_fork_asm+0x1a/0x30
[   27.652159] 
[   27.652398] freed by task 325 on cpu 1 at 27.643630s (0.008763s ago):
[   27.653051]  test_double_free+0xfa/0x260
[   27.653395]  kunit_try_run_case+0x1a5/0x480
[   27.653875]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.654371]  kthread+0x337/0x6f0
[   27.654793]  ret_from_fork+0x41/0x80
[   27.655185]  ret_from_fork_asm+0x1a/0x30
[   27.655611] 
[   27.656010] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   27.656876] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.657264] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.658007] ==================================================================
[   27.538537] ==================================================================
[   27.539165] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   27.539165] 
[   27.539836] Invalid free of 0x(____ptrval____) (in kfence-#108):
[   27.540275]  test_double_free+0x1d3/0x260
[   27.540719]  kunit_try_run_case+0x1a5/0x480
[   27.541223]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.541788]  kthread+0x337/0x6f0
[   27.542152]  ret_from_fork+0x41/0x80
[   27.542527]  ret_from_fork_asm+0x1a/0x30
[   27.543043] 
[   27.543272] kfence-#108: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   27.543272] 
[   27.544054] allocated by task 323 on cpu 1 at 27.538112s (0.005936s ago):
[   27.544574]  test_alloc+0x364/0x10f0
[   27.544935]  test_double_free+0xdb/0x260
[   27.545508]  kunit_try_run_case+0x1a5/0x480
[   27.546091]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.546501]  kthread+0x337/0x6f0
[   27.547018]  ret_from_fork+0x41/0x80
[   27.547430]  ret_from_fork_asm+0x1a/0x30
[   27.547878] 
[   27.548102] freed by task 323 on cpu 1 at 27.538215s (0.009881s ago):
[   27.548586]  test_double_free+0x1e0/0x260
[   27.549078]  kunit_try_run_case+0x1a5/0x480
[   27.549659]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.550125]  kthread+0x337/0x6f0
[   27.550456]  ret_from_fork+0x41/0x80
[   27.550906]  ret_from_fork_asm+0x1a/0x30
[   27.551249] 
[   27.551506] CPU: 1 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   27.552687] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.553051] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.553994] ==================================================================

[   26.522171] ==================================================================
[   26.522838] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   26.522838] 
[   26.523543] Invalid free of 0x(____ptrval____) (in kfence-#110):
[   26.524080]  test_double_free+0x100/0x238
[   26.524443]  kunit_try_run_case+0x170/0x3f0
[   26.524826]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.525318]  kthread+0x328/0x630
[   26.525618]  ret_from_fork+0x10/0x20
[   26.525945] 
[   26.526084] kfence-#110: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   26.526084] 
[   26.526891] allocated by task 363 on cpu 4 at 26.522121s (0.004769s ago):
[   26.527499]  test_alloc+0x230/0x628
[   26.527814]  test_double_free+0xd4/0x238
[   26.528167]  kunit_try_run_case+0x170/0x3f0
[   26.528545]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.529037]  kthread+0x328/0x630
[   26.529331]  ret_from_fork+0x10/0x20
[   26.529655] 
[   26.529794] freed by task 363 on cpu 4 at 26.522130s (0.007663s ago):
[   26.530372]  test_double_free+0xf0/0x238
[   26.530724]  kunit_try_run_case+0x170/0x3f0
[   26.531101]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.531594]  kthread+0x328/0x630
[   26.531888]  ret_from_fork+0x10/0x20
[   26.532212] 
[   26.532357] CPU: 4 UID: 0 PID: 363 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   26.533238] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.533612] Hardware name: Radxa ROCK Pi 4B (DT)
[   26.534023] ==================================================================
[   26.417880] ==================================================================
[   26.418549] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   26.418549] 
[   26.419256] Invalid free of 0x(____ptrval____) (in kfence-#109):
[   26.419796]  test_double_free+0x1bc/0x238
[   26.420162]  kunit_try_run_case+0x170/0x3f0
[   26.420545]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.421041]  kthread+0x328/0x630
[   26.421341]  ret_from_fork+0x10/0x20
[   26.421670] 
[   26.421810] kfence-#109: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   26.421810] 
[   26.422664] allocated by task 361 on cpu 4 at 26.417827s (0.004835s ago):
[   26.423274]  test_alloc+0x29c/0x628
[   26.423591]  test_double_free+0xd4/0x238
[   26.423946]  kunit_try_run_case+0x170/0x3f0
[   26.424325]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.424818]  kthread+0x328/0x630
[   26.425115]  ret_from_fork+0x10/0x20
[   26.425442] 
[   26.425581] freed by task 361 on cpu 4 at 26.417837s (0.007743s ago):
[   26.426162]  test_double_free+0x1ac/0x238
[   26.426526]  kunit_try_run_case+0x170/0x3f0
[   26.426905]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.427399]  kthread+0x328/0x630
[   26.427697]  ret_from_fork+0x10/0x20
[   26.428022] 
[   26.428168] CPU: 4 UID: 0 PID: 361 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   26.429052] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.429426] Hardware name: Radxa ROCK Pi 4B (DT)
[   26.429840] ==================================================================