Hay
Date
July 25, 2025, 3:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   37.591509] ==================================================================
[   37.591617] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   37.591617] 
[   37.591697] Invalid free of 0x000000005ffed9fb (in kfence-#136):
[   37.591761]  test_invalid_addr_free+0xec/0x238
[   37.591815]  kunit_try_run_case+0x170/0x3f0
[   37.591862]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.591908]  kthread+0x328/0x630
[   37.591950]  ret_from_fork+0x10/0x20
[   37.591992] 
[   37.592017] kfence-#136: 0x000000002c6c6c07-0x00000000a5e1da47, size=32, cache=test
[   37.592017] 
[   37.592076] allocated by task 341 on cpu 0 at 37.591367s (0.000705s ago):
[   37.592145]  test_alloc+0x230/0x628
[   37.592184]  test_invalid_addr_free+0xd4/0x238
[   37.592226]  kunit_try_run_case+0x170/0x3f0
[   37.592267]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.592313]  kthread+0x328/0x630
[   37.592351]  ret_from_fork+0x10/0x20
[   37.592392] 
[   37.592440] CPU: 0 UID: 0 PID: 341 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250725 #1 PREEMPT 
[   37.592533] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   37.592568] Hardware name: linux,dummy-virt (DT)
[   37.592606] ==================================================================
[   37.487536] ==================================================================
[   37.487636] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   37.487636] 
[   37.487712] Invalid free of 0x000000008d765188 (in kfence-#135):
[   37.487767]  test_invalid_addr_free+0x1ac/0x238
[   37.487812]  kunit_try_run_case+0x170/0x3f0
[   37.487857]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.487901]  kthread+0x328/0x630
[   37.487942]  ret_from_fork+0x10/0x20
[   37.487981] 
[   37.488005] kfence-#135: 0x00000000a18a89e4-0x000000005d24ecdf, size=32, cache=kmalloc-32
[   37.488005] 
[   37.488060] allocated by task 339 on cpu 1 at 37.487392s (0.000663s ago):
[   37.488122]  test_alloc+0x29c/0x628
[   37.488162]  test_invalid_addr_free+0xd4/0x238
[   37.488200]  kunit_try_run_case+0x170/0x3f0
[   37.488239]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.488281]  kthread+0x328/0x630
[   37.488316]  ret_from_fork+0x10/0x20
[   37.488356] 
[   37.488403] CPU: 1 UID: 0 PID: 339 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250725 #1 PREEMPT 
[   37.488487] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   37.488517] Hardware name: linux,dummy-virt (DT)
[   37.488552] ==================================================================

[   31.852261] ==================================================================
[   31.852633] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   31.852633] 
[   31.852958] Invalid free of 0x(____ptrval____) (in kfence-#99):
[   31.853455]  test_invalid_addr_free+0xfb/0x260
[   31.853634]  kunit_try_run_case+0x1a5/0x480
[   31.853846]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.854116]  kthread+0x337/0x6f0
[   31.854286]  ret_from_fork+0x116/0x1d0
[   31.854507]  ret_from_fork_asm+0x1a/0x30
[   31.854707] 
[   31.854800] kfence-#99: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.854800] 
[   31.855213] allocated by task 358 on cpu 1 at 31.852163s (0.003048s ago):
[   31.855479]  test_alloc+0x2a6/0x10f0
[   31.855683]  test_invalid_addr_free+0xdb/0x260
[   31.855924]  kunit_try_run_case+0x1a5/0x480
[   31.856148]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.856367]  kthread+0x337/0x6f0
[   31.856551]  ret_from_fork+0x116/0x1d0
[   31.856746]  ret_from_fork_asm+0x1a/0x30
[   31.856898] 
[   31.857023] CPU: 1 UID: 0 PID: 358 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) 
[   31.857563] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.857764] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.858092] ==================================================================
[   31.748243] ==================================================================
[   31.748615] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   31.748615] 
[   31.748926] Invalid free of 0x(____ptrval____) (in kfence-#98):
[   31.749446]  test_invalid_addr_free+0x1e1/0x260
[   31.749623]  kunit_try_run_case+0x1a5/0x480
[   31.749826]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.750080]  kthread+0x337/0x6f0
[   31.750232]  ret_from_fork+0x116/0x1d0
[   31.750370]  ret_from_fork_asm+0x1a/0x30
[   31.750557] 
[   31.750650] kfence-#98: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   31.750650] 
[   31.751033] allocated by task 356 on cpu 1 at 31.748114s (0.002916s ago):
[   31.751384]  test_alloc+0x364/0x10f0
[   31.751680]  test_invalid_addr_free+0xdb/0x260
[   31.751922]  kunit_try_run_case+0x1a5/0x480
[   31.752208]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.752429]  kthread+0x337/0x6f0
[   31.752572]  ret_from_fork+0x116/0x1d0
[   31.752705]  ret_from_fork_asm+0x1a/0x30
[   31.752845] 
[   31.752937] CPU: 1 UID: 0 PID: 356 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) 
[   31.753487] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.753698] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.754062] ==================================================================