Re: [RFC PATCH v2] xen: add libafl-qemu fuzzer support

2025-04-30 Thread Volodymyr Babchuk
Jan Beulich writes: > On 30.04.2025 04:17, Volodymyr Babchuk wrote: >> Julien Grall writes: --- /dev/null +++ b/xen/arch/arm/include/asm/libafl_qemu_defs.h @@ -0,0 +1,37 @@ >>> >>> Missing license. Also, is this file taken from somewhere? >>> >> >> I add MIT license, as libafl is

Re: [RFC PATCH v2] xen: add libafl-qemu fuzzer support

2025-04-29 Thread Jan Beulich
On 30.04.2025 04:17, Volodymyr Babchuk wrote: > Julien Grall writes: >>> --- /dev/null >>> +++ b/xen/arch/arm/include/asm/libafl_qemu_defs.h >>> @@ -0,0 +1,37 @@ >> >> Missing license. Also, is this file taken from somewhere? >> > > I add MIT license, as libafl is dual licensed under Apache-2 and

Re: [RFC PATCH v2] xen: add libafl-qemu fuzzer support

2025-04-29 Thread Volodymyr Babchuk
Hi Julien, Julien Grall writes: [...] >> diff --git a/xen/arch/arm/include/asm/libafl_qemu.h >> b/xen/arch/arm/include/asm/libafl_qemu.h >> new file mode 100644 >> index 00..b90cf48b9a >> --- /dev/null >> +++ b/xen/arch/arm/include/asm/libafl_qemu.h >> @@ -0,0 +1,54 @@ >> +#ifndef LI

Re: [RFC PATCH v2] xen: add libafl-qemu fuzzer support

2025-04-08 Thread Jan Beulich
On 15.03.2025 01:36, Volodymyr Babchuk wrote: > LibAFL, which is a part of AFL++ project is a instrument that allows > us to perform fuzzing on beremetal code (Xen hypervisor in this case) > using QEMU as an emulator. It employs QEMU's ability to create > snapshots to run many tests relatively quic

Re: [RFC PATCH v2] xen: add libafl-qemu fuzzer support

2025-03-21 Thread Julien Grall
Hi Stefano, On 21/03/2025 22:32, Stefano Stabellini wrote: As discussed, please add a wrapper with an empty implementation in the regular case and the call to libafl_qemu_end when the fuzzer is enabled. So that here it becomes just something like: fuzzer_success(); I was thinking the same

Re: [RFC PATCH v2] xen: add libafl-qemu fuzzer support

2025-03-21 Thread Julien Grall
Hi Volodymyr, On 15/03/2025 00:36, Volodymyr Babchuk wrote: LibAFL, which is a part of AFL++ project is a instrument that allows us to perform fuzzing on beremetal code (Xen hypervisor in this case) using QEMU as an emulator. It employs QEMU's ability to create snapshots to run many tests relati

Re: [RFC PATCH v2] xen: add libafl-qemu fuzzer support

2025-03-21 Thread Julien Grall
Hi Stefano, Volodymyr, On 21/03/2025 22:32, Stefano Stabellini wrote: diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c index b6860a7760..c7a51a1144 100644 --- a/xen/arch/arm/psci.c +++ b/xen/arch/arm/psci.c @@ -17,6 +17,7 @@ #include #include #include +#include /* * Whil

Re: [RFC PATCH v2] xen: add libafl-qemu fuzzer support

2025-03-21 Thread Stefano Stabellini
On Sat, 15 Mar 2025, Volodymyr Babchuk wrote: > LibAFL, which is a part of AFL++ project is a instrument that allows > us to perform fuzzing on beremetal code (Xen hypervisor in this case) > using QEMU as an emulator. It employs QEMU's ability to create > snapshots to run many tests relatively quic