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

Environment
qemu-arm64
qemu-i386

[  186.335311] ==================================================================
[  186.336715] BUG: KFENCE: invalid free in test_double_free+0xf8/0x1d0
[  186.336715] 
[  186.338567] Invalid free of 0x00000000ad0e5bed (in kfence-#84):
[  186.339992]  test_double_free+0xf8/0x1d0
[  186.341334]  kunit_try_run_case+0xf8/0x260
[  186.342529]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  186.343977]  kthread+0x18c/0x1a8
[  186.344956]  ret_from_fork+0x10/0x20
[  186.346033] 
[  186.346535] kfence-#84: 0x00000000ad0e5bed-0x000000008bd6980a, size=32, cache=test
[  186.346535] 
[  186.348371] allocated by task 245 on cpu 0 at 186.334352s:
[  186.349995]  test_alloc+0x1b8/0x3d8
[  186.350998]  test_double_free+0xcc/0x1d0
[  186.352131]  kunit_try_run_case+0xf8/0x260
[  186.353314]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  186.354758]  kthread+0x18c/0x1a8
[  186.355740]  ret_from_fork+0x10/0x20
[  186.356819] 
[  186.357307] freed by task 245 on cpu 0 at 186.334674s:
[  186.358960]  test_double_free+0xe8/0x1d0
[  186.360007]  kunit_try_run_case+0xf8/0x260
[  186.361191]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  186.362628]  kthread+0x18c/0x1a8
[  186.363591]  ret_from_fork+0x10/0x20
[  186.364658] 
[  186.365185] CPU: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[  186.367043] Hardware name: linux,dummy-virt (DT)
[  186.368138] ==================================================================
[  186.231264] ==================================================================
[  186.232689] BUG: KFENCE: invalid free in test_double_free+0x15c/0x1d0
[  186.232689] 
[  186.234408] Invalid free of 0x00000000cf614416 (in kfence-#81):
[  186.235817]  test_double_free+0x15c/0x1d0
[  186.237165]  kunit_try_run_case+0xf8/0x260
[  186.238346]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  186.239779]  kthread+0x18c/0x1a8
[  186.240767]  ret_from_fork+0x10/0x20
[  186.241854] 
[  186.242356] kfence-#81: 0x00000000cf614416-0x0000000025f94c73, size=32, cache=kmalloc-32
[  186.242356] 
[  186.244196] allocated by task 243 on cpu 1 at 186.230251s:
[  186.245921]  test_alloc+0x224/0x3d8
[  186.246905]  test_double_free+0xcc/0x1d0
[  186.248057]  kunit_try_run_case+0xf8/0x260
[  186.249271]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  186.250698]  kthread+0x18c/0x1a8
[  186.251681]  ret_from_fork+0x10/0x20
[  186.252768] 
[  186.253281] freed by task 243 on cpu 1 at 186.230591s:
[  186.254979]  test_double_free+0x14c/0x1d0
[  186.256041]  kunit_try_run_case+0xf8/0x260
[  186.257226]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  186.258667]  kthread+0x18c/0x1a8
[  186.259686]  ret_from_fork+0x10/0x20
[  186.260740] 
[  186.261294] CPU: 1 PID: 243 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[  186.263030] Hardware name: linux,dummy-virt (DT)
[  186.264122] ==================================================================


[   38.362841] ==================================================================
[   38.363295] BUG: KFENCE: invalid free in test_double_free+0xb7/0x130
[   38.363295] 
[   38.363616] Invalid free of 0x(ptrval) (in kfence-#26):
[   38.363949]  test_double_free+0xb7/0x130
[   38.364198]  kunit_try_run_case+0x8a/0x1c4
[   38.364437]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.364723]  kthread+0xe0/0x108
[   38.364895]  ret_from_fork+0x40/0x4c
[   38.365090]  ret_from_fork_asm+0x12/0x18
[   38.365482]  restore_all_switch_stack+0x0/0xc3
[   38.365884] 
[   38.366028] kfence-#26: 0x(ptrval)-0x(ptrval), size=32, cache=kmalloc-32
[   38.366028] 
[   38.366636] allocated by task 145 on cpu 1 at 38.362608s:
[   38.367034]  test_alloc+0x153/0x2d4
[   38.367378]  test_double_free+0x50/0x130
[   38.367674]  kunit_try_run_case+0x8a/0x1c4
[   38.368029]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.368461]  kthread+0xe0/0x108
[   38.368760]  ret_from_fork+0x40/0x4c
[   38.369079]  ret_from_fork_asm+0x12/0x18
[   38.369427]  restore_all_switch_stack+0x0/0xc3
[   38.369763] 
[   38.369900] freed by task 145 on cpu 1 at 38.362683s:
[   38.370307]  test_double_free+0xa7/0x130
[   38.370782]  kunit_try_run_case+0x8a/0x1c4
[   38.371142]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.371560]  kthread+0xe0/0x108
[   38.371860]  ret_from_fork+0x40/0x4c
[   38.372157]  ret_from_fork_asm+0x12/0x18
[   38.372515]  restore_all_switch_stack+0x0/0xc3
[   38.372909] 
[   38.373110] CPU: 1 PID: 145 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   38.373708] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.373869] ==================================================================
[   38.466666] ==================================================================
[   38.466996] BUG: KFENCE: invalid free in test_double_free+0x75/0x130
[   38.466996] 
[   38.467241] Invalid free of 0x(ptrval) (in kfence-#27):
[   38.467513]  test_double_free+0x75/0x130
[   38.467731]  kunit_try_run_case+0x8a/0x1c4
[   38.467863]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.468218]  kthread+0xe0/0x108
[   38.468471]  ret_from_fork+0x40/0x4c
[   38.468726]  ret_from_fork_asm+0x12/0x18
[   38.468909]  restore_all_switch_stack+0x0/0xc3
[   38.469201] 
[   38.469312] kfence-#27: 0x(ptrval)-0x(ptrval), size=32, cache=test
[   38.469312] 
[   38.469710] allocated by task 147 on cpu 0 at 38.466515s:
[   38.469972]  test_alloc+0xed/0x2d4
[   38.470236]  test_double_free+0x50/0x130
[   38.470455]  kunit_try_run_case+0x8a/0x1c4
[   38.470670]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.470976]  kthread+0xe0/0x108
[   38.471106]  ret_from_fork+0x40/0x4c
[   38.471255]  ret_from_fork_asm+0x12/0x18
[   38.471399]  restore_all_switch_stack+0x0/0xc3
[   38.471540] 
[   38.471615] freed by task 147 on cpu 0 at 38.466571s:
[   38.471813]  test_double_free+0x65/0x130
[   38.471958]  kunit_try_run_case+0x8a/0x1c4
[   38.472107]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.472513]  kthread+0xe0/0x108
[   38.472773]  ret_from_fork+0x40/0x4c
[   38.473050]  ret_from_fork_asm+0x12/0x18
[   38.473365]  restore_all_switch_stack+0x0/0xc3
[   38.473680] 
[   38.473833] CPU: 0 PID: 147 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   38.474451] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.474862] ==================================================================