Hay
Date
June 3, 2025, 7:38 a.m.

Environment
qemu-arm64
qemu-x86_64

[   23.252271] ==================================================================
[   23.252344] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   23.252344] 
[   23.252465] Invalid free of 0x00000000cdd0bcc7 (in kfence-#94):
[   23.252534]  test_invalid_addr_free+0xec/0x238
[   23.252606]  kunit_try_run_case+0x170/0x3f0
[   23.252651]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.252703]  kthread+0x328/0x630
[   23.252760]  ret_from_fork+0x10/0x20
[   23.252850] 
[   23.253117] kfence-#94: 0x0000000016109bed-0x0000000063283060, size=32, cache=test
[   23.253117] 
[   23.253219] allocated by task 309 on cpu 1 at 23.252143s (0.001046s ago):
[   23.253286]  test_alloc+0x230/0x628
[   23.253332]  test_invalid_addr_free+0xd4/0x238
[   23.253563]  kunit_try_run_case+0x170/0x3f0
[   23.253651]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.253698]  kthread+0x328/0x630
[   23.253734]  ret_from_fork+0x10/0x20
[   23.253784] 
[   23.253836] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT 
[   23.253918] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.253948] Hardware name: linux,dummy-virt (DT)
[   23.253990] ==================================================================
[   23.148637] ==================================================================
[   23.148722] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.148722] 
[   23.148809] Invalid free of 0x000000000716ec25 (in kfence-#93):
[   23.148906]  test_invalid_addr_free+0x1ac/0x238
[   23.148970]  kunit_try_run_case+0x170/0x3f0
[   23.149017]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.149062]  kthread+0x328/0x630
[   23.149326]  ret_from_fork+0x10/0x20
[   23.149384] 
[   23.149410] kfence-#93: 0x00000000d5137858-0x00000000812dd8ba, size=32, cache=kmalloc-32
[   23.149410] 
[   23.149479] allocated by task 307 on cpu 1 at 23.148241s (0.001235s ago):
[   23.149545]  test_alloc+0x29c/0x628
[   23.149596]  test_invalid_addr_free+0xd4/0x238
[   23.149650]  kunit_try_run_case+0x170/0x3f0
[   23.149691]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.149734]  kthread+0x328/0x630
[   23.149770]  ret_from_fork+0x10/0x20
[   23.149825] 
[   23.149871] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT 
[   23.149951] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.149981] Hardware name: linux,dummy-virt (DT)
[   23.150017] ==================================================================


[   21.821465] ==================================================================
[   21.821910] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   21.821910] 
[   21.822205] Invalid free of 0x(____ptrval____) (in kfence-#100):
[   21.823068]  test_invalid_addr_free+0xfb/0x260
[   21.823396]  kunit_try_run_case+0x1a5/0x480
[   21.823620]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.824007]  kthread+0x337/0x6f0
[   21.824408]  ret_from_fork+0x116/0x1d0
[   21.824768]  ret_from_fork_asm+0x1a/0x30
[   21.825105] 
[   21.825234] kfence-#100: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   21.825234] 
[   21.825909] allocated by task 326 on cpu 1 at 21.821259s (0.004645s ago):
[   21.826327]  test_alloc+0x2a6/0x10f0
[   21.826619]  test_invalid_addr_free+0xdb/0x260
[   21.827003]  kunit_try_run_case+0x1a5/0x480
[   21.827380]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.827756]  kthread+0x337/0x6f0
[   21.827949]  ret_from_fork+0x116/0x1d0
[   21.828148]  ret_from_fork_asm+0x1a/0x30
[   21.828506] 
[   21.828795] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT(voluntary) 
[   21.829762] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.830081] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.830673] ==================================================================
[   21.717540] ==================================================================
[   21.718076] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   21.718076] 
[   21.719221] Invalid free of 0x(____ptrval____) (in kfence-#99):
[   21.719787]  test_invalid_addr_free+0x1e1/0x260
[   21.720150]  kunit_try_run_case+0x1a5/0x480
[   21.720508]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.720863]  kthread+0x337/0x6f0
[   21.721122]  ret_from_fork+0x116/0x1d0
[   21.721484]  ret_from_fork_asm+0x1a/0x30
[   21.721718] 
[   21.721837] kfence-#99: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   21.721837] 
[   21.722466] allocated by task 324 on cpu 0 at 21.717306s (0.005143s ago):
[   21.722890]  test_alloc+0x364/0x10f0
[   21.723327]  test_invalid_addr_free+0xdb/0x260
[   21.723772]  kunit_try_run_case+0x1a5/0x480
[   21.724041]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.724656]  kthread+0x337/0x6f0
[   21.724903]  ret_from_fork+0x116/0x1d0
[   21.725290]  ret_from_fork_asm+0x1a/0x30
[   21.725643] 
[   21.726007] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT(voluntary) 
[   21.726797] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.727102] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.727669] ==================================================================