Hay
Date
July 5, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   25.052944] ==================================================================
[   25.053050] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   25.053050] 
[   25.053160] Invalid free of 0x000000008640128d (in kfence-#123):
[   25.053268]  test_invalid_addr_free+0x1ac/0x238
[   25.055400]  kunit_try_run_case+0x170/0x3f0
[   25.055656]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.055914]  kthread+0x328/0x630
[   25.056038]  ret_from_fork+0x10/0x20
[   25.056206] 
[   25.056321] kfence-#123: 0x00000000e501787f-0x00000000b15db126, size=32, cache=kmalloc-32
[   25.056321] 
[   25.056668] allocated by task 308 on cpu 1 at 25.052744s (0.003882s ago):
[   25.057026]  test_alloc+0x29c/0x628
[   25.057142]  test_invalid_addr_free+0xd4/0x238
[   25.057227]  kunit_try_run_case+0x170/0x3f0
[   25.057319]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.057437]  kthread+0x328/0x630
[   25.057520]  ret_from_fork+0x10/0x20
[   25.057607] 
[   25.057692] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   25.058172] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.058327] Hardware name: linux,dummy-virt (DT)
[   25.058491] ==================================================================
[   25.160437] ==================================================================
[   25.160688] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   25.160688] 
[   25.160841] Invalid free of 0x000000000293f505 (in kfence-#124):
[   25.161293]  test_invalid_addr_free+0xec/0x238
[   25.161615]  kunit_try_run_case+0x170/0x3f0
[   25.161769]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.162378]  kthread+0x328/0x630
[   25.162557]  ret_from_fork+0x10/0x20
[   25.162841] 
[   25.162935] kfence-#124: 0x00000000ac62b8a9-0x000000001d031ed6, size=32, cache=test
[   25.162935] 
[   25.163067] allocated by task 310 on cpu 1 at 25.159794s (0.003265s ago):
[   25.163570]  test_alloc+0x230/0x628
[   25.163826]  test_invalid_addr_free+0xd4/0x238
[   25.164168]  kunit_try_run_case+0x170/0x3f0
[   25.164274]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.164464]  kthread+0x328/0x630
[   25.164951]  ret_from_fork+0x10/0x20
[   25.165086] 
[   25.165853] CPU: 1 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   25.166058] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.166289] Hardware name: linux,dummy-virt (DT)
[   25.166381] ==================================================================

[   20.172325] ==================================================================
[   20.172847] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   20.172847] 
[   20.173303] Invalid free of 0x(____ptrval____) (in kfence-#84):
[   20.173641]  test_invalid_addr_free+0x1e1/0x260
[   20.173907]  kunit_try_run_case+0x1a5/0x480
[   20.174181]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.174594]  kthread+0x337/0x6f0
[   20.174758]  ret_from_fork+0x116/0x1d0
[   20.175315]  ret_from_fork_asm+0x1a/0x30
[   20.175616] 
[   20.175756] kfence-#84: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   20.175756] 
[   20.176279] allocated by task 325 on cpu 0 at 20.172166s (0.004111s ago):
[   20.176613]  test_alloc+0x364/0x10f0
[   20.176838]  test_invalid_addr_free+0xdb/0x260
[   20.177082]  kunit_try_run_case+0x1a5/0x480
[   20.177282]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.177585]  kthread+0x337/0x6f0
[   20.177800]  ret_from_fork+0x116/0x1d0
[   20.178061]  ret_from_fork_asm+0x1a/0x30
[   20.178359] 
[   20.178486] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   20.179154] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.179348] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.179787] ==================================================================
[   20.276345] ==================================================================
[   20.276845] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   20.276845] 
[   20.277301] Invalid free of 0x(____ptrval____) (in kfence-#85):
[   20.277680]  test_invalid_addr_free+0xfb/0x260
[   20.277960]  kunit_try_run_case+0x1a5/0x480
[   20.278224]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.278455]  kthread+0x337/0x6f0
[   20.278607]  ret_from_fork+0x116/0x1d0
[   20.278920]  ret_from_fork_asm+0x1a/0x30
[   20.279201] 
[   20.279349] kfence-#85: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   20.279349] 
[   20.279971] allocated by task 327 on cpu 1 at 20.276233s (0.003735s ago):
[   20.281192]  test_alloc+0x2a6/0x10f0
[   20.281447]  test_invalid_addr_free+0xdb/0x260
[   20.281900]  kunit_try_run_case+0x1a5/0x480
[   20.282079]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.282285]  kthread+0x337/0x6f0
[   20.282431]  ret_from_fork+0x116/0x1d0
[   20.282590]  ret_from_fork_asm+0x1a/0x30
[   20.282781] 
[   20.282967] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   20.283491] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.283675] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.284069] ==================================================================