Hay
Date
May 13, 2025, 12:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   23.971553] ==================================================================
[   23.971688] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.971688] 
[   23.971776] Invalid free of 0x0000000036935ce6 (in kfence-#110):
[   23.971852]  test_invalid_addr_free+0x1ac/0x238
[   23.971915]  kunit_try_run_case+0x170/0x3f0
[   23.971994]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.972049]  kthread+0x328/0x630
[   23.972099]  ret_from_fork+0x10/0x20
[   23.972146] 
[   23.972176] kfence-#110: 0x0000000005cb5437-0x000000006adc9b06, size=32, cache=kmalloc-32
[   23.972176] 
[   23.972242] allocated by task 307 on cpu 0 at 23.971333s (0.000905s ago):
[   23.972316]  test_alloc+0x29c/0x628
[   23.972366]  test_invalid_addr_free+0xd4/0x238
[   23.972415]  kunit_try_run_case+0x170/0x3f0
[   23.972458]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.972504]  kthread+0x328/0x630
[   23.972549]  ret_from_fork+0x10/0x20
[   23.972593] 
[   23.972656] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT 
[   23.972751] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.972786] Hardware name: linux,dummy-virt (DT)
[   23.972826] ==================================================================
[   24.075308] ==================================================================
[   24.075431] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   24.075431] 
[   24.075508] Invalid free of 0x000000001e7e07b8 (in kfence-#111):
[   24.075571]  test_invalid_addr_free+0xec/0x238
[   24.075627]  kunit_try_run_case+0x170/0x3f0
[   24.075673]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.075723]  kthread+0x328/0x630
[   24.075771]  ret_from_fork+0x10/0x20
[   24.075815] 
[   24.075843] kfence-#111: 0x0000000078629be6-0x00000000b0f4e750, size=32, cache=test
[   24.075843] 
[   24.075904] allocated by task 309 on cpu 0 at 24.075145s (0.000755s ago):
[   24.075998]  test_alloc+0x230/0x628
[   24.076055]  test_invalid_addr_free+0xd4/0x238
[   24.076102]  kunit_try_run_case+0x170/0x3f0
[   24.076147]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.076197]  kthread+0x328/0x630
[   24.076240]  ret_from_fork+0x10/0x20
[   24.076287] 
[   24.076345] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT 
[   24.076444] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.076481] Hardware name: linux,dummy-virt (DT)
[   24.076526] ==================================================================

[   17.138983] ==================================================================
[   17.139451] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.139451] 
[   17.139893] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   17.140166]  test_invalid_addr_free+0x1e1/0x260
[   17.140325]  kunit_try_run_case+0x1a5/0x480
[   17.140524]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.140785]  kthread+0x337/0x6f0
[   17.140978]  ret_from_fork+0x116/0x1d0
[   17.141110]  ret_from_fork_asm+0x1a/0x30
[   17.141281] 
[   17.141383] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.141383] 
[   17.141845] allocated by task 324 on cpu 0 at 17.138873s (0.002970s ago):
[   17.142168]  test_alloc+0x364/0x10f0
[   17.142351]  test_invalid_addr_free+0xdb/0x260
[   17.142566]  kunit_try_run_case+0x1a5/0x480
[   17.142780]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.142954]  kthread+0x337/0x6f0
[   17.143075]  ret_from_fork+0x116/0x1d0
[   17.143204]  ret_from_fork_asm+0x1a/0x30
[   17.143371] 
[   17.143482] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) 
[   17.144022] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.144211] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.144584] ==================================================================
[   17.242940] ==================================================================
[   17.243335] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.243335] 
[   17.243830] Invalid free of 0x(____ptrval____) (in kfence-#79):
[   17.244067]  test_invalid_addr_free+0xfb/0x260
[   17.244279]  kunit_try_run_case+0x1a5/0x480
[   17.244542]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.244816]  kthread+0x337/0x6f0
[   17.244980]  ret_from_fork+0x116/0x1d0
[   17.245123]  ret_from_fork_asm+0x1a/0x30
[   17.245342] 
[   17.245457] kfence-#79: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.245457] 
[   17.245870] allocated by task 326 on cpu 1 at 17.242852s (0.003016s ago):
[   17.246201]  test_alloc+0x2a6/0x10f0
[   17.246378]  test_invalid_addr_free+0xdb/0x260
[   17.246530]  kunit_try_run_case+0x1a5/0x480
[   17.247095]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.247484]  kthread+0x337/0x6f0
[   17.247674]  ret_from_fork+0x116/0x1d0
[   17.247863]  ret_from_fork_asm+0x1a/0x30
[   17.248011] 
[   17.248106] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) 
[   17.248542] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.248751] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.249116] ==================================================================