Hay
Date
April 20, 2025, 11:09 p.m.

Environment
x86

[   82.059698] ==================================================================
[   82.066954] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   82.066954] 
[   82.074874] Invalid free of 0x0000000032446f97 (in kfence-#212):
[   82.080881]  test_double_free+0x112/0x260
[   82.084902]  kunit_try_run_case+0x1a2/0x480
[   82.089097]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   82.094494]  kthread+0x334/0x6f0
[   82.097726]  ret_from_fork+0x3e/0x80
[   82.101305]  ret_from_fork_asm+0x1a/0x30
[   82.105234] 
[   82.106731] kfence-#212: 0x0000000032446f97-0x000000005a398c24, size=32, cache=test
[   82.106731] 
[   82.115858] allocated by task 348 on cpu 2 at 82.059690s (0.056167s ago):
[   82.122655]  test_alloc+0x2a6/0x10f0
[   82.126240]  test_double_free+0xdb/0x260
[   82.130166]  kunit_try_run_case+0x1a2/0x480
[   82.134352]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   82.139749]  kthread+0x334/0x6f0
[   82.142981]  ret_from_fork+0x3e/0x80
[   82.146563]  ret_from_fork_asm+0x1a/0x30
[   82.150497] 
[   82.151994] freed by task 348 on cpu 2 at 82.059692s (0.092301s ago):
[   82.158438]  test_double_free+0xfa/0x260
[   82.162370]  kunit_try_run_case+0x1a2/0x480
[   82.166562]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   82.171964]  kthread+0x334/0x6f0
[   82.175204]  ret_from_fork+0x3e/0x80
[   82.178784]  ret_from_fork_asm+0x1a/0x30
[   82.182709] 
[   82.184209] CPU: 2 UID: 0 PID: 348 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   82.195085] Tainted: [B]=BAD_PAGE, [N]=TEST
[   82.199272] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.7 12/07/2021
[   82.206671] ==================================================================
[   81.803703] ==================================================================
[   81.810951] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   81.810951] 
[   81.818865] Invalid free of 0x000000003f9651d0 (in kfence-#210):
[   81.824880]  test_double_free+0x1d3/0x260
[   81.828902]  kunit_try_run_case+0x1a2/0x480
[   81.833094]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   81.838494]  kthread+0x334/0x6f0
[   81.841734]  ret_from_fork+0x3e/0x80
[   81.845314]  ret_from_fork_asm+0x1a/0x30
[   81.849240] 
[   81.850739] kfence-#210: 0x000000003f9651d0-0x000000006e530434, size=32, cache=kmalloc-32
[   81.850739] 
[   81.860394] allocated by task 346 on cpu 2 at 81.803695s (0.056699s ago):
[   81.867190]  test_alloc+0x364/0x10f0
[   81.870775]  test_double_free+0xdb/0x260
[   81.874701]  kunit_try_run_case+0x1a2/0x480
[   81.878887]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   81.884285]  kthread+0x334/0x6f0
[   81.887518]  ret_from_fork+0x3e/0x80
[   81.891098]  ret_from_fork_asm+0x1a/0x30
[   81.895025] 
[   81.896522] freed by task 346 on cpu 2 at 81.803697s (0.092825s ago):
[   81.902962]  test_double_free+0x1e0/0x260
[   81.906975]  kunit_try_run_case+0x1a2/0x480
[   81.911168]  kunit_generic_run_threadfn_adapter+0x82/0xf0
[   81.916569]  kthread+0x334/0x6f0
[   81.919801]  ret_from_fork+0x3e/0x80
[   81.923387]  ret_from_fork_asm+0x1a/0x30
[   81.927314] 
[   81.928816] CPU: 2 UID: 0 PID: 346 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   81.939691] Tainted: [B]=BAD_PAGE, [N]=TEST
[   81.943876] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.7 12/07/2021
[   81.951269] ==================================================================