Hay
Date
July 3, 2025, 3:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.090792] ==================================================================
[   21.090893] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   21.090893] 
[   21.090969] Invalid free of 0x000000009d830e95 (in kfence-#102):
[   21.091021]  test_invalid_addr_free+0xec/0x238
[   21.091064]  kunit_try_run_case+0x170/0x3f0
[   21.091111]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.091156]  kthread+0x328/0x630
[   21.091197]  ret_from_fork+0x10/0x20
[   21.091236] 
[   21.091261] kfence-#102: 0x00000000d9121877-0x0000000069c70bdd, size=32, cache=test
[   21.091261] 
[   21.091313] allocated by task 312 on cpu 0 at 21.090659s (0.000650s ago):
[   21.091374]  test_alloc+0x230/0x628
[   21.091413]  test_invalid_addr_free+0xd4/0x238
[   21.091453]  kunit_try_run_case+0x170/0x3f0
[   21.091495]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.091543]  kthread+0x328/0x630
[   21.091580]  ret_from_fork+0x10/0x20
[   21.091620] 
[   21.091662] CPU: 0 UID: 0 PID: 312 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT 
[   21.091739] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.091770] Hardware name: linux,dummy-virt (DT)
[   21.091805] ==================================================================
[   20.986749] ==================================================================
[   20.986847] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   20.986847] 
[   20.986906] Invalid free of 0x00000000f2d0c380 (in kfence-#101):
[   20.986977]  test_invalid_addr_free+0x1ac/0x238
[   20.987021]  kunit_try_run_case+0x170/0x3f0
[   20.987067]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.987112]  kthread+0x328/0x630
[   20.987154]  ret_from_fork+0x10/0x20
[   20.987194] 
[   20.987218] kfence-#101: 0x000000004a15e42d-0x00000000bbc34f21, size=32, cache=kmalloc-32
[   20.987218] 
[   20.987274] allocated by task 310 on cpu 0 at 20.986591s (0.000679s ago):
[   20.987334]  test_alloc+0x29c/0x628
[   20.987373]  test_invalid_addr_free+0xd4/0x238
[   20.987414]  kunit_try_run_case+0x170/0x3f0
[   20.987455]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.987499]  kthread+0x328/0x630
[   20.987539]  ret_from_fork+0x10/0x20
[   20.987578] 
[   20.987623] CPU: 0 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT 
[   20.987702] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.987732] Hardware name: linux,dummy-virt (DT)
[   20.987766] ==================================================================

[   17.201759] ==================================================================
[   17.202143] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.202143] 
[   17.202662] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   17.202957]  test_invalid_addr_free+0x1e1/0x260
[   17.203692]  kunit_try_run_case+0x1a5/0x480
[   17.204117]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.204489]  kthread+0x337/0x6f0
[   17.204633]  ret_from_fork+0x41/0x80
[   17.204976]  ret_from_fork_asm+0x1a/0x30
[   17.205250] 
[   17.205342] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.205342] 
[   17.205804] allocated by task 327 on cpu 0 at 17.201620s (0.004182s ago):
[   17.206086]  test_alloc+0x364/0x10f0
[   17.206274]  test_invalid_addr_free+0xdb/0x260
[   17.206479]  kunit_try_run_case+0x1a5/0x480
[   17.207008]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.207244]  kthread+0x337/0x6f0
[   17.207495]  ret_from_fork+0x41/0x80
[   17.207833]  ret_from_fork_asm+0x1a/0x30
[   17.208086] 
[   17.208205] CPU: 0 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT(voluntary) 
[   17.208795] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.209045] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.209500] ==================================================================
[   17.305721] ==================================================================
[   17.306116] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.306116] 
[   17.306474] Invalid free of 0x(____ptrval____) (in kfence-#79):
[   17.306892]  test_invalid_addr_free+0xfb/0x260
[   17.307070]  kunit_try_run_case+0x1a5/0x480
[   17.307266]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.307502]  kthread+0x337/0x6f0
[   17.307697]  ret_from_fork+0x41/0x80
[   17.307868]  ret_from_fork_asm+0x1a/0x30
[   17.308015] 
[   17.308115] kfence-#79: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.308115] 
[   17.308526] allocated by task 329 on cpu 1 at 17.305592s (0.002931s ago):
[   17.308772]  test_alloc+0x2a6/0x10f0
[   17.308974]  test_invalid_addr_free+0xdb/0x260
[   17.309171]  kunit_try_run_case+0x1a5/0x480
[   17.309391]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.309605]  kthread+0x337/0x6f0
[   17.309726]  ret_from_fork+0x41/0x80
[   17.309856]  ret_from_fork_asm+0x1a/0x30
[   17.310060] 
[   17.310191] CPU: 1 UID: 0 PID: 329 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT(voluntary) 
[   17.310649] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.310855] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.311130] ==================================================================