Hay
Date
May 23, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   34.929253] ==================================================================
[   34.929436] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   34.929436] 
[   34.929604] Invalid free of 0x00000000b1826f09 (in kfence-#164):
[   34.929754]  test_invalid_addr_free+0xec/0x238
[   34.930317]  kunit_try_run_case+0x170/0x3f0
[   34.930812]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.931612]  kthread+0x328/0x630
[   34.931876]  ret_from_fork+0x10/0x20
[   34.932126] 
[   34.932328] kfence-#164: 0x00000000863976b3-0x00000000506ec671, size=32, cache=test
[   34.932328] 
[   34.932736] allocated by task 311 on cpu 0 at 34.928475s (0.004249s ago):
[   34.933599]  test_alloc+0x230/0x628
[   34.933724]  test_invalid_addr_free+0xd4/0x238
[   34.933842]  kunit_try_run_case+0x170/0x3f0
[   34.933967]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.934102]  kthread+0x328/0x630
[   34.934225]  ret_from_fork+0x10/0x20
[   34.934345] 
[   34.934472] CPU: 0 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT 
[   34.934700] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.934788] Hardware name: linux,dummy-virt (DT)
[   34.934881] ==================================================================
[   34.819116] ==================================================================
[   34.819663] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   34.819663] 
[   34.820181] Invalid free of 0x0000000057b18c0d (in kfence-#163):
[   34.820348]  test_invalid_addr_free+0x1ac/0x238
[   34.820637]  kunit_try_run_case+0x170/0x3f0
[   34.821147]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.821565]  kthread+0x328/0x630
[   34.821712]  ret_from_fork+0x10/0x20
[   34.821835] 
[   34.821905] kfence-#163: 0x00000000952e4851-0x00000000c51fe2e6, size=32, cache=kmalloc-32
[   34.821905] 
[   34.822380] allocated by task 309 on cpu 0 at 34.818374s (0.003994s ago):
[   34.822587]  test_alloc+0x29c/0x628
[   34.822704]  test_invalid_addr_free+0xd4/0x238
[   34.822823]  kunit_try_run_case+0x170/0x3f0
[   34.822946]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.823074]  kthread+0x328/0x630
[   34.823195]  ret_from_fork+0x10/0x20
[   34.824143] 
[   34.824619] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT 
[   34.824924] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.825023] Hardware name: linux,dummy-virt (DT)
[   34.825199] ==================================================================

[   18.462339] ==================================================================
[   18.462775] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.462775] 
[   18.463202] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   18.463496]  test_invalid_addr_free+0xfb/0x260
[   18.463708]  kunit_try_run_case+0x1a5/0x480
[   18.463922]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.464136]  kthread+0x337/0x6f0
[   18.464328]  ret_from_fork+0x41/0x80
[   18.464530]  ret_from_fork_asm+0x1a/0x30
[   18.464686] 
[   18.464762] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.464762] 
[   18.465176] allocated by task 328 on cpu 1 at 18.462221s (0.002953s ago):
[   18.465460]  test_alloc+0x2a6/0x10f0
[   18.465594]  test_invalid_addr_free+0xdb/0x260
[   18.465928]  kunit_try_run_case+0x1a5/0x480
[   18.466192]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.466433]  kthread+0x337/0x6f0
[   18.466554]  ret_from_fork+0x41/0x80
[   18.466746]  ret_from_fork_asm+0x1a/0x30
[   18.466916] 
[   18.467015] CPU: 1 UID: 0 PID: 328 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT(voluntary) 
[   18.467538] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.467740] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.468108] ==================================================================
[   18.358294] ==================================================================
[   18.358705] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.358705] 
[   18.359145] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   18.359436]  test_invalid_addr_free+0x1e1/0x260
[   18.359727]  kunit_try_run_case+0x1a5/0x480
[   18.360051]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.360365]  kthread+0x337/0x6f0
[   18.360635]  ret_from_fork+0x41/0x80
[   18.360869]  ret_from_fork_asm+0x1a/0x30
[   18.361018] 
[   18.361117] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.361117] 
[   18.361674] allocated by task 326 on cpu 0 at 18.358179s (0.003492s ago):
[   18.361993]  test_alloc+0x364/0x10f0
[   18.362206]  test_invalid_addr_free+0xdb/0x260
[   18.362432]  kunit_try_run_case+0x1a5/0x480
[   18.362653]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.362974]  kthread+0x337/0x6f0
[   18.363099]  ret_from_fork+0x41/0x80
[   18.363257]  ret_from_fork_asm+0x1a/0x30
[   18.363477] 
[   18.363644] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT(voluntary) 
[   18.364107] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.364276] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.364758] ==================================================================