Hay
Date
July 12, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   26.247031] ==================================================================
[   26.247189] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   26.247189] 
[   26.247303] Invalid free of 0x00000000f251b62e (in kfence-#139):
[   26.247422]  test_invalid_addr_free+0xec/0x238
[   26.247527]  kunit_try_run_case+0x170/0x3f0
[   26.247627]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.247736]  kthread+0x328/0x630
[   26.248120]  ret_from_fork+0x10/0x20
[   26.248228] 
[   26.248283] kfence-#139: 0x00000000de78259d-0x000000005363477b, size=32, cache=test
[   26.248283] 
[   26.248399] allocated by task 310 on cpu 1 at 26.246797s (0.001595s ago):
[   26.248542]  test_alloc+0x230/0x628
[   26.248631]  test_invalid_addr_free+0xd4/0x238
[   26.248725]  kunit_try_run_case+0x170/0x3f0
[   26.249124]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.249377]  kthread+0x328/0x630
[   26.249553]  ret_from_fork+0x10/0x20
[   26.249761] 
[   26.249998] CPU: 1 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   26.250475] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.250611] Hardware name: linux,dummy-virt (DT)
[   26.250805] ==================================================================
[   26.143162] ==================================================================
[   26.143320] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   26.143320] 
[   26.143444] Invalid free of 0x00000000e5f7e837 (in kfence-#138):
[   26.143578]  test_invalid_addr_free+0x1ac/0x238
[   26.143687]  kunit_try_run_case+0x170/0x3f0
[   26.143781]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.143896]  kthread+0x328/0x630
[   26.143985]  ret_from_fork+0x10/0x20
[   26.144069] 
[   26.144126] kfence-#138: 0x0000000025f73b2b-0x00000000bcd52939, size=32, cache=kmalloc-32
[   26.144126] 
[   26.144245] allocated by task 308 on cpu 1 at 26.142868s (0.001370s ago):
[   26.144380]  test_alloc+0x29c/0x628
[   26.144473]  test_invalid_addr_free+0xd4/0x238
[   26.144566]  kunit_try_run_case+0x170/0x3f0
[   26.144655]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.144751]  kthread+0x328/0x630
[   26.144845]  ret_from_fork+0x10/0x20
[   26.144926] 
[   26.145043] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   26.145253] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.145349] Hardware name: linux,dummy-virt (DT)
[   26.145423] ==================================================================

[   18.945098] ==================================================================
[   18.945489] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.945489] 
[   18.945866] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   18.946490]  test_invalid_addr_free+0xfb/0x260
[   18.946742]  kunit_try_run_case+0x1a5/0x480
[   18.946931]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.947170]  kthread+0x337/0x6f0
[   18.947353]  ret_from_fork+0x116/0x1d0
[   18.947542]  ret_from_fork_asm+0x1a/0x30
[   18.948115] 
[   18.948213] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.948213] 
[   18.948689] allocated by task 327 on cpu 1 at 18.944995s (0.003692s ago):
[   18.949135]  test_alloc+0x2a6/0x10f0
[   18.949281]  test_invalid_addr_free+0xdb/0x260
[   18.949611]  kunit_try_run_case+0x1a5/0x480
[   18.949872]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.950241]  kthread+0x337/0x6f0
[   18.950473]  ret_from_fork+0x116/0x1d0
[   18.950654]  ret_from_fork_asm+0x1a/0x30
[   18.951000] 
[   18.951112] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.951548] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.951716] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.952074] ==================================================================
[   18.841119] ==================================================================
[   18.841579] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.841579] 
[   18.841950] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   18.842828]  test_invalid_addr_free+0x1e1/0x260
[   18.843159]  kunit_try_run_case+0x1a5/0x480
[   18.843458]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.843839]  kthread+0x337/0x6f0
[   18.844107]  ret_from_fork+0x116/0x1d0
[   18.844373]  ret_from_fork_asm+0x1a/0x30
[   18.844552] 
[   18.844785] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.844785] 
[   18.845168] allocated by task 325 on cpu 1 at 18.840984s (0.004183s ago):
[   18.845406]  test_alloc+0x364/0x10f0
[   18.845603]  test_invalid_addr_free+0xdb/0x260
[   18.845785]  kunit_try_run_case+0x1a5/0x480
[   18.846075]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.846401]  kthread+0x337/0x6f0
[   18.846582]  ret_from_fork+0x116/0x1d0
[   18.846874]  ret_from_fork_asm+0x1a/0x30
[   18.847098] 
[   18.847237] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.847683] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.847990] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.848386] ==================================================================