From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Alexander Bulekov <alxndr@bu.edu>,
qemu-devel@nongnu.org,
Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>,
Laurent Vivier <lvivier@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Thomas Huth <thuth@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>,
Dmitry Fleytman <dmitry.fleytman@gmail.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
Stefan Weil <sw@weilnetz.de>, Jason Wang <jasowang@redhat.com>,
Bandan Das <bsd@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [PATCH] fuzz: Add more i386 configurations for fuzzing
Date: Thu, 3 Dec 2020 10:45:32 +0100 [thread overview]
Message-ID: <7fbd9ca0-f740-a988-e2a7-54c427fbad3b@redhat.com> (raw)
In-Reply-To: <20201202164002.sot3byy2jesllmlb@mozz.bu.edu>
On 12/2/20 5:40 PM, Alexander Bulekov wrote:
> On 201123 1343, Alexander Bulekov wrote:
>> This adds configurations for fuzzing the following devices on oss-fuzz:
>>
...
>> I have little context for how useful these configurations are for
>> fuzzing. I appreciate if you can Ack/Nack them or provide feedback if
>> the devices should be configured differently. Of course, if you think
>> we should be fuzzing some additional device configurations, you can also
>> submit a patch adding the necessary lines to this generic_fuzz_configs.h
>> file.
>> Thanks
>> -Alex
>>
>
> Ping. We could just add all of these configurations and, later, remove
> any that produce too many useless reports.
Not a Nack, but I'd rather enhance qtest coverage by adding
these configs via <libqos/qgraph.h>, and then consume this
with tests/qtest/fuzz/qos_fuzz.c.
>> tests/qtest/fuzz/generic_fuzz_configs.h | 80 +++++++++++++++++++++++++
>> 1 file changed, 80 insertions(+)
>>
>> diff --git a/tests/qtest/fuzz/generic_fuzz_configs.h b/tests/qtest/fuzz/generic_fuzz_configs.h
>> index c4d925f9e6..0b1fe0f836 100644
>> --- a/tests/qtest/fuzz/generic_fuzz_configs.h
>> +++ b/tests/qtest/fuzz/generic_fuzz_configs.h
>> @@ -115,6 +115,86 @@ const generic_fuzz_config predefined_configs[] = {
>> .name = "pc-q35",
>> .args = "-machine q35",
>> .objects = "*",
>> + },{
>> + .name = "vmxnet3",
>> + .args = "-machine q35 -nodefaults "
>> + "-device vmxnet3,netdev=net0 -netdev user,id=net0",
>> + .objects = "vmxnet3"
>> + },{
>> + .name = "ne2k_pci",
>> + .args = "-machine q35 -nodefaults "
>> + "-device ne2k_pci,netdev=net0 -netdev user,id=net0",
>> + .objects = "ne2k*"
>> + },{
>> + .name = "pcnet",
>> + .args = "-machine q35 -nodefaults "
>> + "-device pcnet,netdev=net0 -netdev user,id=net0",
>> + .objects = "pcnet"
>> + },{
>> + .name = "rtl8139",
>> + .args = "-machine q35 -nodefaults "
>> + "-device rtl8139,netdev=net0 -netdev user,id=net0",
>> + .objects = "rtl8139"
>> + },{
>> + .name = "i82550",
>> + .args = "-machine q35 -nodefaults "
>> + "-device i82550,netdev=net0 -netdev user,id=net0",
>> + .objects = "eepro*"
>> + },{
>> + .name = "sdhci-v3",
>> + .args = "-nodefaults -device sdhci-pci,sd-spec-version=3 "
>> + "-device sd-card,drive=mydrive "
>> + "-drive if=sd,index=0,file=null-co://,format=raw,id=mydrive -nographic",
>> + .objects = "sd*"
>> + },{
>> + .name = "ehci",
>> + .args = "-machine q35 -nodefaults "
>> + "-device ich9-usb-ehci1,bus=pcie.0,addr=1d.7,"
>> + "multifunction=on,id=ich9-ehci-1 "
>> + "-device ich9-usb-uhci1,bus=pcie.0,addr=1d.0,"
>> + "multifunction=on,masterbus=ich9-ehci-1.0,firstport=0 "
>> + "-device ich9-usb-uhci2,bus=pcie.0,addr=1d.1,"
>> + "multifunction=on,masterbus=ich9-ehci-1.0,firstport=2 "
>> + "-device ich9-usb-uhci3,bus=pcie.0,addr=1d.2,"
>> + "multifunction=on,masterbus=ich9-ehci-1.0,firstport=4 "
>> + "-drive if=none,id=usbcdrom,media=cdrom "
>> + "-device usb-tablet,bus=ich9-ehci-1.0,port=1,usb_version=1 "
>> + "-device usb-storage,bus=ich9-ehci-1.0,port=2,drive=usbcdrom",
>> + .objects = "*usb* *hci*",
>> + },{
>> + .name = "ohci",
>> + .args = "-machine q35 -nodefaults -device pci-ohci -device usb-kbd",
>> + .objects = "*usb* *ohci*",
>> + },{
>> + .name = "megaraid",
>> + .args = "-machine q35 -nodefaults -device megasas -device scsi-cd,drive=null0 "
>> + "-blockdev driver=null-co,read-zeroes=on,node-name=null0",
>> + .objects = "megasas*",
>> + },{
>> + .name = "ac97",
>> + .args = "-machine q35 -nodefaults "
>> + "-device ac97,audiodev=snd0 -audiodev none,id=snd0 -nodefaults",
>> + .objects = "ac97*",
>> + },{
>> + .name = "cs4231a",
>> + .args = "-machine q35 -nodefaults "
>> + "-device cs4231a,audiodev=snd0 -audiodev none,id=snd0 -nodefaults",
>> + .objects = "cs4231a* i8257*",
>> + },{
>> + .name = "es1370",
>> + .args = "-machine q35 -nodefaults "
>> + "-device es1370,audiodev=snd0 -audiodev none,id=snd0 -nodefaults",
>> + .objects = "es1370*",
>> + },{
>> + .name = "sb16",
>> + .args = "-machine q35 -nodefaults "
>> + "-device sb16,audiodev=snd0 -audiodev none,id=snd0 -nodefaults",
>> + .objects = "sb16* i8257*",
>> + },{
>> + .name = "parallel",
>> + .args = "-machine q35 -nodefaults "
>> + "-parallel file:/dev/null",
>> + .objects = "parallel*",
>> }
>> };
>>
>> --
>> 2.28.0
>>
>
next prev parent reply other threads:[~2020-12-03 9:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-23 18:43 [PATCH] fuzz: Add more i386 configurations for fuzzing Alexander Bulekov
2020-12-02 16:40 ` Alexander Bulekov
2020-12-03 9:45 ` Philippe Mathieu-Daudé [this message]
2020-12-15 19:18 ` Alexander Bulekov
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=7fbd9ca0-f740-a988-e2a7-54c427fbad3b@redhat.com \
--to=philmd@redhat.com \
--cc=alxndr@bu.edu \
--cc=bsd@redhat.com \
--cc=dmitry.fleytman@gmail.com \
--cc=e.emanuelegiuseppe@gmail.com \
--cc=hare@suse.com \
--cc=jasowang@redhat.com \
--cc=kraxel@redhat.com \
--cc=lvivier@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=sw@weilnetz.de \
--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).