On 08/07/2020 22.01, Alexander Bulekov wrote: > In 45222b9a90, I fixed a broken check for rcu_enable_atfork introduced > in d6919e4cb6. I added a call to rcu_enable_atfork after the > call to qemu_init in fuzz.c, but forgot to include the corresponding > header, breaking --enable-fuzzing --enable-werror builds. > > Fixes: 45222b9a90 ("fuzz: fix broken qtest check at rcu_disable_atfork") > Signed-off-by: Alexander Bulekov <alx...@bu.edu> > --- > tests/qtest/fuzz/fuzz.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tests/qtest/fuzz/fuzz.c b/tests/qtest/fuzz/fuzz.c > index a36d9038e0..0b66e43409 100644 > --- a/tests/qtest/fuzz/fuzz.c > +++ b/tests/qtest/fuzz/fuzz.c > @@ -19,6 +19,7 @@ > #include "sysemu/runstate.h" > #include "sysemu/sysemu.h" > #include "qemu/main-loop.h" > +#include "qemu/rcu.h" > #include "tests/qtest/libqtest.h" > #include "tests/qtest/libqos/qgraph.h" > #include "fuzz.h"
D'oh, mea culpa, I also apparently did not properly compile test that patch :-( I think we need a CI job that at least compile tests the fuzzing code - I can look into that once Alex Bennée's current testing pull request has been merged. Alexander, is there also a way to run a fuzzer just for some few minutes? E.g. a fuzzing test that finishes quickly, or an option to limit the time that a test is running? If so, we could also add that quick test to the CI pipeline, to make sure that the fuzzer code does not only compile, but is also able to run (at least a little bit). For this patch here: Reviewed-by: Thomas Huth <th...@redhat.com>