Hay
Date
July 22, 2025, 5:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   36.549355] ==================================================================
[   36.549446] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   36.549446] 
[   36.549506] Invalid free of 0x00000000f96d4fdc (in kfence-#140):
[   36.549560]  test_invalid_addr_free+0x1ac/0x238
[   36.549607]  kunit_try_run_case+0x170/0x3f0
[   36.549650]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.549694]  kthread+0x328/0x630
[   36.549733]  ret_from_fork+0x10/0x20
[   36.549773] 
[   36.549796] kfence-#140: 0x000000001ec91793-0x000000004221a667, size=32, cache=kmalloc-32
[   36.549796] 
[   36.549868] allocated by task 338 on cpu 0 at 36.549221s (0.000643s ago):
[   36.549929]  test_alloc+0x29c/0x628
[   36.549970]  test_invalid_addr_free+0xd4/0x238
[   36.550011]  kunit_try_run_case+0x170/0x3f0
[   36.550051]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.550092]  kthread+0x328/0x630
[   36.550129]  ret_from_fork+0x10/0x20
[   36.550172] 
[   36.550218] CPU: 0 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250722 #1 PREEMPT 
[   36.550303] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   36.550332] Hardware name: linux,dummy-virt (DT)
[   36.550366] ==================================================================
[   36.653393] ==================================================================
[   36.653487] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   36.653487] 
[   36.653548] Invalid free of 0x0000000065f44038 (in kfence-#141):
[   36.653600]  test_invalid_addr_free+0xec/0x238
[   36.653646]  kunit_try_run_case+0x170/0x3f0
[   36.653689]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.653732]  kthread+0x328/0x630
[   36.653771]  ret_from_fork+0x10/0x20
[   36.653810] 
[   36.653851] kfence-#141: 0x0000000076c447fe-0x00000000ee8eba07, size=32, cache=test
[   36.653851] 
[   36.653906] allocated by task 340 on cpu 0 at 36.653275s (0.000628s ago):
[   36.653969]  test_alloc+0x230/0x628
[   36.654006]  test_invalid_addr_free+0xd4/0x238
[   36.654046]  kunit_try_run_case+0x170/0x3f0
[   36.654086]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.654129]  kthread+0x328/0x630
[   36.654172]  ret_from_fork+0x10/0x20
[   36.654212] 
[   36.654254] CPU: 0 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250722 #1 PREEMPT 
[   36.654340] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   36.654370] Hardware name: linux,dummy-virt (DT)
[   36.654405] ==================================================================

[   31.595903] ==================================================================
[   31.596323] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   31.596323] 
[   31.596634] Invalid free of 0x(____ptrval____) (in kfence-#103):
[   31.597391]  test_invalid_addr_free+0x1e1/0x260
[   31.597789]  kunit_try_run_case+0x1a5/0x480
[   31.598008]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.598542]  kthread+0x337/0x6f0
[   31.598703]  ret_from_fork+0x116/0x1d0
[   31.598915]  ret_from_fork_asm+0x1a/0x30
[   31.599192] 
[   31.599294] kfence-#103: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   31.599294] 
[   31.599681] allocated by task 355 on cpu 0 at 31.595749s (0.003929s ago):
[   31.599998]  test_alloc+0x364/0x10f0
[   31.600161]  test_invalid_addr_free+0xdb/0x260
[   31.600401]  kunit_try_run_case+0x1a5/0x480
[   31.600994]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.601252]  kthread+0x337/0x6f0
[   31.601579]  ret_from_fork+0x116/0x1d0
[   31.601743]  ret_from_fork_asm+0x1a/0x30
[   31.601964] 
[   31.602266] CPU: 0 UID: 0 PID: 355 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) 
[   31.602868] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.603065] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.603590] ==================================================================
[   31.699906] ==================================================================
[   31.700290] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   31.700290] 
[   31.700591] Invalid free of 0x(____ptrval____) (in kfence-#104):
[   31.701116]  test_invalid_addr_free+0xfb/0x260
[   31.701399]  kunit_try_run_case+0x1a5/0x480
[   31.701632]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.701882]  kthread+0x337/0x6f0
[   31.702060]  ret_from_fork+0x116/0x1d0
[   31.702305]  ret_from_fork_asm+0x1a/0x30
[   31.702475] 
[   31.702580] kfence-#104: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.702580] 
[   31.703021] allocated by task 357 on cpu 1 at 31.699784s (0.003234s ago):
[   31.703382]  test_alloc+0x2a6/0x10f0
[   31.703529]  test_invalid_addr_free+0xdb/0x260
[   31.703723]  kunit_try_run_case+0x1a5/0x480
[   31.703941]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.704262]  kthread+0x337/0x6f0
[   31.704402]  ret_from_fork+0x116/0x1d0
[   31.704615]  ret_from_fork_asm+0x1a/0x30
[   31.704801] 
[   31.704954] CPU: 1 UID: 0 PID: 357 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) 
[   31.705458] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.705676] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.706057] ==================================================================