Hay
Date
July 18, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.432287] ==================================================================
[   22.432382] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   22.432382] 
[   22.432443] Invalid free of 0x000000007e65b193 (in kfence-#100):
[   22.432500]  test_invalid_addr_free+0xec/0x238
[   22.432547]  kunit_try_run_case+0x170/0x3f0
[   22.432589]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.432632]  kthread+0x328/0x630
[   22.432670]  ret_from_fork+0x10/0x20
[   22.432709] 
[   22.432733] kfence-#100: 0x00000000950d63fc-0x000000008b4113fc, size=32, cache=test
[   22.432733] 
[   22.432787] allocated by task 309 on cpu 1 at 22.432158s (0.000625s ago):
[   22.432861]  test_alloc+0x230/0x628
[   22.432902]  test_invalid_addr_free+0xd4/0x238
[   22.432944]  kunit_try_run_case+0x170/0x3f0
[   22.432984]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.433028]  kthread+0x328/0x630
[   22.433063]  ret_from_fork+0x10/0x20
[   22.433103] 
[   22.433146] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   22.433224] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.433254] Hardware name: linux,dummy-virt (DT)
[   22.433288] ==================================================================
[   22.327996] ==================================================================
[   22.328089] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   22.328089] 
[   22.328152] Invalid free of 0x000000003cc35479 (in kfence-#99):
[   22.328208]  test_invalid_addr_free+0x1ac/0x238
[   22.328255]  kunit_try_run_case+0x170/0x3f0
[   22.328299]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.328343]  kthread+0x328/0x630
[   22.328383]  ret_from_fork+0x10/0x20
[   22.328423] 
[   22.328448] kfence-#99: 0x00000000fa534c1d-0x000000009cad141c, size=32, cache=kmalloc-32
[   22.328448] 
[   22.328503] allocated by task 307 on cpu 1 at 22.327827s (0.000672s ago):
[   22.328565]  test_alloc+0x29c/0x628
[   22.328610]  test_invalid_addr_free+0xd4/0x238
[   22.328652]  kunit_try_run_case+0x170/0x3f0
[   22.328692]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.328736]  kthread+0x328/0x630
[   22.328771]  ret_from_fork+0x10/0x20
[   22.328811] 
[   22.328871] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   22.328952] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.328981] Hardware name: linux,dummy-virt (DT)
[   22.329017] ==================================================================

[   21.370761] ==================================================================
[   21.370839] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   21.370839] 
[   21.371062] Invalid free of 0x000000005005abd7 (in kfence-#91):
[   21.371132]  test_invalid_addr_free+0x1ac/0x238
[   21.371307]  kunit_try_run_case+0x170/0x3f0
[   21.371368]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.371413]  kthread+0x328/0x630
[   21.371706]  ret_from_fork+0x10/0x20
[   21.371849] 
[   21.371930] kfence-#91: 0x0000000004e28f95-0x000000005b39d323, size=32, cache=kmalloc-32
[   21.371930] 
[   21.372376] allocated by task 307 on cpu 0 at 21.370481s (0.001560s ago):
[   21.372465]  test_alloc+0x29c/0x628
[   21.372508]  test_invalid_addr_free+0xd4/0x238
[   21.372874]  kunit_try_run_case+0x170/0x3f0
[   21.373023]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.373075]  kthread+0x328/0x630
[   21.373113]  ret_from_fork+0x10/0x20
[   21.373154] 
[   21.373224] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   21.373624] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.373734] Hardware name: linux,dummy-virt (DT)
[   21.373826] ==================================================================
[   21.479110] ==================================================================
[   21.479194] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   21.479194] 
[   21.479541] Invalid free of 0x000000009ec085db (in kfence-#92):
[   21.479617]  test_invalid_addr_free+0xec/0x238
[   21.479691]  kunit_try_run_case+0x170/0x3f0
[   21.479751]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.479823]  kthread+0x328/0x630
[   21.480100]  ret_from_fork+0x10/0x20
[   21.480144] 
[   21.480177] kfence-#92: 0x0000000052ac07a0-0x0000000013ed7175, size=32, cache=test
[   21.480177] 
[   21.480358] allocated by task 309 on cpu 0 at 21.478959s (0.001393s ago):
[   21.480708]  test_alloc+0x230/0x628
[   21.480775]  test_invalid_addr_free+0xd4/0x238
[   21.481048]  kunit_try_run_case+0x170/0x3f0
[   21.481164]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.481303]  kthread+0x328/0x630
[   21.481686]  ret_from_fork+0x10/0x20
[   21.481804] 
[   21.481869] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   21.482255] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.482314] Hardware name: linux,dummy-virt (DT)
[   21.482363] ==================================================================

