From f571d1cd15e5c76f3cfaf2e61641fadcdd0178bb Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Thu, 21 Nov 2024 15:51:51 -0800 Subject: [PATCH] tools: corpus: add seed corpus root Add a directory for the infra to build from, actual seed can be added later. Signed-off-by: Curtis Malainey --- tools/corpus/README.md | 21 +++++++++++++++++++++ tools/corpus/sof-ipc3/DELETE_ME | 1 + tools/corpus/sof-ipc4/DELETE_ME | 1 + 3 files changed, 23 insertions(+) create mode 100644 tools/corpus/README.md create mode 100644 tools/corpus/sof-ipc3/DELETE_ME create mode 100644 tools/corpus/sof-ipc4/DELETE_ME diff --git a/tools/corpus/README.md b/tools/corpus/README.md new file mode 100644 index 000000000000..cce79445601a --- /dev/null +++ b/tools/corpus/README.md @@ -0,0 +1,21 @@ +# SOF Corpus Directory + +==================== + +The following directory is a special directory containing binary transcripts of +IPC messages from various devices. When OSS-Fuzz runs, it zips these files up +into a output directory to be used as seed material for the fuzzers. + +Feel free to add more examples to this directory, more components and state +coverage the better. + +## How to generate these files + +These files are generated by live dumping the IPC messages, the initial batch +were created by adding a hook to write binary ipc window to the /tmp directory +from the kernel every time a IPC TX occurred. These files were then +concatenated together in order sent. A single file represents a single DSP +lifecycle. If you inspect the data, you will be able to parse out each IPC at +SOF_IPC_MSG_MAX_SIZE byte intervals. + + diff --git a/tools/corpus/sof-ipc3/DELETE_ME b/tools/corpus/sof-ipc3/DELETE_ME new file mode 100644 index 000000000000..e5b9ac78ad06 --- /dev/null +++ b/tools/corpus/sof-ipc3/DELETE_ME @@ -0,0 +1 @@ +stub file until real data is added diff --git a/tools/corpus/sof-ipc4/DELETE_ME b/tools/corpus/sof-ipc4/DELETE_ME new file mode 100644 index 000000000000..e5b9ac78ad06 --- /dev/null +++ b/tools/corpus/sof-ipc4/DELETE_ME @@ -0,0 +1 @@ +stub file until real data is added