[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 02/16] fuzz: Add general virtual-device fuzzer
From: |
Alexander Bulekov |
Subject: |
Re: [PATCH v5 02/16] fuzz: Add general virtual-device fuzzer |
Date: |
Wed, 21 Oct 2020 10:49:12 -0400 |
On 201021 1444, Paolo Bonzini wrote:
> On 21/10/20 03:07, Alexander Bulekov wrote:
> > +static GString *generic_fuzz_cmdline(FuzzTarget *t)
> ^^^^^^^
>
> > +{
> > + GString *cmd_line = g_string_new(TARGET_NAME);
> > + if (!getenv("QEMU_FUZZ_ARGS")) {
> > + usage();
> > + }
> > + g_string_append_printf(cmd_line, " -display none \
> > + -machine accel=qtest, \
> > + -m 512M %s ",
> > getenv("QEMU_FUZZ_ARGS"));
> > + return cmd_line;
> > +}
> > +
> > +static void register_generic_fuzz_targets(void)
> > +{
> > + fuzz_add_target(&(FuzzTarget){
> > + .name = "generic-fuzz",
> > + .description = "Fuzz based on any qemu command-line args. ",
> > + .get_init_cmdline = general_fuzz_cmdline,
> ^^^^^^^
>
> Does this actually compile?
>
> Paolo
Oops I fix-uped the general->generic change into the wrong commit. I'll
build-test after each commit.
-Alex
>
> > + .pre_fuzz = general_pre_fuzz,
> > + .fuzz = general_fuzz});
>
- [PATCH v5 00/16] Add a Generic Virtual Device Fuzzer, Alexander Bulekov, 2020/10/20
- [PATCH v5 01/16] memory: Add FlatView foreach function, Alexander Bulekov, 2020/10/20
- [PATCH v5 02/16] fuzz: Add general virtual-device fuzzer, Alexander Bulekov, 2020/10/20
- [PATCH v5 03/16] fuzz: Add PCI features to the general fuzzer, Alexander Bulekov, 2020/10/20
- [PATCH v5 04/16] fuzz: Add DMA support to the generic-fuzzer, Alexander Bulekov, 2020/10/20
- [PATCH v5 05/16] fuzz: Declare DMA Read callback function, Alexander Bulekov, 2020/10/20
- [PATCH v5 06/16] fuzz: Add fuzzer callbacks to DMA-read functions, Alexander Bulekov, 2020/10/20
- [PATCH v5 07/16] fuzz: Add support for custom crossover functions, Alexander Bulekov, 2020/10/20
- [PATCH v5 08/16] fuzz: add a DISABLE_PCI op to general-fuzzer, Alexander Bulekov, 2020/10/20
- [PATCH v5 09/16] fuzz: add a crossover function to generic-fuzzer, Alexander Bulekov, 2020/10/20
- [PATCH v5 10/16] scripts/oss-fuzz: Add script to reorder a general-fuzzer trace, Alexander Bulekov, 2020/10/20
- [PATCH v5 11/16] scripts/oss-fuzz: Add crash trace minimization script, Alexander Bulekov, 2020/10/20
- [PATCH v5 12/16] fuzz: Add instructions for using general-fuzz, Alexander Bulekov, 2020/10/20