From: Daniel Baluta <daniel.baluta@oss.nxp.com>
To: broonie@kernel.org, peter.ujfalusi@linux.intel.com
Cc: daniel.baluta@nxp.com, daniel.baluta@gmail.com,
pierre-louis.bossart@linux.intel.com, lgirdwood@gmail.com,
ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] New debug feature: IPC message injector
Date: Tue, 16 Nov 2021 17:21:33 +0200 [thread overview]
Message-ID: <20211116152137.52129-1-daniel.baluta@oss.nxp.com> (raw)
From: Daniel Baluta <daniel.baluta@nxp.com>
With the new SND_SOC_SOF_DEBUG_IPC_MSG_INJECTOR it is going to be
possible to inject arbitrary messages via the debugfs/sof/ipc_msg_inject
file and get the reply from the same file as a binary.
The main use of this feature is to stress test the firmware's robustness
against maliciously (or erroneous) crafted messages.
We also receive firmware crash reports with only a binary of the sent
message which caused the firmware crash.
Before adding the new debug feature we needed to make sure that the IPC
reply handling is working correctly for cases when we don't know
beforehand the size of the reply (since we don't know what kind of
message we are sending).
Peter Ujfalusi (4):
ASoC: SOF: utils: Add generic function to get the reply for a tx
message
ASoC: SOF: imx: Use the generic helper to get the reply
ASoC: SOF: intel: Use the generic helper to get the reply
ASoC: SOF: debug: Add support for IPC message injection
sound/soc/sof/Kconfig | 8 +++
sound/soc/sof/debug.c | 107 ++++++++++++++++++++++++++++++++++
sound/soc/sof/imx/imx8.c | 37 +-----------
sound/soc/sof/imx/imx8m.c | 37 +-----------
sound/soc/sof/intel/atom.c | 43 +-------------
sound/soc/sof/intel/bdw.c | 43 +-------------
sound/soc/sof/intel/hda-ipc.c | 29 +--------
sound/soc/sof/ipc.c | 61 +++++++++++++++++++
sound/soc/sof/sof-priv.h | 10 ++++
9 files changed, 192 insertions(+), 183 deletions(-)
--
2.27.0
next reply other threads:[~2021-11-16 15:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-16 15:21 Daniel Baluta [this message]
2021-11-16 15:21 ` [PATCH 1/4] ASoC: SOF: utils: Add generic function to get the reply for a tx message Daniel Baluta
2021-11-16 15:21 ` [PATCH 2/4] ASoC: SOF: imx: Use the generic helper to get the reply Daniel Baluta
2021-11-16 15:21 ` [PATCH 3/4] ASoC: SOF: intel: " Daniel Baluta
2021-11-16 15:21 ` [PATCH 4/4] ASoC: SOF: debug: Add support for IPC message injection Daniel Baluta
2021-11-17 22:31 ` [PATCH 0/4] New debug feature: IPC message injector Mark Brown
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=20211116152137.52129-1-daniel.baluta@oss.nxp.com \
--to=daniel.baluta@oss.nxp.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=daniel.baluta@gmail.com \
--cc=daniel.baluta@nxp.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.ujfalusi@linux.intel.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=ranjani.sridharan@linux.intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®