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

Environment
qemu-arm64
qemu-i386

[  186.439058] ==================================================================
[  186.440459] BUG: KFENCE: invalid free in test_invalid_addr_free+0x14c/0x1d0
[  186.440459] 
[  186.442365] Invalid free of 0x000000005e78c8fd (in kfence-#93):
[  186.443981]  test_invalid_addr_free+0x14c/0x1d0
[  186.445313]  kunit_try_run_case+0xf8/0x260
[  186.446602]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  186.448071]  kthread+0x18c/0x1a8
[  186.449078]  ret_from_fork+0x10/0x20
[  186.450201] 
[  186.450854] kfence-#93: 0x00000000a0c7d08d-0x000000007599f5b1, size=32, cache=kmalloc-32
[  186.450854] 
[  186.452749] allocated by task 247 on cpu 0 at 186.438345s:
[  186.454428]  test_alloc+0x224/0x3d8
[  186.455414]  test_invalid_addr_free+0xcc/0x1d0
[  186.456717]  kunit_try_run_case+0xf8/0x260
[  186.457971]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  186.459422]  kthread+0x18c/0x1a8
[  186.460381]  ret_from_fork+0x10/0x20
[  186.461494] 
[  186.462181] CPU: 0 PID: 247 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[  186.463959] Hardware name: linux,dummy-virt (DT)
[  186.465110] ==================================================================
[  186.543797] ==================================================================
[  186.545263] BUG: KFENCE: invalid free in test_invalid_addr_free+0xe4/0x1d0
[  186.545263] 
[  186.547232] Invalid free of 0x000000001a43f1d6 (in kfence-#94):
[  186.548871]  test_invalid_addr_free+0xe4/0x1d0
[  186.550224]  kunit_try_run_case+0xf8/0x260
[  186.551409]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  186.552868]  kthread+0x18c/0x1a8
[  186.553866]  ret_from_fork+0x10/0x20
[  186.554974] 
[  186.555554] kfence-#94: 0x000000007fc5f84d-0x0000000029b0a721, size=32, cache=test
[  186.555554] 
[  186.557348] allocated by task 249 on cpu 0 at 186.543108s:
[  186.558969]  test_alloc+0x1b8/0x3d8
[  186.559967]  test_invalid_addr_free+0xcc/0x1d0
[  186.561209]  kunit_try_run_case+0xf8/0x260
[  186.562398]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  186.563857]  kthread+0x18c/0x1a8
[  186.564841]  ret_from_fork+0x10/0x20
[  186.565913] 
[  186.566454] CPU: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[  186.568240] Hardware name: linux,dummy-virt (DT)
[  186.569366] ==================================================================


[   38.570610] ==================================================================
[   38.570983] BUG: KFENCE: invalid free in test_invalid_addr_free+0xa7/0x130
[   38.570983] 
[   38.571366] Invalid free of 0x(ptrval) (in kfence-#28):
[   38.571994]  test_invalid_addr_free+0xa7/0x130
[   38.572456]  kunit_try_run_case+0x8a/0x1c4
[   38.572603]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.573002]  kthread+0xe0/0x108
[   38.573240]  ret_from_fork+0x40/0x4c
[   38.573439]  ret_from_fork_asm+0x12/0x18
[   38.573652]  restore_all_switch_stack+0x0/0xc3
[   38.573905] 
[   38.573990] kfence-#28: 0x(ptrval)-0x(ptrval), size=32, cache=kmalloc-32
[   38.573990] 
[   38.574967] allocated by task 149 on cpu 1 at 38.570493s:
[   38.575199]  test_alloc+0x153/0x2d4
[   38.575336]  test_invalid_addr_free+0x50/0x130
[   38.575467]  kunit_try_run_case+0x8a/0x1c4
[   38.575546]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.575639]  kthread+0xe0/0x108
[   38.575702]  ret_from_fork+0x40/0x4c
[   38.575768]  ret_from_fork_asm+0x12/0x18
[   38.575838]  restore_all_switch_stack+0x0/0xc3
[   38.575915] 
[   38.575955] CPU: 1 PID: 149 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   38.576088] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.576689] ==================================================================
[   38.674616] ==================================================================
[   38.674927] BUG: KFENCE: invalid free in test_invalid_addr_free+0x66/0x130
[   38.674927] 
[   38.675183] Invalid free of 0x(ptrval) (in kfence-#29):
[   38.675516]  test_invalid_addr_free+0x66/0x130
[   38.675786]  kunit_try_run_case+0x8a/0x1c4
[   38.675932]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.676133]  kthread+0xe0/0x108
[   38.676378]  ret_from_fork+0x40/0x4c
[   38.676645]  ret_from_fork_asm+0x12/0x18
[   38.676932]  restore_all_switch_stack+0x0/0xc3
[   38.677175] 
[   38.677248] kfence-#29: 0x(ptrval)-0x(ptrval), size=32, cache=test
[   38.677248] 
[   38.677667] allocated by task 151 on cpu 0 at 38.674525s:
[   38.677872]  test_alloc+0xed/0x2d4
[   38.678147]  test_invalid_addr_free+0x50/0x130
[   38.678457]  kunit_try_run_case+0x8a/0x1c4
[   38.678751]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   38.678934]  kthread+0xe0/0x108
[   38.679063]  ret_from_fork+0x40/0x4c
[   38.679212]  ret_from_fork_asm+0x12/0x18
[   38.679352]  restore_all_switch_stack+0x0/0xc3
[   38.679507] 
[   38.679588] CPU: 0 PID: 151 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[   38.680001] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.680641] ==================================================================