Hay
Date
June 23, 2025, 7:07 a.m.

Environment
qemu-arm64
qemu-x86_64

[   39.512570] ==================================================================
[   39.512713] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   39.512713] 
[   39.512836] Invalid free of 0x000000008e0e8cde (in kfence-#129):
[   39.512949]  test_invalid_addr_free+0xec/0x238
[   39.513080]  kunit_try_run_case+0x170/0x3f0
[   39.513189]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.513295]  kthread+0x328/0x630
[   39.513390]  ret_from_fork+0x10/0x20
[   39.513482] 
[   39.513535] kfence-#129: 0x00000000ca51d17b-0x000000000770dc52, size=32, cache=test
[   39.513535] 
[   39.513651] allocated by task 321 on cpu 0 at 39.512359s (0.001285s ago):
[   39.513792]  test_alloc+0x230/0x628
[   39.513888]  test_invalid_addr_free+0xd4/0x238
[   39.513986]  kunit_try_run_case+0x170/0x3f0
[   39.514865]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.514960]  kthread+0x328/0x630
[   39.515009]  ret_from_fork+0x10/0x20
[   39.515117] 
[   39.515337] CPU: 0 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT 
[   39.515805] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.515882] Hardware name: linux,dummy-virt (DT)
[   39.515972] ==================================================================
[   39.405979] ==================================================================
[   39.406679] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   39.406679] 
[   39.406954] Invalid free of 0x00000000264f8b1b (in kfence-#128):
[   39.407137]  test_invalid_addr_free+0x1ac/0x238
[   39.407261]  kunit_try_run_case+0x170/0x3f0
[   39.407394]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.407793]  kthread+0x328/0x630
[   39.408148]  ret_from_fork+0x10/0x20
[   39.408299] 
[   39.408502] kfence-#128: 0x000000000ebc1ead-0x00000000778f2188, size=32, cache=kmalloc-32
[   39.408502] 
[   39.408687] allocated by task 319 on cpu 0 at 39.405717s (0.002960s ago):
[   39.408841]  test_alloc+0x29c/0x628
[   39.408967]  test_invalid_addr_free+0xd4/0x238
[   39.409473]  kunit_try_run_case+0x170/0x3f0
[   39.409936]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.410098]  kthread+0x328/0x630
[   39.410488]  ret_from_fork+0x10/0x20
[   39.411008] 
[   39.411160] CPU: 0 UID: 0 PID: 319 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT 
[   39.411358] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.411442] Hardware name: linux,dummy-virt (DT)
[   39.411522] ==================================================================

[   28.756596] ==================================================================
[   28.756988] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   28.756988] 
[   28.757355] Invalid free of 0x(____ptrval____) (in kfence-#97):
[   28.758338]  test_invalid_addr_free+0xfb/0x260
[   28.758587]  kunit_try_run_case+0x1a5/0x480
[   28.758890]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.759138]  kthread+0x337/0x6f0
[   28.759281]  ret_from_fork+0x116/0x1d0
[   28.759495]  ret_from_fork_asm+0x1a/0x30
[   28.759756] 
[   28.759843] kfence-#97: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   28.759843] 
[   28.760316] allocated by task 338 on cpu 0 at 28.756451s (0.003860s ago):
[   28.760794]  test_alloc+0x2a6/0x10f0
[   28.761124]  test_invalid_addr_free+0xdb/0x260
[   28.761342]  kunit_try_run_case+0x1a5/0x480
[   28.761669]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.761931]  kthread+0x337/0x6f0
[   28.762196]  ret_from_fork+0x116/0x1d0
[   28.762417]  ret_from_fork_asm+0x1a/0x30
[   28.762675] 
[   28.762868] CPU: 0 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) 
[   28.763511] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.763678] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.763958] ==================================================================
[   28.652548] ==================================================================
[   28.652877] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   28.652877] 
[   28.653370] Invalid free of 0x(____ptrval____) (in kfence-#96):
[   28.653671]  test_invalid_addr_free+0x1e1/0x260
[   28.654029]  kunit_try_run_case+0x1a5/0x480
[   28.654339]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.654634]  kthread+0x337/0x6f0
[   28.654800]  ret_from_fork+0x116/0x1d0
[   28.655071]  ret_from_fork_asm+0x1a/0x30
[   28.655434] 
[   28.655544] kfence-#96: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   28.655544] 
[   28.655859] allocated by task 336 on cpu 1 at 28.652401s (0.003454s ago):
[   28.656304]  test_alloc+0x364/0x10f0
[   28.656690]  test_invalid_addr_free+0xdb/0x260
[   28.656924]  kunit_try_run_case+0x1a5/0x480
[   28.657211]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.657477]  kthread+0x337/0x6f0
[   28.657715]  ret_from_fork+0x116/0x1d0
[   28.658071]  ret_from_fork_asm+0x1a/0x30
[   28.658297] 
[   28.658506] CPU: 1 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) 
[   28.658969] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.659144] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.659713] ==================================================================