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

Environment
qemu-arm64
qemu-x86_64

[   35.952344] ==================================================================
[   35.952427] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   35.952427] 
[   35.952493] Invalid free of 0x0000000084997000 (in kfence-#134):
[   35.952568]  test_invalid_addr_free+0x1ac/0x238
[   35.952615]  kunit_try_run_case+0x170/0x3f0
[   35.952660]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.952706]  kthread+0x328/0x630
[   35.952746]  ret_from_fork+0x10/0x20
[   35.952787] 
[   35.952811] kfence-#134: 0x0000000071e8c933-0x00000000d6da2f82, size=32, cache=kmalloc-32
[   35.952811] 
[   35.952866] allocated by task 338 on cpu 1 at 35.952204s (0.000658s ago):
[   35.952932]  test_alloc+0x29c/0x628
[   35.952974]  test_invalid_addr_free+0xd4/0x238
[   35.953014]  kunit_try_run_case+0x170/0x3f0
[   35.953054]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.953098]  kthread+0x328/0x630
[   35.953136]  ret_from_fork+0x10/0x20
[   35.953174] 
[   35.953220] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT 
[   35.953301] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.953329] Hardware name: linux,dummy-virt (DT)
[   35.953366] ==================================================================
[   36.056215] ==================================================================
[   36.056300] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   36.056300] 
[   36.056356] Invalid free of 0x00000000047fa866 (in kfence-#135):
[   36.056411]  test_invalid_addr_free+0xec/0x238
[   36.056455]  kunit_try_run_case+0x170/0x3f0
[   36.056498]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.056558]  kthread+0x328/0x630
[   36.056597]  ret_from_fork+0x10/0x20
[   36.056637] 
[   36.056661] kfence-#135: 0x00000000f547577a-0x0000000002a9082a, size=32, cache=test
[   36.056661] 
[   36.056714] allocated by task 340 on cpu 1 at 36.056098s (0.000612s ago):
[   36.056778]  test_alloc+0x230/0x628
[   36.056819]  test_invalid_addr_free+0xd4/0x238
[   36.056859]  kunit_try_run_case+0x170/0x3f0
[   36.056897]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.056940]  kthread+0x328/0x630
[   36.056976]  ret_from_fork+0x10/0x20
[   36.057015] 
[   36.057056] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT 
[   36.057136] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.057165] Hardware name: linux,dummy-virt (DT)
[   36.057197] ==================================================================

[   29.026290] ==================================================================
[   29.026728] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   29.026728] 
[   29.027025] Invalid free of 0x(____ptrval____) (in kfence-#98):
[   29.027476]  test_invalid_addr_free+0xfb/0x260
[   29.027671]  kunit_try_run_case+0x1a5/0x480
[   29.027817]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.028092]  kthread+0x337/0x6f0
[   29.028262]  ret_from_fork+0x116/0x1d0
[   29.028463]  ret_from_fork_asm+0x1a/0x30
[   29.028617] 
[   29.028752] kfence-#98: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   29.028752] 
[   29.029111] allocated by task 358 on cpu 1 at 29.026164s (0.002945s ago):
[   29.029329]  test_alloc+0x2a6/0x10f0
[   29.029524]  test_invalid_addr_free+0xdb/0x260
[   29.029815]  kunit_try_run_case+0x1a5/0x480
[   29.029956]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.030126]  kthread+0x337/0x6f0
[   29.030430]  ret_from_fork+0x116/0x1d0
[   29.030624]  ret_from_fork_asm+0x1a/0x30
[   29.030832] 
[   29.030946] CPU: 1 UID: 0 PID: 358 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) 
[   29.031422] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.031624] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.031968] ==================================================================
[   28.818314] ==================================================================
[   28.818739] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   28.818739] 
[   28.819103] Invalid free of 0x(____ptrval____) (in kfence-#96):
[   28.819362]  test_invalid_addr_free+0x1e1/0x260
[   28.819519]  kunit_try_run_case+0x1a5/0x480
[   28.819848]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.820117]  kthread+0x337/0x6f0
[   28.820306]  ret_from_fork+0x116/0x1d0
[   28.820505]  ret_from_fork_asm+0x1a/0x30
[   28.820781] 
[   28.820957] kfence-#96: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   28.820957] 
[   28.821247] allocated by task 356 on cpu 0 at 28.818186s (0.003059s ago):
[   28.821593]  test_alloc+0x364/0x10f0
[   28.821827]  test_invalid_addr_free+0xdb/0x260
[   28.822026]  kunit_try_run_case+0x1a5/0x480
[   28.822200]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.822465]  kthread+0x337/0x6f0
[   28.822633]  ret_from_fork+0x116/0x1d0
[   28.822791]  ret_from_fork_asm+0x1a/0x30
[   28.823026] 
[   28.823122] CPU: 0 UID: 0 PID: 356 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) 
[   28.823654] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.823806] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.824210] ==================================================================