From: sashiko-bot@kernel.org
To: "Hanxiang Xu" <xuhx@hust.edu.cn>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH] ASoC: intel: atom: SST: log the byte-stream message header before handing it to the dispatch queue (uaf read of struct ipc_post)
Date: Wed, 02 Dec 2026 02:49:23 +0000 [thread overview]
Message-ID: <sashiko-outbox-244722@kernel.org> (raw)
In-Reply-To: <20261202021839.1-1-xuhx@hust.edu.cn>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ASoC: intel: atom: missing Fixes trailer for commit 3d9ff34622ba
--
commit f398b69655e68249bdc3b3cc93a5c1f5b263b34b
Author: Hanxiang Xu <xuhx@hust.edu.cn>
> ASoC: intel: atom: SST: log the byte-stream message header before handing it to the dispatch queue (uaf read of struct ipc_post)
>
> sst_send_byte_stream_mrfld() hands its struct ipc_post to the
> dispatch queue with sst_add_to_dispatch_list_and_post() and then keeps
> dereferencing the local msg pointer in a dev_dbg(). Ownership was
> transferred at hand-off: sst_post_message_mrfld() kfree()s the message
> it dequeues before returning, so with dynamic debug enabled for this
> callsite every byte-control/mixer parameter write to the SST DSP is a
> use-after-free read of the freed header; with the IPCX register busy
> the free happens from the done-interrupt workqueue instead, racing
> the read. sst_prepare_and_post_msg() logs the same header before
> posting - this callsite is the odd one out.
>
> Log the header before the hand-off and never touch msg after
> sst_add_to_dispatch_list_and_post().
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Hanxiang Xu <xuhx@hust.edu.cn>
[Severity: Low]
Should this bug fix include a Fixes: tag for the commit that introduced
sst_send_byte_stream_mrfld()?
Fixes: 3d9ff34622ba ("ASoC: Intel: sst: add stream operations")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202021839.1-1-xuhx@hust.edu.cn?part=1
prev parent reply other threads:[~2026-12-02 2:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 18:18 [PATCH] ASoC: intel: atom: SST: log the byte-stream message header before handing it to the dispatch queue (uaf read of struct ipc_post) Hanxiang Xu
2026-12-02 2:49 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-244722@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=xuhx@hust.edu.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.