Repository navigation
Conversation
IPC4 does not keep BIND buffers in comp_list. The firmware releases them on UNBIND or DELETE_PIPELINE, where ipc_pipeline_module_free() disconnects each module and frees a buffer once both of its ends are detached. The fuzz teardown instead frees components directly with ipc_comp_free(), which only detaches the buffers, so every buffer bound by a testcase leaked into the heap used by all following testcases. With CONFIG_SYS_HEAP_HARDENING_EXTREME (UBSan fuzz build) each heap operation validates the whole heap, so the per-execution cost grew with the number of executions in a process. Replaying the 29k-input IPC4 corpus took ~4600 s instead of ~175 s and made campaign iterations overrun their time budget. Mirror the DELETE_PIPELINE buffer release for each component before ipc_comp_free() in the IPC4 teardown. Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
tmleman
requested review from
dbaluta,
kv2019i,
lbetlej,
lgirdwood,
mmaka1 and
plbossart
as code owners
December 2, 2026 09:49
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The IPC4 teardown buffer-cleanup change has no active review issues.
No open issues 🎉
What changed in this PR
Fixes IPC4 buffer leaks in POSIX fuzz teardown, preventing heap growth and progressive slowdowns across testcases.
Changes:
- Releases bound buffers before component destruction, mirroring
DELETE_PIPELINEcleanup. - Documents IPC4-specific buffer ownership and teardown behavior.
| File | Description |
|---|---|
src/kernel/platform/posix/ipc.c |
Adds IPC4 bound-buffer cleanup to the component teardown pass. |
Review effort: Balanced
PR 11587: test resultsRun date: 2026-12-02 11:25 UTC Tested commit: b3bb3820fc49ae71351746de0acf02082980beda |
kv2019i
approved these changes
Dec 2, 2026
lgirdwood
approved these changes
Dec 2, 2026
Member
|
@tmleman can you check CI and let me know if good to merge. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IPC4 does not keep BIND buffers in comp_list. The firmware releases them on UNBIND or DELETE_PIPELINE, where ipc_pipeline_module_free() disconnects each module and frees a buffer once both of its ends are detached. The fuzz teardown instead frees components directly with ipc_comp_free(), which only detaches the buffers, so every buffer bound by a testcase leaked into the heap used by all following testcases.
With CONFIG_SYS_HEAP_HARDENING_EXTREME (UBSan fuzz build) each heap operation validates the whole heap, so the per-execution cost grew with the number of executions in a process. Replaying the 29k-input IPC4 corpus took ~4600 s instead of ~175 s and made campaign iterations overrun their time budget.
Mirror the DELETE_PIPELINE buffer release for each component before ipc_comp_free() in the IPC4 teardown.