Hay
Date
Feb. 5, 2025, 2:09 p.m.

Environment
qemu-x86_64

[   53.607397] ==================================================================
[   53.609062] BUG: KFENCE: invalid free in test_double_free+0x16a/0x1d0
[   53.609062] 
[   53.611607] Invalid free of 0x(____ptrval____) (in kfence-#155):
[   53.613223]  test_double_free+0x16a/0x1d0
[   53.614521]  kunit_try_run_case+0x126/0x290
[   53.615957]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.618041]  kthread+0x19e/0x1e0
[   53.619282]  ret_from_fork+0x41/0x70
[   53.619971]  ret_from_fork_asm+0x1b/0x30
[   53.620398] 
[   53.620608] kfence-#155: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   53.620608] 
[   53.623497] allocated by task 261 on cpu 0 at 53.606507s:
[   53.625683]  test_alloc+0x2a0/0x8d0
[   53.626893]  test_double_free+0xd0/0x1d0
[   53.628726]  kunit_try_run_case+0x126/0x290
[   53.629908]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.630979]  kthread+0x19e/0x1e0
[   53.631391]  ret_from_fork+0x41/0x70
[   53.632475]  ret_from_fork_asm+0x1b/0x30
[   53.633389] 
[   53.633974] freed by task 261 on cpu 0 at 53.606758s:
[   53.635218]  test_double_free+0x156/0x1d0
[   53.636499]  kunit_try_run_case+0x126/0x290
[   53.637380]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.638236]  kthread+0x19e/0x1e0
[   53.638614]  ret_from_fork+0x41/0x70
[   53.639830]  ret_from_fork_asm+0x1b/0x30
[   53.640920] 
[   53.641526] CPU: 0 PID: 261 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   53.643183] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   53.645099] ==================================================================
[   53.708278] ==================================================================
[   53.709012] BUG: KFENCE: invalid free in test_double_free+0xff/0x1d0
[   53.709012] 
[   53.709666] Invalid free of 0x(____ptrval____) (in kfence-#156):
[   53.710349]  test_double_free+0xff/0x1d0
[   53.711474]  kunit_try_run_case+0x126/0x290
[   53.712340]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.713000]  kthread+0x19e/0x1e0
[   53.713241]  ret_from_fork+0x41/0x70
[   53.713474]  ret_from_fork_asm+0x1b/0x30
[   53.713766] 
[   53.714128] kfence-#156: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   53.714128] 
[   53.715329] allocated by task 263 on cpu 1 at 53.707705s:
[   53.716294]  test_alloc+0x1e8/0x8d0
[   53.716932]  test_double_free+0xd0/0x1d0
[   53.717570]  kunit_try_run_case+0x126/0x290
[   53.718086]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.718895]  kthread+0x19e/0x1e0
[   53.719358]  ret_from_fork+0x41/0x70
[   53.719797]  ret_from_fork_asm+0x1b/0x30
[   53.720634] 
[   53.720982] freed by task 263 on cpu 1 at 53.707861s:
[   53.721651]  test_double_free+0xeb/0x1d0
[   53.722175]  kunit_try_run_case+0x126/0x290
[   53.722672]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   53.723468]  kthread+0x19e/0x1e0
[   53.724041]  ret_from_fork+0x41/0x70
[   53.724600]  ret_from_fork_asm+0x1b/0x30
[   53.725013] 
[   53.725255] CPU: 1 PID: 263 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   53.725958] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   53.726696] ==================================================================