[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/2] Add libfuzzer target to fuzz/x86_instruction_emulator


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
  • Date: Thu, 18 Jul 2024 08:35:05 -0400
  • Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=tklengyel.com; spf=pass smtp.mailfrom=tamas@xxxxxxxxxxxxx; dmarc=pass header.from=<tamas@xxxxxxxxxxxxx>
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1721306149; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=FRgdaSUZyLRQ3CEP0Nm1cYTilO/hWIfCThtWEAs/Pc8=; b=cuQx11HkDm5L+Y9MHhi9hQIWx++gIKko0xPnvs4p3Ma1ehI7ITxQSLjpF3v0wfLkvKqm0NIy+CU6X5fW+N+3xoqYxpKiqUYjC7U25PlVvvfzRLhp3WixwmTr3yg6XYfsbHcEIL570VicPNylEqdSHZmiYKp1Rdb1za8p+LWWNWg=
  • Arc-seal: i=1; a=rsa-sha256; t=1721306149; cv=none; d=zohomail.com; s=zohoarc; b=m3zpbycuyT4tdA4frOLQc1KUJnzxVxZBU3l+1loALEwkQdiM7E0Cr2/Rnoravrq1bgb7EAhzyTiFkEYIucR3aGuiWrsr7Dkqc08Xip1Cyb675SPLuVXQqSJi0FCKH1EHwojufKJox7Z2RWrmWuDBdR/6hiEzBWohYPv8KbmCzdU=
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony@xxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 18 Jul 2024 12:36:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu, Jul 18, 2024 at 7:03 AM Jan Beulich <jbeulich@xxxxxxxx> wrote:
>
> On 26.06.2024 00:47, Tamas K Lengyel wrote:
> > This target enables integration into oss-fuzz. Changing invalid input return
> > to -1 as values other then 0/-1 are reserved by libfuzzer.
>
> And existing behavior (for afl) is unaffected because there we (wrongly)
> ignore the return value altogether.
>
> > @@ -67,7 +70,8 @@ distclean: clean
> >
> >  .PHONY: clean
> >  clean:
> > -     rm -f *.a *.o $(DEPS_RM) afl-harness afl-harness-cov *.gcda *.gcno 
> > *.gcov
> > +     rm -f *.a *.o $(DEPS_RM) *.gcda *.gcno *.gcov \
> > +        afl-harness afl-harness-cov libfuzzer-harness
> >       rm -rf x86_emulate x86-emulate.c x86-emulate.h wrappers.c cpuid.c
>
> This is what I said for v1:
>
> "I'm inclined to suggest it's time to split this line (e.g. keeping all the
>  wildcard patterns together and moving the rest to a new rm invocation)."
>
> Could this really be misunderstood to mean anything other than
>
> clean:
>         rm -f *.a *.o $(DEPS_RM) *.gcda *.gcno *.gcov
>         rm -f afl-harness afl-harness-cov libfuzzer-harness
>         rm -rf x86_emulate x86-emulate.c x86-emulate.h wrappers.c cpuid.c
>
> ?

Evidently, yes.

> With that
> Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
> and I'm kind of okay making that adjustment myself while committing.

Thanks! That is appreciated.
Tamas



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.