diff mbox series

fuzz: add a am53c974 generic-fuzzer config

Message ID 20210314055637.5239-1-alxndr@bu.edu (mailing list archive)
State New, archived
Headers show
Series fuzz: add a am53c974 generic-fuzzer config | expand

Commit Message

Alexander Bulekov March 14, 2021, 5:56 a.m. UTC
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
---

Fuzzing this device might lead to better coverage over the general scsi
code.

 tests/qtest/fuzz/generic_fuzz_configs.h | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Darren Kenny March 15, 2021, 11:44 a.m. UTC | #1
On Sunday, 2021-03-14 at 00:56:37 -05, Alexander Bulekov wrote:
> Signed-off-by: Alexander Bulekov <alxndr@bu.edu>

Code-wise looks fine to me:

Reviewed-by: Darren Kenny <darren.kenny@oracle.com>

Thanks,

Darren

> ---
>
> Fuzzing this device might lead to better coverage over the general scsi
> code.
>
>  tests/qtest/fuzz/generic_fuzz_configs.h | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/tests/qtest/fuzz/generic_fuzz_configs.h b/tests/qtest/fuzz/generic_fuzz_configs.h
> index 5d599765c4..3f4f4d0ec5 100644
> --- a/tests/qtest/fuzz/generic_fuzz_configs.h
> +++ b/tests/qtest/fuzz/generic_fuzz_configs.h
> @@ -208,6 +208,12 @@ const generic_fuzz_config predefined_configs[] = {
>          .args = "-machine q35 -nodefaults -device megasas -device scsi-cd,drive=null0 "
>          "-blockdev driver=null-co,read-zeroes=on,node-name=null0",
>          .objects = "megasas*",
> +    },{
> +        .name = "am53c974",
> +        .args = "-device am53c974,id=scsi -device scsi-hd,drive=disk0 "
> +                 "-drive id=disk0,if=none,file=null-co://,format=raw "
> +                 "-nodefaults",
> +        .objects = "*esp* *scsi* *am53c974*",
>      },{
>          .name = "ac97",
>          .args = "-machine q35 -nodefaults "
> -- 
> 2.27.0
diff mbox series

Patch

diff --git a/tests/qtest/fuzz/generic_fuzz_configs.h b/tests/qtest/fuzz/generic_fuzz_configs.h
index 5d599765c4..3f4f4d0ec5 100644
--- a/tests/qtest/fuzz/generic_fuzz_configs.h
+++ b/tests/qtest/fuzz/generic_fuzz_configs.h
@@ -208,6 +208,12 @@  const generic_fuzz_config predefined_configs[] = {
         .args = "-machine q35 -nodefaults -device megasas -device scsi-cd,drive=null0 "
         "-blockdev driver=null-co,read-zeroes=on,node-name=null0",
         .objects = "megasas*",
+    },{
+        .name = "am53c974",
+        .args = "-device am53c974,id=scsi -device scsi-hd,drive=disk0 "
+                 "-drive id=disk0,if=none,file=null-co://,format=raw "
+                 "-nodefaults",
+        .objects = "*esp* *scsi* *am53c974*",
     },{
         .name = "ac97",
         .args = "-machine q35 -nodefaults "