Hay
Date
June 19, 2025, 12:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   36.849999] ==================================================================
[   36.850138] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   36.850138] 
[   36.850222] Invalid free of 0x0000000025b40100 (in kfence-#128):
[   36.850285]  test_invalid_addr_free+0x1ac/0x238
[   36.850342]  kunit_try_run_case+0x170/0x3f0
[   36.850394]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.850444]  kthread+0x328/0x630
[   36.850485]  ret_from_fork+0x10/0x20
[   36.850531] 
[   36.850561] kfence-#128: 0x00000000d9de2c88-0x00000000a382a022, size=32, cache=kmalloc-32
[   36.850561] 
[   36.850626] allocated by task 318 on cpu 0 at 36.849057s (0.001564s ago):
[   36.850704]  test_alloc+0x29c/0x628
[   36.850753]  test_invalid_addr_free+0xd4/0x238
[   36.850800]  kunit_try_run_case+0x170/0x3f0
[   36.850846]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.850929]  kthread+0x328/0x630
[   36.851128]  ret_from_fork+0x10/0x20
[   36.851355] 
[   36.851559] CPU: 0 UID: 0 PID: 318 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT 
[   36.852220] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.852307] Hardware name: linux,dummy-virt (DT)
[   36.852529] ==================================================================
[   36.955084] ==================================================================
[   36.955262] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   36.955262] 
[   36.955407] Invalid free of 0x00000000e447479e (in kfence-#129):
[   36.955519]  test_invalid_addr_free+0xec/0x238
[   36.955622]  kunit_try_run_case+0x170/0x3f0
[   36.955716]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.955838]  kthread+0x328/0x630
[   36.955969]  ret_from_fork+0x10/0x20
[   36.956065] 
[   36.956147] kfence-#129: 0x00000000ae368274-0x0000000058e1a2a4, size=32, cache=test
[   36.956147] 
[   36.956283] allocated by task 320 on cpu 0 at 36.954861s (0.001409s ago):
[   36.956511]  test_alloc+0x230/0x628
[   36.956649]  test_invalid_addr_free+0xd4/0x238
[   36.956760]  kunit_try_run_case+0x170/0x3f0
[   36.956861]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.956981]  kthread+0x328/0x630
[   36.957067]  ret_from_fork+0x10/0x20
[   36.957158] 
[   36.957258] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT 
[   36.957470] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.957543] Hardware name: linux,dummy-virt (DT)
[   36.957624] ==================================================================

[   33.244846] ==================================================================
[   33.245343] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   33.245343] 
[   33.245648] Invalid free of 0x(____ptrval____) (in kfence-#118):
[   33.246198]  test_invalid_addr_free+0x1e1/0x260
[   33.246441]  kunit_try_run_case+0x1a5/0x480
[   33.246624]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.247089]  kthread+0x337/0x6f0
[   33.247445]  ret_from_fork+0x116/0x1d0
[   33.247768]  ret_from_fork_asm+0x1a/0x30
[   33.248140] 
[   33.248315] kfence-#118: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   33.248315] 
[   33.248720] allocated by task 336 on cpu 0 at 33.244603s (0.004111s ago):
[   33.249279]  test_alloc+0x364/0x10f0
[   33.249613]  test_invalid_addr_free+0xdb/0x260
[   33.250039]  kunit_try_run_case+0x1a5/0x480
[   33.250348]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.250590]  kthread+0x337/0x6f0
[   33.250907]  ret_from_fork+0x116/0x1d0
[   33.251271]  ret_from_fork_asm+0x1a/0x30
[   33.251639] 
[   33.251864] CPU: 0 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) 
[   33.252497] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.252723] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.253486] ==================================================================
[   33.348829] ==================================================================
[   33.349322] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   33.349322] 
[   33.349618] Invalid free of 0x(____ptrval____) (in kfence-#119):
[   33.350039]  test_invalid_addr_free+0xfb/0x260
[   33.350336]  kunit_try_run_case+0x1a5/0x480
[   33.350724]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.351129]  kthread+0x337/0x6f0
[   33.351312]  ret_from_fork+0x116/0x1d0
[   33.351650]  ret_from_fork_asm+0x1a/0x30
[   33.351848] 
[   33.352060] kfence-#119: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   33.352060] 
[   33.352632] allocated by task 338 on cpu 1 at 33.348618s (0.004009s ago):
[   33.352938]  test_alloc+0x2a6/0x10f0
[   33.353129]  test_invalid_addr_free+0xdb/0x260
[   33.353470]  kunit_try_run_case+0x1a5/0x480
[   33.353823]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.354260]  kthread+0x337/0x6f0
[   33.354560]  ret_from_fork+0x116/0x1d0
[   33.354800]  ret_from_fork_asm+0x1a/0x30
[   33.355162] 
[   33.355416] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) 
[   33.356247] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.356555] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.357113] ==================================================================