Hay
Date
July 15, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   23.241885] ==================================================================
[   23.241973] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.241973] 
[   23.242033] Invalid free of 0x000000002da13f39 (in kfence-#97):
[   23.242087]  test_invalid_addr_free+0x1ac/0x238
[   23.242133]  kunit_try_run_case+0x170/0x3f0
[   23.242180]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.242241]  kthread+0x328/0x630
[   23.242283]  ret_from_fork+0x10/0x20
[   23.242324] 
[   23.242347] kfence-#97: 0x00000000f1fd5b59-0x00000000f4ba7209, size=32, cache=kmalloc-32
[   23.242347] 
[   23.242404] allocated by task 309 on cpu 0 at 23.241744s (0.000656s ago):
[   23.242467]  test_alloc+0x29c/0x628
[   23.242506]  test_invalid_addr_free+0xd4/0x238
[   23.242547]  kunit_try_run_case+0x170/0x3f0
[   23.242589]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.242635]  kthread+0x328/0x630
[   23.242673]  ret_from_fork+0x10/0x20
[   23.242712] 
[   23.242761] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   23.242840] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.242869] Hardware name: linux,dummy-virt (DT)
[   23.242905] ==================================================================
[   23.350659] ==================================================================
[   23.350755] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   23.350755] 
[   23.350815] Invalid free of 0x00000000c6cd1d47 (in kfence-#98):
[   23.350869]  test_invalid_addr_free+0xec/0x238
[   23.350912]  kunit_try_run_case+0x170/0x3f0
[   23.350957]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.351002]  kthread+0x328/0x630
[   23.351043]  ret_from_fork+0x10/0x20
[   23.351084] 
[   23.351108] kfence-#98: 0x0000000064563c51-0x0000000024f6ce94, size=32, cache=test
[   23.351108] 
[   23.351161] allocated by task 311 on cpu 0 at 23.350530s (0.000628s ago):
[   23.351238]  test_alloc+0x230/0x628
[   23.351278]  test_invalid_addr_free+0xd4/0x238
[   23.351319]  kunit_try_run_case+0x170/0x3f0
[   23.351359]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.351404]  kthread+0x328/0x630
[   23.351442]  ret_from_fork+0x10/0x20
[   23.351482] 
[   23.351523] CPU: 0 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   23.351603] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.351630] Hardware name: linux,dummy-virt (DT)
[   23.351663] ==================================================================

[   16.580051] ==================================================================
[   16.580413] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   16.580413] 
[   16.580721] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   16.580965]  test_invalid_addr_free+0x1e1/0x260
[   16.581271]  kunit_try_run_case+0x1a5/0x480
[   16.581484]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.581696]  kthread+0x337/0x6f0
[   16.581862]  ret_from_fork+0x41/0x80
[   16.582030]  ret_from_fork_asm+0x1a/0x30
[   16.582173] 
[   16.582275] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.582275] 
[   16.582680] allocated by task 326 on cpu 0 at 16.579937s (0.002741s ago):
[   16.582969]  test_alloc+0x364/0x10f0
[   16.583184]  test_invalid_addr_free+0xdb/0x260
[   16.583368]  kunit_try_run_case+0x1a5/0x480
[   16.583554]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.583778]  kthread+0x337/0x6f0
[   16.583905]  ret_from_fork+0x41/0x80
[   16.584086]  ret_from_fork_asm+0x1a/0x30
[   16.584299] 
[   16.584393] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   16.584763] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.585179] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.585477] ==================================================================
[   16.684132] ==================================================================
[   16.684512] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   16.684512] 
[   16.684979] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   16.685306]  test_invalid_addr_free+0xfb/0x260
[   16.685521]  kunit_try_run_case+0x1a5/0x480
[   16.685743]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.685971]  kthread+0x337/0x6f0
[   16.686090]  ret_from_fork+0x41/0x80
[   16.686251]  ret_from_fork_asm+0x1a/0x30
[   16.686471] 
[   16.686565] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.686565] 
[   16.687088] allocated by task 328 on cpu 1 at 16.684036s (0.003050s ago):
[   16.687407]  test_alloc+0x2a6/0x10f0
[   16.687559]  test_invalid_addr_free+0xdb/0x260
[   16.687707]  kunit_try_run_case+0x1a5/0x480
[   16.688041]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.688312]  kthread+0x337/0x6f0
[   16.688428]  ret_from_fork+0x41/0x80
[   16.688554]  ret_from_fork_asm+0x1a/0x30
[   16.688748] 
[   16.688910] CPU: 1 UID: 0 PID: 328 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   16.689326] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.689495] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.689933] ==================================================================