Hay
Date
July 4, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.852300] ==================================================================
[   22.852409] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   22.852409] 
[   22.852470] Invalid free of 0x00000000502d4b82 (in kfence-#92):
[   22.852531]  test_invalid_addr_free+0x1ac/0x238
[   22.852582]  kunit_try_run_case+0x170/0x3f0
[   22.852624]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.852668]  kthread+0x328/0x630
[   22.852706]  ret_from_fork+0x10/0x20
[   22.852746] 
[   22.852769] kfence-#92: 0x00000000efc2f8fb-0x000000005311292b, size=32, cache=kmalloc-32
[   22.852769] 
[   22.852846] allocated by task 307 on cpu 1 at 22.851947s (0.000886s ago):
[   22.852909]  test_alloc+0x29c/0x628
[   22.852950]  test_invalid_addr_free+0xd4/0x238
[   22.853001]  kunit_try_run_case+0x170/0x3f0
[   22.853042]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.853093]  kthread+0x328/0x630
[   22.853130]  ret_from_fork+0x10/0x20
[   22.853169] 
[   22.853212] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.853290] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.853327] Hardware name: linux,dummy-virt (DT)
[   22.853364] ==================================================================
[   22.960868] ==================================================================
[   22.961004] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   22.961004] 
[   22.961078] Invalid free of 0x000000008ca51b7e (in kfence-#93):
[   22.961149]  test_invalid_addr_free+0xec/0x238
[   22.961215]  kunit_try_run_case+0x170/0x3f0
[   22.961259]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.961329]  kthread+0x328/0x630
[   22.961386]  ret_from_fork+0x10/0x20
[   22.961429] 
[   22.961470] kfence-#93: 0x00000000a03ae1d7-0x00000000cc202154, size=32, cache=test
[   22.961470] 
[   22.961611] allocated by task 309 on cpu 1 at 22.960738s (0.000823s ago):
[   22.961675]  test_alloc+0x230/0x628
[   22.961715]  test_invalid_addr_free+0xd4/0x238
[   22.961969]  kunit_try_run_case+0x170/0x3f0
[   22.962099]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.962152]  kthread+0x328/0x630
[   22.962217]  ret_from_fork+0x10/0x20
[   22.962260] 
[   22.962305] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.962539] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.962594] Hardware name: linux,dummy-virt (DT)
[   22.962647] ==================================================================

[   18.522703] ==================================================================
[   18.523108] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.523108] 
[   18.523480] Invalid free of 0x(____ptrval____) (in kfence-#86):
[   18.523770]  test_invalid_addr_free+0x1e1/0x260
[   18.523970]  kunit_try_run_case+0x1a5/0x480
[   18.524137]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.524401]  kthread+0x337/0x6f0
[   18.524565]  ret_from_fork+0x116/0x1d0
[   18.524702]  ret_from_fork_asm+0x1a/0x30
[   18.525398] 
[   18.525524] kfence-#86: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.525524] 
[   18.525957] allocated by task 324 on cpu 1 at 18.522553s (0.003402s ago):
[   18.526205]  test_alloc+0x364/0x10f0
[   18.526402]  test_invalid_addr_free+0xdb/0x260
[   18.526596]  kunit_try_run_case+0x1a5/0x480
[   18.526842]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.527062]  kthread+0x337/0x6f0
[   18.527268]  ret_from_fork+0x116/0x1d0
[   18.527498]  ret_from_fork_asm+0x1a/0x30
[   18.527678] 
[   18.527830] CPU: 1 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   18.528324] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.528530] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.528854] ==================================================================
[   18.626745] ==================================================================
[   18.627285] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.627285] 
[   18.627632] Invalid free of 0x(____ptrval____) (in kfence-#87):
[   18.627925]  test_invalid_addr_free+0xfb/0x260
[   18.628127]  kunit_try_run_case+0x1a5/0x480
[   18.628331]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.628565]  kthread+0x337/0x6f0
[   18.628736]  ret_from_fork+0x116/0x1d0
[   18.628916]  ret_from_fork_asm+0x1a/0x30
[   18.629059] 
[   18.629134] kfence-#87: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.629134] 
[   18.629778] allocated by task 326 on cpu 0 at 18.626621s (0.003155s ago):
[   18.630083]  test_alloc+0x2a6/0x10f0
[   18.630284]  test_invalid_addr_free+0xdb/0x260
[   18.630474]  kunit_try_run_case+0x1a5/0x480
[   18.630652]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.630827]  kthread+0x337/0x6f0
[   18.630999]  ret_from_fork+0x116/0x1d0
[   18.631186]  ret_from_fork_asm+0x1a/0x30
[   18.631398] 
[   18.631534] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   18.631950] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.632145] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.632590] ==================================================================