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

Environment
qemu-arm64
qemu-x86_64

[   25.616702] ==================================================================
[   25.617240] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   25.617240] 
[   25.617369] Invalid free of 0x000000008fbc9cf9 (in kfence-#112):
[   25.617909]  test_invalid_addr_free+0x1ac/0x238
[   25.618044]  kunit_try_run_case+0x170/0x3f0
[   25.618146]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.618251]  kthread+0x328/0x630
[   25.618369]  ret_from_fork+0x10/0x20
[   25.618454] 
[   25.618509] kfence-#112: 0x00000000c56d2a3c-0x00000000990dbb65, size=32, cache=kmalloc-32
[   25.618509] 
[   25.618684] allocated by task 307 on cpu 1 at 25.615961s (0.002714s ago):
[   25.618823]  test_alloc+0x29c/0x628
[   25.618952]  test_invalid_addr_free+0xd4/0x238
[   25.619129]  kunit_try_run_case+0x170/0x3f0
[   25.619232]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.619331]  kthread+0x328/0x630
[   25.619405]  ret_from_fork+0x10/0x20
[   25.619480] 
[   25.619567] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   25.619760] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.619829] Hardware name: linux,dummy-virt (DT)
[   25.619910] ==================================================================
[   25.720107] ==================================================================
[   25.720590] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   25.720590] 
[   25.721032] Invalid free of 0x00000000465733f0 (in kfence-#113):
[   25.721760]  test_invalid_addr_free+0xec/0x238
[   25.721873]  kunit_try_run_case+0x170/0x3f0
[   25.721955]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.722061]  kthread+0x328/0x630
[   25.722128]  ret_from_fork+0x10/0x20
[   25.722198] 
[   25.722251] kfence-#113: 0x00000000cad98865-0x000000002c8f5910, size=32, cache=test
[   25.722251] 
[   25.722358] allocated by task 309 on cpu 1 at 25.718958s (0.003393s ago):
[   25.724039]  test_alloc+0x230/0x628
[   25.724503]  test_invalid_addr_free+0xd4/0x238
[   25.725033]  kunit_try_run_case+0x170/0x3f0
[   25.725553]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.725762]  kthread+0x328/0x630
[   25.726053]  ret_from_fork+0x10/0x20
[   25.726875] 
[   25.727003] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   25.727521] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.727676] Hardware name: linux,dummy-virt (DT)
[   25.727757] ==================================================================

[   17.585685] ==================================================================
[   17.586243] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.586243] 
[   17.586611] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   17.586915]  test_invalid_addr_free+0xfb/0x260
[   17.587146]  kunit_try_run_case+0x1a5/0x480
[   17.587382]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.587646]  kthread+0x337/0x6f0
[   17.587774]  ret_from_fork+0x116/0x1d0
[   17.587911]  ret_from_fork_asm+0x1a/0x30
[   17.588115] 
[   17.588258] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.588258] 
[   17.588700] allocated by task 327 on cpu 0 at 17.585595s (0.003102s ago):
[   17.589029]  test_alloc+0x2a6/0x10f0
[   17.589177]  test_invalid_addr_free+0xdb/0x260
[   17.589404]  kunit_try_run_case+0x1a5/0x480
[   17.589642]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.589932]  kthread+0x337/0x6f0
[   17.590097]  ret_from_fork+0x116/0x1d0
[   17.590326]  ret_from_fork_asm+0x1a/0x30
[   17.590526] 
[   17.590647] CPU: 0 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.591042] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.591392] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.591736] ==================================================================
[   17.481727] ==================================================================
[   17.482110] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.482110] 
[   17.482563] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   17.483115]  test_invalid_addr_free+0x1e1/0x260
[   17.483374]  kunit_try_run_case+0x1a5/0x480
[   17.483630]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.483880]  kthread+0x337/0x6f0
[   17.484081]  ret_from_fork+0x116/0x1d0
[   17.484335]  ret_from_fork_asm+0x1a/0x30
[   17.484485] 
[   17.484587] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.484587] 
[   17.485097] allocated by task 325 on cpu 0 at 17.481624s (0.003471s ago):
[   17.485452]  test_alloc+0x364/0x10f0
[   17.485760]  test_invalid_addr_free+0xdb/0x260
[   17.485974]  kunit_try_run_case+0x1a5/0x480
[   17.486297]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.486563]  kthread+0x337/0x6f0
[   17.486721]  ret_from_fork+0x116/0x1d0
[   17.486922]  ret_from_fork_asm+0x1a/0x30
[   17.487147] 
[   17.487283] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.487793] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.488023] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.488554] ==================================================================