[   21.467376] ==================================================================
[   21.467467] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   21.467467] 
[   21.467528] Invalid free of 0x000000009ce1ee21 (in kfence-#94):
[   21.467582]  test_invalid_addr_free+0xec/0x238
[   21.467629]  kunit_try_run_case+0x170/0x3f0
[   21.467671]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.467732]  kthread+0x328/0x630
[   21.467771]  ret_from_fork+0x10/0x20
[   21.467810] 
[   21.467835] kfence-#94: 0x000000001954958f-0x0000000096b8644c, size=32, cache=test
[   21.467835] 
[   21.467889] allocated by task 309 on cpu 0 at 21.467251s (0.000634s ago):
[   21.467951]  test_alloc+0x230/0x628
[   21.467991]  test_invalid_addr_free+0xd4/0x238
[   21.468033]  kunit_try_run_case+0x170/0x3f0
[   21.468073]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.468116]  kthread+0x328/0x630
[   21.468151]  ret_from_fork+0x10/0x20
[   21.468192] 
[   21.468233] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   21.468309] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.468341] Hardware name: linux,dummy-virt (DT)
[   21.468375] ==================================================================
[   21.363433] ==================================================================
[   21.363520] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   21.363520] 
[   21.363584] Invalid free of 0x00000000cc5e974c (in kfence-#93):
[   21.363640]  test_invalid_addr_free+0x1ac/0x238
[   21.363688]  kunit_try_run_case+0x170/0x3f0
[   21.363750]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.363795]  kthread+0x328/0x630
[   21.363835]  ret_from_fork+0x10/0x20
[   21.363876] 
[   21.363900] kfence-#93: 0x00000000e3362741-0x0000000007eab642, size=32, cache=kmalloc-32
[   21.363900] 
[   21.363954] allocated by task 307 on cpu 0 at 21.363280s (0.000670s ago):
[   21.364017]  test_alloc+0x29c/0x628
[   21.364059]  test_invalid_addr_free+0xd4/0x238
[   21.364100]  kunit_try_run_case+0x170/0x3f0
[   21.364140]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.364185]  kthread+0x328/0x630
[   21.364221]  ret_from_fork+0x10/0x20
[   21.364261] 
[   21.364307] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   21.364390] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.364420] Hardware name: linux,dummy-virt (DT)
[   21.364455] ==================================================================

[   17.706845] ==================================================================
[   17.707239] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.707239] 
[   17.707729] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   17.707942]  test_invalid_addr_free+0xfb/0x260
[   17.708176]  kunit_try_run_case+0x1a5/0x480
[   17.708397]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.708732]  kthread+0x337/0x6f0
[   17.708880]  ret_from_fork+0x116/0x1d0
[   17.709092]  ret_from_fork_asm+0x1a/0x30
[   17.709300] 
[   17.709391] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.709391] 
[   17.709849] allocated by task 327 on cpu 1 at 17.706753s (0.003094s ago):
[   17.710199]  test_alloc+0x2a6/0x10f0
[   17.710390]  test_invalid_addr_free+0xdb/0x260
[   17.710622]  kunit_try_run_case+0x1a5/0x480
[   17.710868]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.711086]  kthread+0x337/0x6f0
[   17.711280]  ret_from_fork+0x116/0x1d0
[   17.711483]  ret_from_fork_asm+0x1a/0x30
[   17.711687] 
[   17.711856] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.712310] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.712524] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.712956] ==================================================================
[   17.602887] ==================================================================
[   17.603274] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.603274] 
[   17.603684] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   17.603969]  test_invalid_addr_free+0x1e1/0x260
[   17.604163]  kunit_try_run_case+0x1a5/0x480
[   17.604315]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.604628]  kthread+0x337/0x6f0
[   17.604809]  ret_from_fork+0x116/0x1d0
[   17.604986]  ret_from_fork_asm+0x1a/0x30
[   17.605187] 
[   17.605287] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.605287] 
[   17.605712] allocated by task 325 on cpu 0 at 17.602760s (0.002949s ago):
[   17.605972]  test_alloc+0x364/0x10f0
[   17.606108]  test_invalid_addr_free+0xdb/0x260
[   17.606290]  kunit_try_run_case+0x1a5/0x480
[   17.606515]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.606775]  kthread+0x337/0x6f0
[   17.606977]  ret_from_fork+0x116/0x1d0
[   17.607112]  ret_from_fork_asm+0x1a/0x30
[   17.607254] 
[   17.607356] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.608103] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.608284] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.608685] ==================================================================

