Hay
Date
July 12, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.439776] ==================================================================
[   22.439869] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   22.439869] 
[   22.439934] Invalid free of 0x00000000b86aba00 (in kfence-#103):
[   22.439991]  test_invalid_addr_free+0xec/0x238
[   22.440037]  kunit_try_run_case+0x170/0x3f0
[   22.440079]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.440124]  kthread+0x328/0x630
[   22.440163]  ret_from_fork+0x10/0x20
[   22.440217] 
[   22.440243] kfence-#103: 0x000000008cba047b-0x000000004ee814ed, size=32, cache=test
[   22.440243] 
[   22.440297] allocated by task 309 on cpu 1 at 22.439653s (0.000640s ago):
[   22.440359]  test_alloc+0x230/0x628
[   22.440401]  test_invalid_addr_free+0xd4/0x238
[   22.440444]  kunit_try_run_case+0x170/0x3f0
[   22.440484]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.440527]  kthread+0x328/0x630
[   22.440563]  ret_from_fork+0x10/0x20
[   22.440603] 
[   22.440646] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   22.440726] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.440756] Hardware name: linux,dummy-virt (DT)
[   22.440789] ==================================================================
[   22.335664] ==================================================================
[   22.335753] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   22.335753] 
[   22.335817] Invalid free of 0x0000000011e13ab6 (in kfence-#102):
[   22.335875]  test_invalid_addr_free+0x1ac/0x238
[   22.335924]  kunit_try_run_case+0x170/0x3f0
[   22.335969]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.336016]  kthread+0x328/0x630
[   22.336054]  ret_from_fork+0x10/0x20
[   22.336095] 
[   22.336118] kfence-#102: 0x0000000013e9460a-0x000000005367d546, size=32, cache=kmalloc-32
[   22.336118] 
[   22.336190] allocated by task 307 on cpu 1 at 22.335520s (0.000666s ago):
[   22.336255]  test_alloc+0x29c/0x628
[   22.336296]  test_invalid_addr_free+0xd4/0x238
[   22.336338]  kunit_try_run_case+0x170/0x3f0
[   22.336379]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.336425]  kthread+0x328/0x630
[   22.336460]  ret_from_fork+0x10/0x20
[   22.336500] 
[   22.336545] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   22.336626] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.336656] Hardware name: linux,dummy-virt (DT)
[   22.336691] ==================================================================

[   18.240349] ==================================================================
[   18.240777] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.240777] 
[   18.241164] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   18.241492]  test_invalid_addr_free+0x1e1/0x260
[   18.241729]  kunit_try_run_case+0x1a5/0x480
[   18.241937]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.242115]  kthread+0x337/0x6f0
[   18.242237]  ret_from_fork+0x116/0x1d0
[   18.242382]  ret_from_fork_asm+0x1a/0x30
[   18.242584] 
[   18.242683] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.242683] 
[   18.243107] allocated by task 324 on cpu 1 at 18.240231s (0.002874s ago):
[   18.243393]  test_alloc+0x364/0x10f0
[   18.243601]  test_invalid_addr_free+0xdb/0x260
[   18.243853]  kunit_try_run_case+0x1a5/0x480
[   18.244058]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.244297]  kthread+0x337/0x6f0
[   18.244479]  ret_from_fork+0x116/0x1d0
[   18.244661]  ret_from_fork_asm+0x1a/0x30
[   18.244848] 
[   18.244964] CPU: 1 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.245313] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.245447] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.245705] ==================================================================
[   18.344473] ==================================================================
[   18.344857] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.344857] 
[   18.345314] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   18.345627]  test_invalid_addr_free+0xfb/0x260
[   18.345856]  kunit_try_run_case+0x1a5/0x480
[   18.346081]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.346258]  kthread+0x337/0x6f0
[   18.346440]  ret_from_fork+0x116/0x1d0
[   18.346667]  ret_from_fork_asm+0x1a/0x30
[   18.346919] 
[   18.347009] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.347009] 
[   18.347401] allocated by task 326 on cpu 1 at 18.344369s (0.003030s ago):
[   18.347648]  test_alloc+0x2a6/0x10f0
[   18.347856]  test_invalid_addr_free+0xdb/0x260
[   18.348088]  kunit_try_run_case+0x1a5/0x480
[   18.348257]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.348507]  kthread+0x337/0x6f0
[   18.348699]  ret_from_fork+0x116/0x1d0
[   18.348907]  ret_from_fork_asm+0x1a/0x30
[   18.349051] 
[   18.349170] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.349664] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.349857] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.350184] ==================================================================