* [PATCH] fuzz: only use generic-fuzz targets on oss-fuzz
@ 2022-06-22 15:50 Alexander Bulekov
2022-06-22 16:03 ` Darren Kenny
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Bulekov @ 2022-06-22 15:50 UTC (permalink / raw)
To: qemu-devel
Cc: Alexander Bulekov, Paolo Bonzini, Bandan Das, Stefan Hajnoczi,
Thomas Huth, Darren Kenny, Qiuhao Li
The non-generic-fuzz targets often time-out, or run out of memory.
Additionally, they create unreproducible bug-reports. It is possible
that this is resulting in failing coverage-reports on OSS-Fuzz. In the
future, these test-cases should be fixed, or removed.
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
---
scripts/oss-fuzz/build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/oss-fuzz/build.sh b/scripts/oss-fuzz/build.sh
index 98b56e0521..d8b4446d24 100755
--- a/scripts/oss-fuzz/build.sh
+++ b/scripts/oss-fuzz/build.sh
@@ -105,7 +105,7 @@ do
# to be configured. We have some generic-fuzz-{pc-q35, floppy, ...} targets
# that are thin wrappers around this target that set the required
# environment variables according to predefined configs.
- if [ "$target" != "generic-fuzz" ]; then
+ if echo "$target" | grep -q "generic-fuzz-"; then
ln $base_copy \
"$DEST_DIR/qemu-fuzz-i386-target-$target"
fi
--
2.27.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] fuzz: only use generic-fuzz targets on oss-fuzz
2022-06-22 15:50 [PATCH] fuzz: only use generic-fuzz targets on oss-fuzz Alexander Bulekov
@ 2022-06-22 16:03 ` Darren Kenny
2022-06-22 16:28 ` Alexander Bulekov
0 siblings, 1 reply; 5+ messages in thread
From: Darren Kenny @ 2022-06-22 16:03 UTC (permalink / raw)
To: Alexander Bulekov, qemu-devel
Cc: Alexander Bulekov, Paolo Bonzini, Bandan Das, Stefan Hajnoczi,
Thomas Huth, Qiuhao Li
Hi Alex,
This looks good to me, so:
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
But, if it is at all possible to use Bash glob in a '[[ ... ]]' test
such as:
if [[ $target == generic-fuzz-* ]]; then
that might read better - but it seems the default is that we don't
assume that, or am I wrong? (This is probably a question for others on
the CC-list)
Thanks,
Darren.
On Wednesday, 2022-06-22 at 11:50:28 -04, Alexander Bulekov wrote:
> The non-generic-fuzz targets often time-out, or run out of memory.
> Additionally, they create unreproducible bug-reports. It is possible
> that this is resulting in failing coverage-reports on OSS-Fuzz. In the
> future, these test-cases should be fixed, or removed.
>
> Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
> ---
> scripts/oss-fuzz/build.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/oss-fuzz/build.sh b/scripts/oss-fuzz/build.sh
> index 98b56e0521..d8b4446d24 100755
> --- a/scripts/oss-fuzz/build.sh
> +++ b/scripts/oss-fuzz/build.sh
> @@ -105,7 +105,7 @@ do
> # to be configured. We have some generic-fuzz-{pc-q35, floppy, ...} targets
> # that are thin wrappers around this target that set the required
> # environment variables according to predefined configs.
> - if [ "$target" != "generic-fuzz" ]; then
> + if echo "$target" | grep -q "generic-fuzz-"; then
> ln $base_copy \
> "$DEST_DIR/qemu-fuzz-i386-target-$target"
> fi
> --
> 2.27.0
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] fuzz: only use generic-fuzz targets on oss-fuzz
2022-06-22 16:03 ` Darren Kenny
@ 2022-06-22 16:28 ` Alexander Bulekov
2022-06-22 16:38 ` Darren Kenny
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Bulekov @ 2022-06-22 16:28 UTC (permalink / raw)
To: Darren Kenny
Cc: qemu-devel, Paolo Bonzini, Bandan Das, Stefan Hajnoczi,
Thomas Huth, Qiuhao Li
On 220622 1703, Darren Kenny wrote:
> Hi Alex,
>
> This looks good to me, so:
>
> Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
>
> But, if it is at all possible to use Bash glob in a '[[ ... ]]' test
> such as:
>
> if [[ $target == generic-fuzz-* ]]; then
>
> that might read better - but it seems the default is that we don't
> assume that, or am I wrong? (This is probably a question for others on
> the CC-list)
That sounds good to me. Should we change the script to #!/bin/bash, to
be safe?
-Alex
>
> Thanks,
>
> Darren.
>
> On Wednesday, 2022-06-22 at 11:50:28 -04, Alexander Bulekov wrote:
> > The non-generic-fuzz targets often time-out, or run out of memory.
> > Additionally, they create unreproducible bug-reports. It is possible
> > that this is resulting in failing coverage-reports on OSS-Fuzz. In the
> > future, these test-cases should be fixed, or removed.
> >
> > Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
> > ---
> > scripts/oss-fuzz/build.sh | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/scripts/oss-fuzz/build.sh b/scripts/oss-fuzz/build.sh
> > index 98b56e0521..d8b4446d24 100755
> > --- a/scripts/oss-fuzz/build.sh
> > +++ b/scripts/oss-fuzz/build.sh
> > @@ -105,7 +105,7 @@ do
> > # to be configured. We have some generic-fuzz-{pc-q35, floppy, ...} targets
> > # that are thin wrappers around this target that set the required
> > # environment variables according to predefined configs.
> > - if [ "$target" != "generic-fuzz" ]; then
> > + if echo "$target" | grep -q "generic-fuzz-"; then
> > ln $base_copy \
> > "$DEST_DIR/qemu-fuzz-i386-target-$target"
> > fi
> > --
> > 2.27.0
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] fuzz: only use generic-fuzz targets on oss-fuzz
2022-06-22 16:28 ` Alexander Bulekov
@ 2022-06-22 16:38 ` Darren Kenny
2022-06-23 6:14 ` Thomas Huth
0 siblings, 1 reply; 5+ messages in thread
From: Darren Kenny @ 2022-06-22 16:38 UTC (permalink / raw)
To: Alexander Bulekov
Cc: qemu-devel, Paolo Bonzini, Bandan Das, Stefan Hajnoczi,
Thomas Huth, Qiuhao Li
On Wednesday, 2022-06-22 at 12:28:40 -04, Alexander Bulekov wrote:
> On 220622 1703, Darren Kenny wrote:
>> Hi Alex,
>>
>> This looks good to me, so:
>>
>> Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
>>
>> But, if it is at all possible to use Bash glob in a '[[ ... ]]' test
>> such as:
>>
>> if [[ $target == generic-fuzz-* ]]; then
>>
>> that might read better - but it seems the default is that we don't
>> assume that, or am I wrong? (This is probably a question for others on
>> the CC-list)
>
> That sounds good to me. Should we change the script to #!/bin/bash, to
> be safe?
If it is acceptable to use the '[[ ... ]]' syntax then you'd definitely
want to ensure that it is bash that is used.
Thanks,
Darren.
> -Alex
>
>>
>> Thanks,
>>
>> Darren.
>>
>> On Wednesday, 2022-06-22 at 11:50:28 -04, Alexander Bulekov wrote:
>> > The non-generic-fuzz targets often time-out, or run out of memory.
>> > Additionally, they create unreproducible bug-reports. It is possible
>> > that this is resulting in failing coverage-reports on OSS-Fuzz. In the
>> > future, these test-cases should be fixed, or removed.
>> >
>> > Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
>> > ---
>> > scripts/oss-fuzz/build.sh | 2 +-
>> > 1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/scripts/oss-fuzz/build.sh b/scripts/oss-fuzz/build.sh
>> > index 98b56e0521..d8b4446d24 100755
>> > --- a/scripts/oss-fuzz/build.sh
>> > +++ b/scripts/oss-fuzz/build.sh
>> > @@ -105,7 +105,7 @@ do
>> > # to be configured. We have some generic-fuzz-{pc-q35, floppy, ...} targets
>> > # that are thin wrappers around this target that set the required
>> > # environment variables according to predefined configs.
>> > - if [ "$target" != "generic-fuzz" ]; then
>> > + if echo "$target" | grep -q "generic-fuzz-"; then
>> > ln $base_copy \
>> > "$DEST_DIR/qemu-fuzz-i386-target-$target"
>> > fi
>> > --
>> > 2.27.0
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] fuzz: only use generic-fuzz targets on oss-fuzz
2022-06-22 16:38 ` Darren Kenny
@ 2022-06-23 6:14 ` Thomas Huth
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2022-06-23 6:14 UTC (permalink / raw)
To: Darren Kenny, Alexander Bulekov
Cc: qemu-devel, Paolo Bonzini, Bandan Das, Stefan Hajnoczi, Qiuhao Li
On 22/06/2022 18.38, Darren Kenny wrote:
> On Wednesday, 2022-06-22 at 12:28:40 -04, Alexander Bulekov wrote:
>> On 220622 1703, Darren Kenny wrote:
>>> Hi Alex,
>>>
>>> This looks good to me, so:
>>>
>>> Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
>>>
>>> But, if it is at all possible to use Bash glob in a '[[ ... ]]' test
>>> such as:
>>>
>>> if [[ $target == generic-fuzz-* ]]; then
>>>
>>> that might read better - but it seems the default is that we don't
>>> assume that, or am I wrong? (This is probably a question for others on
>>> the CC-list)
>>
>> That sounds good to me. Should we change the script to #!/bin/bash, to
>> be safe?
>
> If it is acceptable to use the '[[ ... ]]' syntax then you'd definitely
> want to ensure that it is bash that is used.
This is not a script that has to run on arbitrary host types, so I think
it's OK to change the shebang line to use bash here.
Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-06-23 6:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-22 15:50 [PATCH] fuzz: only use generic-fuzz targets on oss-fuzz Alexander Bulekov
2022-06-22 16:03 ` Darren Kenny
2022-06-22 16:28 ` Alexander Bulekov
2022-06-22 16:38 ` Darren Kenny
2022-06-23 6:14 ` Thomas Huth
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).