qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests/qtest/fuzz: Add generic fuzzer for pcie-root-port
@ 2025-10-06 22:26 Navid Emamdoost
  2025-10-07 13:33 ` Alexander Bulekov
  0 siblings, 1 reply; 2+ messages in thread
From: Navid Emamdoost @ 2025-10-06 22:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: navidem, zsm, Alexander Bulekov, Paolo Bonzini, Bandan Das,
	Stefan Hajnoczi, Fabiano Rosas, Darren Kenny, Qiuhao Li,
	Laurent Vivier

Add a new generic fuzz target for the 'pcie-root-port' device. This
allows the generic fuzzer to directly target the device's interfaces,
which is not sufficiently covered by existing fuzz targets.

---

This new target significantly improves code coverage for the PCIe Root
Port implementation. The baseline coverage shown below was generated by
running all existing fuzz targets with the oss-fuzz corpus.

File                     New Target      Baseline       Change
-----------------------------------------------------------------
pcie_root_port.c         67.7% (86/127)  10.2% (13/127)  +73 lines
gen_pcie_root_port.c     68.2% (45/66)   28.8% (19/66)   +26 lines

Signed-off-by: Navid Emamdoost <navidem@google.com>
---
 tests/qtest/fuzz/generic_fuzz_configs.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/qtest/fuzz/generic_fuzz_configs.h b/tests/qtest/fuzz/generic_fuzz_configs.h
index ef0ad95712..fd2ae47ca4 100644
--- a/tests/qtest/fuzz/generic_fuzz_configs.h
+++ b/tests/qtest/fuzz/generic_fuzz_configs.h
@@ -247,6 +247,10 @@ const generic_fuzz_config predefined_configs[] = {
         .args = "-machine q35 -nodefaults "
         "-parallel file:/dev/null",
         .objects = "parallel*",
+    },{
+        .name = "pcie-root-port",
+        .args = "-machine q35 -nodefaults -device pcie-root-port",
+        .objects = "pcie-root*",
     }
 };
 
-- 
2.51.0.618.g983fd99d29-goog



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tests/qtest/fuzz: Add generic fuzzer for pcie-root-port
  2025-10-06 22:26 [PATCH] tests/qtest/fuzz: Add generic fuzzer for pcie-root-port Navid Emamdoost
@ 2025-10-07 13:33 ` Alexander Bulekov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Bulekov @ 2025-10-07 13:33 UTC (permalink / raw)
  To: Navid Emamdoost
  Cc: qemu-devel, zsm, Paolo Bonzini, Bandan Das, Stefan Hajnoczi,
	Fabiano Rosas, Darren Kenny, Qiuhao Li, Laurent Vivier

On 251006 2226, Navid Emamdoost wrote:
> Add a new generic fuzz target for the 'pcie-root-port' device. This
> allows the generic fuzzer to directly target the device's interfaces,
> which is not sufficiently covered by existing fuzz targets.
>
> ---
>
> This new target significantly improves code coverage for the PCIe Root
> Port implementation. The baseline coverage shown below was generated by
> running all existing fuzz targets with the oss-fuzz corpus.
>
> File                     New Target      Baseline       Change
> -----------------------------------------------------------------
> pcie_root_port.c         67.7% (86/127)  10.2% (13/127)  +73 lines
> gen_pcie_root_port.c     68.2% (45/66)   28.8% (19/66)   +26 lines
>
> Signed-off-by: Navid Emamdoost <navidem@google.com>

Reviewed-by: Alexander Bulekov <alxndr@bu.edu>

Thank you

> ---
>  tests/qtest/fuzz/generic_fuzz_configs.h | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/tests/qtest/fuzz/generic_fuzz_configs.h b/tests/qtest/fuzz/generic_fuzz_configs.h
> index ef0ad95712..fd2ae47ca4 100644
> --- a/tests/qtest/fuzz/generic_fuzz_configs.h
> +++ b/tests/qtest/fuzz/generic_fuzz_configs.h
> @@ -247,6 +247,10 @@ const generic_fuzz_config predefined_configs[] = {
>          .args = "-machine q35 -nodefaults "
>          "-parallel file:/dev/null",
>          .objects = "parallel*",
> +    },{
> +        .name = "pcie-root-port",
> +        .args = "-machine q35 -nodefaults -device pcie-root-port",
> +        .objects = "pcie-root*",
>      }
>  };
>
> --
> 2.51.0.618.g983fd99d29-goog
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-10-07 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 22:26 [PATCH] tests/qtest/fuzz: Add generic fuzzer for pcie-root-port Navid Emamdoost
2025-10-07 13:33 ` Alexander Bulekov

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).