[   18.539568] ==================================================================
[   18.539969] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.539969] 
[   18.540320] Invalid free of 0x(____ptrval____) (in kfence-#80):
[   18.540680]  test_invalid_addr_free+0x1e1/0x260
[   18.540906]  kunit_try_run_case+0x1a5/0x480
[   18.541106]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.541337]  kthread+0x337/0x6f0
[   18.541522]  ret_from_fork+0x116/0x1d0
[   18.541661]  ret_from_fork_asm+0x1a/0x30
[   18.541833] 
[   18.541938] kfence-#80: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.541938] 
[   18.542388] allocated by task 324 on cpu 0 at 18.539420s (0.002966s ago):
[   18.542707]  test_alloc+0x364/0x10f0
[   18.542889]  test_invalid_addr_free+0xdb/0x260
[   18.543084]  kunit_try_run_case+0x1a5/0x480
[   18.543283]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.543566]  kthread+0x337/0x6f0
[   18.543724]  ret_from_fork+0x116/0x1d0
[   18.543880]  ret_from_fork_asm+0x1a/0x30
[   18.544076] 
[   18.544194] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.544536] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.544677] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.544983] ==================================================================
[   18.643558] ==================================================================
[   18.643990] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.643990] 
[   18.644397] Invalid free of 0x(____ptrval____) (in kfence-#81):
[   18.644871]  test_invalid_addr_free+0xfb/0x260
[   18.645551]  kunit_try_run_case+0x1a5/0x480
[   18.646005]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.646273]  kthread+0x337/0x6f0
[   18.646601]  ret_from_fork+0x116/0x1d0
[   18.646805]  ret_from_fork_asm+0x1a/0x30
[   18.647111] 
[   18.647197] kfence-#81: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.647197] 
[   18.647780] allocated by task 326 on cpu 1 at 18.643440s (0.004337s ago):
[   18.648278]  test_alloc+0x2a6/0x10f0
[   18.648459]  test_invalid_addr_free+0xdb/0x260
[   18.648721]  kunit_try_run_case+0x1a5/0x480
[   18.648896]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.649166]  kthread+0x337/0x6f0
[   18.649334]  ret_from_fork+0x116/0x1d0
[   18.649855]  ret_from_fork_asm+0x1a/0x30
[   18.650149] 
[   18.650309] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.650888] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.651192] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.651720] ==================================================================

[   18.147015] ==================================================================
[   18.147400] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.147400] 
[   18.147762] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   18.148135]  test_invalid_addr_free+0x1e1/0x260
[   18.148330]  kunit_try_run_case+0x1a5/0x480
[   18.148511]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.148772]  kthread+0x337/0x6f0
[   18.148915]  ret_from_fork+0x116/0x1d0
[   18.149055]  ret_from_fork_asm+0x1a/0x30
[   18.149237] 
[   18.149336] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.149336] 
[   18.149874] allocated by task 324 on cpu 0 at 18.146877s (0.002995s ago):
[   18.150281]  test_alloc+0x364/0x10f0
[   18.150791]  test_invalid_addr_free+0xdb/0x260
[   18.151361]  kunit_try_run_case+0x1a5/0x480
[   18.151800]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.152102]  kthread+0x337/0x6f0
[   18.152254]  ret_from_fork+0x116/0x1d0
[   18.152625]  ret_from_fork_asm+0x1a/0x30
[   18.152941] 
[   18.153070] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.153600] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.153782] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.154358] ==================================================================
[   18.251039] ==================================================================
[   18.251427] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.251427] 
[   18.251784] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   18.252180]  test_invalid_addr_free+0xfb/0x260
[   18.252388]  kunit_try_run_case+0x1a5/0x480
[   18.252542]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.252803]  kthread+0x337/0x6f0
[   18.252988]  ret_from_fork+0x116/0x1d0
[   18.253194]  ret_from_fork_asm+0x1a/0x30
[   18.253388] 
[   18.253466] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.253466] 
[   18.253870] allocated by task 326 on cpu 1 at 18.250921s (0.002947s ago):
[   18.254196]  test_alloc+0x2a6/0x10f0
[   18.254387]  test_invalid_addr_free+0xdb/0x260
[   18.254553]  kunit_try_run_case+0x1a5/0x480
[   18.254772]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.255048]  kthread+0x337/0x6f0
[   18.255189]  ret_from_fork+0x116/0x1d0
[   18.255362]  ret_from_fork_asm+0x1a/0x30
[   18.255566] 
[   18.255689] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.256033] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.256175] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.256929] ==================================================================