[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 13/16] scripts/oss-fuzz: build the general-fuzzer configs
From: |
Alexander Bulekov |
Subject: |
[PATCH v3 13/16] scripts/oss-fuzz: build the general-fuzzer configs |
Date: |
Sun, 20 Sep 2020 22:25:03 -0400 |
Build general-fuzzer wrappers for each configuration defined in
general_fuzzer_configs.yml and move the actual general-fuzzer to a
subdirectory, so oss-fuzz doesn't treat it as a standalone fuzzer.
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
---
scripts/oss-fuzz/build.sh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/scripts/oss-fuzz/build.sh b/scripts/oss-fuzz/build.sh
index d16207eb67..16b9f39d07 100755
--- a/scripts/oss-fuzz/build.sh
+++ b/scripts/oss-fuzz/build.sh
@@ -87,6 +87,7 @@ make "-j$(nproc)" qemu-fuzz-i386 V=1
# Copy over the datadir
cp -r ../pc-bios/ "$DEST_DIR/pc-bios"
+cp -r ../pc-bios/ "$DEST_DIR/deps/pc-bios"
# Run the fuzzer with no arguments, to print the help-string and get the list
# of available fuzz-targets. Copy over the qemu-fuzz-i386, naming it according
@@ -97,5 +98,11 @@ do
cp qemu-fuzz-i386 "$DEST_DIR/qemu-fuzz-i386-target-$target"
done
+mkdir -p "$DEST_DIR/deps"
+mv "$DEST_DIR/qemu-fuzz-i386-target-general-fuzz" "$DEST_DIR/deps/"
+
+./scripts/oss-fuzz/build_general_fuzzers.py \
+ "./scripts/oss-fuzz/general_fuzzer_configs.yml" "$DEST_DIR/general-fuzz-"
+
echo "Done. The fuzzers are located in $DEST_DIR"
exit 0
--
2.28.0
- [PATCH v3 03/16] fuzz: Add PCI features to the general fuzzer, (continued)
- [PATCH v3 03/16] fuzz: Add PCI features to the general fuzzer, Alexander Bulekov, 2020/09/20
- [PATCH v3 02/16] fuzz: Add general virtual-device fuzzer, Alexander Bulekov, 2020/09/20
- [PATCH v3 04/16] fuzz: Add DMA support to the generic-fuzzer, Alexander Bulekov, 2020/09/20
- [PATCH v3 06/16] fuzz: Add fuzzer callbacks to DMA-read functions, Alexander Bulekov, 2020/09/20
- [PATCH v3 05/16] fuzz: Declare DMA Read callback function, Alexander Bulekov, 2020/09/20
- [PATCH v3 08/16] fuzz: add a DISABLE_PCI op to general-fuzzer, Alexander Bulekov, 2020/09/20
- [PATCH v3 07/16] fuzz: Add support for custom crossover functions, Alexander Bulekov, 2020/09/20
- [PATCH v3 09/16] fuzz: add a crossover function to generic-fuzzer, Alexander Bulekov, 2020/09/20
- [PATCH v3 10/16] scripts/oss-fuzz: Add wrapper program for generic fuzzer, Alexander Bulekov, 2020/09/20
- [PATCH v3 11/16] scripts/oss-fuzz: Add general-fuzzer build script, Alexander Bulekov, 2020/09/20
- [PATCH v3 13/16] scripts/oss-fuzz: build the general-fuzzer configs,
Alexander Bulekov <=
- [PATCH v3 14/16] scripts/oss-fuzz: Add script to reorder a general-fuzzer trace, Alexander Bulekov, 2020/09/20
- [PATCH v3 15/16] scripts/oss-fuzz: Add crash trace minimization script, Alexander Bulekov, 2020/09/20
- [PATCH v3 12/16] scripts/oss-fuzz: Add general-fuzzer configs for oss-fuzz, Alexander Bulekov, 2020/09/20
- [PATCH v3 16/16] fuzz: Add instructions for using general-fuzz, Alexander Bulekov, 2020/09/20
- Re: [PATCH v3 00/16] Add a General Virtual Device Fuzzer, no-reply, 2020/09/20
- Re: [PATCH v3 00/16] Add a General Virtual Device Fuzzer, no-reply, 2020/09/20
- Re: [PATCH v3 00/16] Add a General Virtual Device Fuzzer, no-reply, 2020/09/20
- Re: [PATCH v3 00/16] Add a General Virtual Device Fuzzer, no-reply, 2020/09/20
- Re: [PATCH v3 00/16] Add a General Virtual Device Fuzzer, no-reply, 2020/09/20
- Re: [PATCH v3 00/16] Add a General Virtual Device Fuzzer, no-reply, 2020/09/21