Hay
Date
July 16, 2025, 3:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.855903] ==================================================================
[   22.855999] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   22.855999] 
[   22.856066] Invalid free of 0x000000003eedb6d4 (in kfence-#106):
[   22.856129]  test_invalid_addr_free+0xec/0x238
[   22.856180]  kunit_try_run_case+0x170/0x3f0
[   22.856225]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.856270]  kthread+0x328/0x630
[   22.856308]  ret_from_fork+0x10/0x20
[   22.856347] 
[   22.856372] kfence-#106: 0x000000001b44c692-0x000000004cb8a0f0, size=32, cache=test
[   22.856372] 
[   22.856428] allocated by task 309 on cpu 0 at 22.855768s (0.000657s ago):
[   22.856489]  test_alloc+0x230/0x628
[   22.856530]  test_invalid_addr_free+0xd4/0x238
[   22.856572]  kunit_try_run_case+0x170/0x3f0
[   22.856612]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.856655]  kthread+0x328/0x630
[   22.856691]  ret_from_fork+0x10/0x20
[   22.856742] 
[   22.856788] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   22.856871] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.856900] Hardware name: linux,dummy-virt (DT)
[   22.856938] ==================================================================
[   22.751809] ==================================================================
[   22.751896] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   22.751896] 
[   22.751960] Invalid free of 0x00000000e4350dec (in kfence-#105):
[   22.752018]  test_invalid_addr_free+0x1ac/0x238
[   22.752065]  kunit_try_run_case+0x170/0x3f0
[   22.752112]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.752158]  kthread+0x328/0x630
[   22.752197]  ret_from_fork+0x10/0x20
[   22.752237] 
[   22.752261] kfence-#105: 0x00000000bfb94a42-0x0000000057bf7588, size=32, cache=kmalloc-32
[   22.752261] 
[   22.752318] allocated by task 307 on cpu 1 at 22.751645s (0.000669s ago):
[   22.752382]  test_alloc+0x29c/0x628
[   22.752423]  test_invalid_addr_free+0xd4/0x238
[   22.752465]  kunit_try_run_case+0x170/0x3f0
[   22.752505]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.752550]  kthread+0x328/0x630
[   22.752585]  ret_from_fork+0x10/0x20
[   22.752625] 
[   22.752671] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   22.752768] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.752798] Hardware name: linux,dummy-virt (DT)
[   22.752833] ==================================================================

[   19.564389] ==================================================================
[   19.564794] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   19.564794] 
[   19.565125] Invalid free of 0x(____ptrval____) (in kfence-#87):
[   19.565431]  test_invalid_addr_free+0x1e1/0x260
[   19.565656]  kunit_try_run_case+0x1a5/0x480
[   19.565827]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.566052]  kthread+0x337/0x6f0
[   19.566191]  ret_from_fork+0x116/0x1d0
[   19.566330]  ret_from_fork_asm+0x1a/0x30
[   19.566476] 
[   19.566637] kfence-#87: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   19.566637] 
[   19.567093] allocated by task 324 on cpu 0 at 19.564275s (0.002817s ago):
[   19.567324]  test_alloc+0x364/0x10f0
[   19.567458]  test_invalid_addr_free+0xdb/0x260
[   19.567614]  kunit_try_run_case+0x1a5/0x480
[   19.567764]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.567952]  kthread+0x337/0x6f0
[   19.568076]  ret_from_fork+0x116/0x1d0
[   19.568212]  ret_from_fork_asm+0x1a/0x30
[   19.568354] 
[   19.568447] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   19.568793] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.568997] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.569272] ==================================================================
[   19.668406] ==================================================================
[   19.668967] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   19.668967] 
[   19.669340] Invalid free of 0x(____ptrval____) (in kfence-#88):
[   19.670336]  test_invalid_addr_free+0xfb/0x260
[   19.670697]  kunit_try_run_case+0x1a5/0x480
[   19.670904]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.671151]  kthread+0x337/0x6f0
[   19.671314]  ret_from_fork+0x116/0x1d0
[   19.671734]  ret_from_fork_asm+0x1a/0x30
[   19.671946] 
[   19.672026] kfence-#88: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.672026] 
[   19.672586] allocated by task 326 on cpu 1 at 19.668293s (0.004290s ago):
[   19.672998]  test_alloc+0x2a6/0x10f0
[   19.673168]  test_invalid_addr_free+0xdb/0x260
[   19.673373]  kunit_try_run_case+0x1a5/0x480
[   19.673816]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.674063]  kthread+0x337/0x6f0
[   19.674360]  ret_from_fork+0x116/0x1d0
[   19.674548]  ret_from_fork_asm+0x1a/0x30
[   19.674890] 
[   19.675013] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   19.675639] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.675914] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.676360] ==================================================================