From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [Automated-testing] [PATCH 1/2] Wrapper for Syzkaller reproducers
Date: Tue, 26 Nov 2019 13:42:43 +0100 [thread overview]
Message-ID: <20191126124243.GA10841@dell5510> (raw)
In-Reply-To: <87zhgjc4ie.fsf@rpws.prws.suse.cz>
Hi,
> >> +AC_ARG_WITH([syzkaller-repros],
> >> + [AC_HELP_STRING([--with-syzkaller-repros],
> >> + [compile and install Syzkaller reproducers (default=no)])],
> >> + [with_syzkaller_repros=$withval]
> > To strictly, the [action-if-not-given] should be added too?
> Were the other 'with' options updated recently to have that? I just
> copied this from the other options.
Yep, you'll just add
[with_syzkaller_repros=no]
(looking at the default off, probably safer for the start)
> >> diff --git a/testcases/kernel/Makefile b/testcases/kernel/Makefile
> >> index 3319b3163..0150cfb4f 100644
> >> --- a/testcases/kernel/Makefile
> >> +++ b/testcases/kernel/Makefile
> >> @@ -53,6 +53,7 @@ SUBDIRS += connectors \
> >> sched \
> >> security \
> >> sound \
> >> + syzkaller-repros \
> >> tracing \
> >> uevents \
> >> +# Some useful compiler flags for the LTP will cause problems with the
> >> +# syzkaller repros so the repros have seperate flags
> >> +SYZKALLER_CFLAGS ?= -pthread
> >> +SYZKALLER_REPROS = $(subst
> >> $(abs_top_srcdir),$(abs_top_builddir),$(SYZKALLER_REPROS_SRCS:.c=))
> >> +$(SYZKALLER_REPROS): %: %.c
> >> + -@if grep -q "__NR_mmap2" $^; then \
> >> + M32="-m32"; \
> > I got compiling errors on s390x:
> > gcc: error: unrecognized command line option ?-m32?; did you mean
> > ?-m31??
> I have only tried these on x86_64 so far and I think that is all we can
> support to begin with.
Maybe filter it out in testcases/kernel/Makefile with something like this:
ifneq (,$(filter $(HOST_CPU),x86 x86_64))
FILTER_OUT_DIRS += syzkaller-repros
endif
> > My other concern is syzkaller (I guess maybe) have some package
> > dependencies, and that will break the compiler phase on the embedded
> > system.
> This is true, the reproducers do have dependencies and it seems to vary
> (randomly view some of the C files). However this is one of the reasons
> why they are only installed if --with-syzkaller-repros is set.
Maybe later we manage to generate autotools config based on pkg-config.
Kind regards,
Petr
next prev parent reply other threads:[~2019-11-26 12:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-07 15:34 [LTP] [PATCH 0/2] LTP wrapper for Syzkaller reproducers Richard Palethorpe
2019-11-07 15:34 ` [LTP] [PATCH 1/2] Wrapper " Richard Palethorpe
2019-11-07 15:43 ` Dmitry Vyukov
2019-11-12 12:38 ` Li Wang
2019-11-12 14:00 ` Richard Palethorpe
2019-11-12 14:10 ` Li Wang
2019-11-13 6:27 ` Li Wang
2019-11-13 9:34 ` Richard Palethorpe
2019-11-26 8:18 ` Li Wang
2019-11-26 10:32 ` Richard Palethorpe
2019-11-26 12:42 ` Petr Vorel [this message]
2019-11-26 12:59 ` [LTP] [Automated-testing] " Petr Vorel
2019-11-07 15:34 ` [LTP] [PATCH 2/2] lib: Allow timeout coefficient < 1 Richard Palethorpe
2019-11-13 7:59 ` Petr Vorel
2019-11-14 13:59 ` Cyril Hrubis
2019-11-07 15:43 ` [LTP] [PATCH 0/2] LTP wrapper for Syzkaller reproducers Dmitry Vyukov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191126124243.GA10841@dell5510 \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.