Skip to content

ASoC: SOF: ipc4-control: pass data pointer and size as function argum…#5736

Closed
kv2019i wants to merge 1 commit intothesofproject:topic/sof-devfrom
kv2019i:202604-setget-fix
Closed

ASoC: SOF: ipc4-control: pass data pointer and size as function argum…#5736
kv2019i wants to merge 1 commit intothesofproject:topic/sof-devfrom
kv2019i:202604-setget-fix

Conversation

@kv2019i
Copy link
Copy Markdown
Collaborator

@kv2019i kv2019i commented Apr 15, 2026

…ents

Move the data_ptr and data_size assignments into
sof_ipc4_set_get_kcontrol_data() as explicit function parameters instead of having each caller set and clear them on the shared cdata->msg before and after the call.

Link: #5734

…ents

Move the data_ptr and data_size assignments into
sof_ipc4_set_get_kcontrol_data() as explicit function parameters instead
of having each caller set and clear them on the shared cdata->msg before
and after the call.

Link: thesofproject#5734
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i
Copy link
Copy Markdown
Collaborator Author

kv2019i commented Apr 15, 2026

@bardliao @ujfalusi There's a potential race condition in sof_ipc4_set_get_kcontrol_data(). The shared cdata->msg structure's data_ptr/data_size fields are set by callers before acquiring setup_mutex, and cleared after the IPC call returns. I couldn't reproduce yet, but if @bardliao you can try out?

@kv2019i
Copy link
Copy Markdown
Collaborator Author

kv2019i commented Apr 16, 2026

This is duplicate, let's go with #5737 instead.

@kv2019i kv2019i closed this Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant