lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200116071750.0bde391266ea7637ee041d8c@kernel.org>
Date:   Thu, 16 Jan 2020 07:17:50 +0900
From:   Masami Hiramatsu <mhiramat@...nel.org>
To:     Alexei Starovoitov <alexei.starovoitov@...il.com>
Cc:     Shuah Khan <shuah@...nel.org>, linux-kselftest@...r.kernel.org,
        linux-kernel@...r.kernel.org, jaswinder.singh@...aro.org,
        bpf@...r.kernel.org, daniel@...earbox.net
Subject: Re: [BUGFIX PATCH] selftests: Fix pthread link option

On Wed, 15 Jan 2020 11:25:30 -0800
Alexei Starovoitov <alexei.starovoitov@...il.com> wrote:

> On Wed, Jan 15, 2020 at 06:16:07PM +0900, Masami Hiramatsu wrote:
> > To support pthread correctly, it is better to use -pthread
> > instead of -lpthread.
> > 
> > Signed-off-by: Masami Hiramatsu <mhiramat@...nel.org>
> > ---
> >  tools/testing/selftests/bpf/Makefile               |    2 +-
> >  tools/testing/selftests/membarrier/Makefile        |    2 +-
> >  tools/testing/selftests/mqueue/Makefile            |    2 +-
> >  tools/testing/selftests/net/Makefile               |    4 ++--
> >  .../testing/selftests/powerpc/benchmarks/Makefile  |    4 ++--
> >  tools/testing/selftests/powerpc/dscr/Makefile      |    2 +-
> >  tools/testing/selftests/powerpc/mm/Makefile        |    2 +-
> >  tools/testing/selftests/rseq/Makefile              |    2 +-
> >  tools/testing/selftests/rtc/Makefile               |    2 +-
> >  tools/testing/selftests/seccomp/Makefile           |    2 +-
> >  tools/testing/selftests/timers/Makefile            |    2 +-
> >  tools/testing/selftests/vm/Makefile                |    2 +-
> >  12 files changed, 14 insertions(+), 14 deletions(-)
> > 
> > diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
> > index e2fd6f8d579c..419f58c53d12 100644
> > --- a/tools/testing/selftests/bpf/Makefile
> > +++ b/tools/testing/selftests/bpf/Makefile
> > @@ -22,7 +22,7 @@ CFLAGS += -g -Wall -O2 $(GENFLAGS) -I$(APIDIR) -I$(LIBDIR) -I$(BPFDIR)	\
> >  	  -I$(GENDIR) -I$(TOOLSDIR) -I$(CURDIR)				\
> >  	  -Dbpf_prog_load=bpf_prog_test_load				\
> >  	  -Dbpf_load_program=bpf_test_load_program
> > -LDLIBS += -lcap -lelf -lrt -lpthread
> > +LDLIBS += -lcap -lelf -lrt -pthread
> 
> Please split this bit into separate patch and send it to bpf@...r targeting
> bpf-next. selftests/bpf are going through a lot of changes and I'd like to
> avoid any chance of conflicts.

OK, I'll split it.

Thank you,


-- 
Masami Hiramatsu <mhiramat@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