Hay
Date
July 10, 2025, 11:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.186439] ==================================================================
[   21.186529] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   21.186529] 
[   21.186593] Invalid free of 0x00000000d326cec1 (in kfence-#96):
[   21.186646]  test_invalid_addr_free+0x1ac/0x238
[   21.186696]  kunit_try_run_case+0x170/0x3f0
[   21.186741]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.186786]  kthread+0x328/0x630
[   21.186825]  ret_from_fork+0x10/0x20
[   21.186867] 
[   21.186892] kfence-#96: 0x000000002127649c-0x00000000f2ba484c, size=32, cache=kmalloc-32
[   21.186892] 
[   21.186949] allocated by task 307 on cpu 1 at 21.186288s (0.000657s ago):
[   21.187012]  test_alloc+0x29c/0x628
[   21.187054]  test_invalid_addr_free+0xd4/0x238
[   21.187110]  kunit_try_run_case+0x170/0x3f0
[   21.187152]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.187197]  kthread+0x328/0x630
[   21.187235]  ret_from_fork+0x10/0x20
[   21.187276] 
[   21.187325] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.187406] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.187437] Hardware name: linux,dummy-virt (DT)
[   21.187473] ==================================================================
[   21.290303] ==================================================================
[   21.290398] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   21.290398] 
[   21.290459] Invalid free of 0x00000000056a22be (in kfence-#97):
[   21.290512]  test_invalid_addr_free+0xec/0x238
[   21.290557]  kunit_try_run_case+0x170/0x3f0
[   21.290599]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.290646]  kthread+0x328/0x630
[   21.290685]  ret_from_fork+0x10/0x20
[   21.290726] 
[   21.290749] kfence-#97: 0x00000000826b87e5-0x000000005648e750, size=32, cache=test
[   21.290749] 
[   21.290803] allocated by task 309 on cpu 1 at 21.290177s (0.000622s ago):
[   21.290867]  test_alloc+0x230/0x628
[   21.290907]  test_invalid_addr_free+0xd4/0x238
[   21.290951]  kunit_try_run_case+0x170/0x3f0
[   21.290991]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.291036]  kthread+0x328/0x630
[   21.291072]  ret_from_fork+0x10/0x20
[   21.291130] 
[   21.291171] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.291253] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.291280] Hardware name: linux,dummy-virt (DT)
[   21.291314] ==================================================================

[   19.237785] ==================================================================
[   19.238513] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   19.238513] 
[   19.238804] Invalid free of 0x(____ptrval____) (in kfence-#83):
[   19.239202]  test_invalid_addr_free+0xfb/0x260
[   19.239375]  kunit_try_run_case+0x1a5/0x480
[   19.239675]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.239896]  kthread+0x337/0x6f0
[   19.240070]  ret_from_fork+0x116/0x1d0
[   19.240288]  ret_from_fork_asm+0x1a/0x30
[   19.240556] 
[   19.240662] kfence-#83: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.240662] 
[   19.240987] allocated by task 327 on cpu 0 at 19.237688s (0.003297s ago):
[   19.241290]  test_alloc+0x2a6/0x10f0
[   19.241512]  test_invalid_addr_free+0xdb/0x260
[   19.241736]  kunit_try_run_case+0x1a5/0x480
[   19.241947]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.242140]  kthread+0x337/0x6f0
[   19.242297]  ret_from_fork+0x116/0x1d0
[   19.242499]  ret_from_fork_asm+0x1a/0x30
[   19.242664] 
[   19.242758] CPU: 0 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   19.243458] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.243663] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.244008] ==================================================================
[   19.133769] ==================================================================
[   19.134157] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   19.134157] 
[   19.134702] Invalid free of 0x(____ptrval____) (in kfence-#82):
[   19.134920]  test_invalid_addr_free+0x1e1/0x260
[   19.135209]  kunit_try_run_case+0x1a5/0x480
[   19.135426]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.135642]  kthread+0x337/0x6f0
[   19.135804]  ret_from_fork+0x116/0x1d0
[   19.135997]  ret_from_fork_asm+0x1a/0x30
[   19.136213] 
[   19.136294] kfence-#82: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   19.136294] 
[   19.136705] allocated by task 325 on cpu 1 at 19.133651s (0.003052s ago):
[   19.137042]  test_alloc+0x364/0x10f0
[   19.137223]  test_invalid_addr_free+0xdb/0x260
[   19.137502]  kunit_try_run_case+0x1a5/0x480
[   19.137707]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.137954]  kthread+0x337/0x6f0
[   19.138128]  ret_from_fork+0x116/0x1d0
[   19.138322]  ret_from_fork_asm+0x1a/0x30
[   19.138545] 
[   19.138653] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   19.139124] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.139337] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.139618] ==================================================================