Hay
Date
July 18, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.422473] ==================================================================
[   20.422746] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   20.422746] 
[   20.422887] Invalid free of 0x00000000e53ac40b (in kfence-#92):
[   20.422950]  test_invalid_addr_free+0xec/0x238
[   20.423015]  kunit_try_run_case+0x170/0x3f0
[   20.423059]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.423104]  kthread+0x328/0x630
[   20.423354]  ret_from_fork+0x10/0x20
[   20.423450] 
[   20.423479] kfence-#92: 0x00000000c1702f70-0x0000000037c5cfe6, size=32, cache=test
[   20.423479] 
[   20.423779] allocated by task 309 on cpu 0 at 20.422287s (0.001483s ago):
[   20.423916]  test_alloc+0x230/0x628
[   20.423964]  test_invalid_addr_free+0xd4/0x238
[   20.424050]  kunit_try_run_case+0x170/0x3f0
[   20.424255]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.424320]  kthread+0x328/0x630
[   20.424431]  ret_from_fork+0x10/0x20
[   20.424477] 
[   20.424551] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.424639] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.424732] Hardware name: linux,dummy-virt (DT)
[   20.424769] ==================================================================
[   20.318599] ==================================================================
[   20.318669] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   20.318669] 
[   20.319008] Invalid free of 0x000000001e1abe96 (in kfence-#91):
[   20.319155]  test_invalid_addr_free+0x1ac/0x238
[   20.319259]  kunit_try_run_case+0x170/0x3f0
[   20.319361]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.319409]  kthread+0x328/0x630
[   20.319450]  ret_from_fork+0x10/0x20
[   20.319507] 
[   20.319534] kfence-#91: 0x00000000b6afdf3b-0x0000000096aedd71, size=32, cache=kmalloc-32
[   20.319534] 
[   20.319798] allocated by task 307 on cpu 0 at 20.318369s (0.001217s ago):
[   20.319887]  test_alloc+0x29c/0x628
[   20.319931]  test_invalid_addr_free+0xd4/0x238
[   20.319973]  kunit_try_run_case+0x170/0x3f0
[   20.320013]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.320056]  kthread+0x328/0x630
[   20.320289]  ret_from_fork+0x10/0x20
[   20.320432] 
[   20.320574] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.320662] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.320905] Hardware name: linux,dummy-virt (DT)
[   20.321083] ==================================================================

[   18.366440] ==================================================================
[   18.366828] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.366828] 
[   18.367154] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   18.367570]  test_invalid_addr_free+0x1e1/0x260
[   18.367746]  kunit_try_run_case+0x1a5/0x480
[   18.367964]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.368189]  kthread+0x337/0x6f0
[   18.368313]  ret_from_fork+0x116/0x1d0
[   18.368503]  ret_from_fork_asm+0x1a/0x30
[   18.368700] 
[   18.368794] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.368794] 
[   18.369257] allocated by task 326 on cpu 0 at 18.366331s (0.002925s ago):
[   18.369571]  test_alloc+0x364/0x10f0
[   18.369732]  test_invalid_addr_free+0xdb/0x260
[   18.369930]  kunit_try_run_case+0x1a5/0x480
[   18.370111]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.370358]  kthread+0x337/0x6f0
[   18.370484]  ret_from_fork+0x116/0x1d0
[   18.370741]  ret_from_fork_asm+0x1a/0x30
[   18.370997] 
[   18.371097] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.371538] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.371694] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.371960] ==================================================================
[   18.470447] ==================================================================
[   18.470832] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.470832] 
[   18.471269] Invalid free of 0x(____ptrval____) (in kfence-#79):
[   18.471590]  test_invalid_addr_free+0xfb/0x260
[   18.471809]  kunit_try_run_case+0x1a5/0x480
[   18.471958]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.472186]  kthread+0x337/0x6f0
[   18.472381]  ret_from_fork+0x116/0x1d0
[   18.472567]  ret_from_fork_asm+0x1a/0x30
[   18.472799] 
[   18.472909] kfence-#79: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.472909] 
[   18.473312] allocated by task 328 on cpu 0 at 18.470339s (0.002971s ago):
[   18.473660]  test_alloc+0x2a6/0x10f0
[   18.473835]  test_invalid_addr_free+0xdb/0x260
[   18.474046]  kunit_try_run_case+0x1a5/0x480
[   18.474253]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.474523]  kthread+0x337/0x6f0
[   18.474747]  ret_from_fork+0x116/0x1d0
[   18.474989]  ret_from_fork_asm+0x1a/0x30
[   18.475166] 
[   18.475260] CPU: 0 UID: 0 PID: 328 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.475927] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.476120] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.476511] ==================================================================