Hay
Date
June 20, 2025, 12:38 p.m.

Environment
qemu-arm64
qemu-x86_64

[   39.377985] ==================================================================
[   39.378179] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   39.378179] 
[   39.378315] Invalid free of 0x000000006ad1da6c (in kfence-#149):
[   39.378441]  test_invalid_addr_free+0x1ac/0x238
[   39.378605]  kunit_try_run_case+0x170/0x3f0
[   39.378756]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.378871]  kthread+0x328/0x630
[   39.378967]  ret_from_fork+0x10/0x20
[   39.379070] 
[   39.379133] kfence-#149: 0x000000002e90ffc6-0x0000000074af234e, size=32, cache=kmalloc-32
[   39.379133] 
[   39.379272] allocated by task 318 on cpu 0 at 39.377701s (0.001562s ago):
[   39.379440]  test_alloc+0x29c/0x628
[   39.379543]  test_invalid_addr_free+0xd4/0x238
[   39.379665]  kunit_try_run_case+0x170/0x3f0
[   39.379776]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.379883]  kthread+0x328/0x630
[   39.379970]  ret_from_fork+0x10/0x20
[   39.380069] 
[   39.380182] CPU: 0 UID: 0 PID: 318 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT 
[   39.380416] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.380498] Hardware name: linux,dummy-virt (DT)
[   39.380591] ==================================================================
[   39.482999] ==================================================================
[   39.483602] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   39.483602] 
[   39.483900] Invalid free of 0x00000000a3c033e4 (in kfence-#150):
[   39.484537]  test_invalid_addr_free+0xec/0x238
[   39.484813]  kunit_try_run_case+0x170/0x3f0
[   39.485116]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.485223]  kthread+0x328/0x630
[   39.485422]  ret_from_fork+0x10/0x20
[   39.485536] 
[   39.485683] kfence-#150: 0x00000000767935c9-0x0000000051f41279, size=32, cache=test
[   39.485683] 
[   39.485966] allocated by task 320 on cpu 0 at 39.482270s (0.003683s ago):
[   39.486273]  test_alloc+0x230/0x628
[   39.486493]  test_invalid_addr_free+0xd4/0x238
[   39.486720]  kunit_try_run_case+0x170/0x3f0
[   39.486932]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.487129]  kthread+0x328/0x630
[   39.487319]  ret_from_fork+0x10/0x20
[   39.487493] 
[   39.487602] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT 
[   39.488263] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.488460] Hardware name: linux,dummy-virt (DT)
[   39.488669] ==================================================================

[   32.412585] ==================================================================
[   32.413050] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   32.413050] 
[   32.413337] Invalid free of 0x(____ptrval____) (in kfence-#106):
[   32.413718]  test_invalid_addr_free+0x1e1/0x260
[   32.414001]  kunit_try_run_case+0x1a5/0x480
[   32.414175]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.414352]  kthread+0x337/0x6f0
[   32.414496]  ret_from_fork+0x116/0x1d0
[   32.414646]  ret_from_fork_asm+0x1a/0x30
[   32.414913] 
[   32.415044] kfence-#106: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   32.415044] 
[   32.415684] allocated by task 336 on cpu 0 at 32.412342s (0.003336s ago):
[   32.416115]  test_alloc+0x364/0x10f0
[   32.416268]  test_invalid_addr_free+0xdb/0x260
[   32.416425]  kunit_try_run_case+0x1a5/0x480
[   32.416600]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.416775]  kthread+0x337/0x6f0
[   32.416937]  ret_from_fork+0x116/0x1d0
[   32.417243]  ret_from_fork_asm+0x1a/0x30
[   32.417851] 
[   32.418012] CPU: 0 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) 
[   32.418934] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.419317] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   32.419952] ==================================================================
[   32.516401] ==================================================================
[   32.516855] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   32.516855] 
[   32.517122] Invalid free of 0x(____ptrval____) (in kfence-#107):
[   32.517494]  test_invalid_addr_free+0xfb/0x260
[   32.517844]  kunit_try_run_case+0x1a5/0x480
[   32.518015]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.518437]  kthread+0x337/0x6f0
[   32.518604]  ret_from_fork+0x116/0x1d0
[   32.518779]  ret_from_fork_asm+0x1a/0x30
[   32.518961] 
[   32.519121] kfence-#107: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   32.519121] 
[   32.519794] allocated by task 338 on cpu 0 at 32.516206s (0.003583s ago):
[   32.520356]  test_alloc+0x2a6/0x10f0
[   32.520594]  test_invalid_addr_free+0xdb/0x260
[   32.520806]  kunit_try_run_case+0x1a5/0x480
[   32.521109]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   32.521422]  kthread+0x337/0x6f0
[   32.521685]  ret_from_fork+0x116/0x1d0
[   32.521976]  ret_from_fork_asm+0x1a/0x30
[   32.522180] 
[   32.522341] CPU: 0 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) 
[   32.523216] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.523548] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   32.524194] ==================================================================