]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Add libfuzzer integration
authorAndrew Scull <ascull@google.com>
Mon, 30 May 2022 10:00:11 +0000 (10:00 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 23 Jun 2022 16:58:18 +0000 (12:58 -0400)
commitd9962b12f200156238a4c825c0b540a203c72042
treeea68ecbb377e9e69aa3a7974b01e2313318e3e5c
parent001c39a196c2f4414ddab8713fa113dd06a028eb
sandbox: Add libfuzzer integration

Add an implementation of LLVMFuzzerTestOneInput() that starts the
sandbox on a secondary thread and exposes a function to synchronize the
generation of fuzzing inputs with their consumption by the sandbox.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/config.mk
arch/sandbox/cpu/os.c
arch/sandbox/include/asm/fuzzing_engine.h [new file with mode: 0644]