Skip to content

New debug feature: IPC message injector

Daniel Baluta alsa-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ASoC: SOF: utils: Add generic function to get the reply for a tx messagesound/soc/sof/ipc.c sound/soc/sof/sof-priv.h+67 -00 replies
2/4ASoC: SOF: imx: Use the generic helper to get the replysound/soc/sof/imx/imx8.c sound/soc/sof/imx/imx8m.c+2 -720 replies
3/4ASoC: SOF: intel: Use the generic helper to get the replysound/soc/sof/intel/atom.c sound/soc/sof/intel/bdw.c sound/soc/sof/intel/hda-ipc.c+4 -1110 replies
4/4ASoC: SOF: debug: Add support for IPC message injectionsound/soc/sof/Kconfig sound/soc/sof/debug.c sound/soc/sof/sof-priv.h+119 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchRander WangRanjani SridharanPierre-Louis BossartGuennadi Liakhovetski
1/4R-b R-b R-b R-b
2/4R-b R-b R-b R-b
3/4R-b R-b R-b R-b
4/4R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] New debug feature: IPC message injector

From: Daniel Baluta <[email protected]>

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(-)
Signature · 1 line
2.27.0