From: Paolo Bonzini <pbonzini@redhat.com>
To: Alexander Bulekov <alxndr@bu.edu>, qemu-devel@nongnu.org
Cc: darren.kenny@oracle.com, thuth@redhat.com, bsd@redhat.com,
stefanha@redhat.com, f4bug@amsat.org
Subject: Re: [PATCH-for-5.2] scripts/oss-fuzz: rename bin/qemu-fuzz-i386
Date: Mon, 2 Nov 2020 09:30:51 +0100 [thread overview]
Message-ID: <0caf1656-e66b-22d4-8183-e53b0829a3e7@redhat.com> (raw)
In-Reply-To: <20201101212245.185819-1-alxndr@bu.edu>
On 01/11/20 22:22, Alexander Bulekov wrote:
> OSS-Fuzz changed the way it scans for fuzzers in $DEST_DIR. The new code
> also scans subdirectories for fuzzers. This means that OSS-Fuzz is
> considering bin/qemu-fuzz-i386 as an independent fuzzer (it is not - it
> requires a --fuzz-target argument). This has led to coverage-build
> failures and false crash reports. To work around this, we take advantage
> of OSS-Fuzz' filename extension check - OSS-Fuzz will not run anything
> that has an extension that is not ".exe":
> https://github.com/google/oss-fuzz/blob/master/infra/utils.py#L115
>
> Reported-by: OSS-Fuzz (Issue 26725)
> Reported-by: OSS-Fuzz (Issue 26679)
> Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
> ---
>
> Also, for context:
> https://github.com/google/oss-fuzz/issues/4575
>
> scripts/oss-fuzz/build.sh | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/oss-fuzz/build.sh b/scripts/oss-fuzz/build.sh
> index fcae4a0c26..3b1c82b63d 100755
> --- a/scripts/oss-fuzz/build.sh
> +++ b/scripts/oss-fuzz/build.sh
> @@ -91,7 +91,7 @@ make "-j$(nproc)" qemu-fuzz-i386 V=1
> # Copy over the datadir
> cp -r ../pc-bios/ "$DEST_DIR/pc-bios"
>
> -cp "./qemu-fuzz-i386" "$DEST_DIR/bin/"
> +cp "./qemu-fuzz-i386" "$DEST_DIR/bin/qemu-fuzz-i386.base"
>
> # 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
> @@ -104,7 +104,7 @@ do
> # that are thin wrappers around this target that set the required
> # environment variables according to predefined configs.
> if [ "$target" != "generic-fuzz" ]; then
> - ln "$DEST_DIR/bin/qemu-fuzz-i386" \
> + ln "$DEST_DIR/bin/qemu-fuzz-i386.base" \
> "$DEST_DIR/qemu-fuzz-i386-target-$target"
> fi
> done
>
Queued, thanks.
Paolo
prev parent reply other threads:[~2020-11-02 8:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-01 21:22 [PATCH-for-5.2] scripts/oss-fuzz: rename bin/qemu-fuzz-i386 Alexander Bulekov
2020-11-02 8:30 ` Paolo Bonzini [this message]
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=0caf1656-e66b-22d4-8183-e53b0829a3e7@redhat.com \
--to=pbonzini@redhat.com \
--cc=alxndr@bu.edu \
--cc=bsd@redhat.com \
--cc=darren.kenny@oracle.com \
--cc=f4bug@amsat.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.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;
as well as URLs for NNTP newsgroup(s).