From: Arnaldo Carvalho de Melo <acme@redhat.com>
To: "Sébastien Boisvert" <sboisvert@gydle.com>
Cc: Hongxu Jia <hongxu.jia@windriver.com>,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
kim.phillips@arm.com, brueckner@linux.ibm.com,
alexander.shishkin@linux.intel.com, jolsa@redhat.com,
mpe@ellerman.id.au, peterz@infradead.org,
ravi.bangoria@linux.vnet.ibm.com, tmricht@linux.vnet.ibm.com,
namhyung@kernel.org
Subject: Re: [PATCH V2] perf arm64: Fix generate system call table failed with /tmp mounted with noexec
Date: Fri, 19 Oct 2018 12:30:00 -0300 [thread overview]
Message-ID: <20181019153000.GC5565@redhat.com> (raw)
In-Reply-To: <9da3ccbf-ec36-c676-7472-fe7d642cd7e0@gydle.com>
Em Fri, Oct 19, 2018 at 11:22:38AM -0400, Sébastien Boisvert escreveu:
>
>
> On 2018-10-18 10:16 p.m., Hongxu Jia wrote:
> > When /tmp is mounted with noexec, mksyscalltbl fails.
> > [snip]
> > |perf-1.0/tools/perf/arch/arm64/entry/syscalls//mksyscalltbl:
> > /tmp/create-table-6VGPSt: Permission denied
> > [snip]
> >
> > Add variable TMPDIR as prefix dir of the temporary file, if it is set,
> > replace default /tmp
> >
> > Remove extra slash from `syscalls//mksyscalltbl'
> >
> > Fixes: 2b5882435606 ("perf arm64: Generate system call table from asm/unistd.h")
> >
> > Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> > ---
> > tools/perf/arch/arm64/Makefile | 2 +-
> > tools/perf/arch/arm64/entry/syscalls/mksyscalltbl | 2 +-
> > 2 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/tools/perf/arch/arm64/Makefile b/tools/perf/arch/arm64/Makefile
> > index dbef716..bc2a284 100644
> > --- a/tools/perf/arch/arm64/Makefile
> > +++ b/tools/perf/arch/arm64/Makefile
> > @@ -13,7 +13,7 @@ out := $(OUTPUT)arch/arm64/include/generated/asm
> > header := $(out)/syscalls.c
> > incpath := $(srctree)/tools
> > sysdef := $(srctree)/tools/arch/arm64/include/uapi/asm/unistd.h
> > -sysprf := $(srctree)/tools/perf/arch/arm64/entry/syscalls/
> > +sysprf := $(srctree)/tools/perf/arch/arm64/entry/syscalls
>
> Should this appear in different patch, since it is unrelated to adding TMPDIR support ?
Exactly.
So, to move forward, just send a new patch specifically for this part,
i.e. the removal of the harmless but unneeded extra slash, the other
part I already took care of.
- Arnaldo
> Thanks
>
> > systbl := $(sysprf)/mksyscalltbl
> >
> > # Create output directory if not already present
> > diff --git a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl
> > index 2dbb8cad..c88fd32 100755
> > --- a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl
> > +++ b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl
> > @@ -23,7 +23,7 @@ create_table_from_c()
> > {
> > local sc nr last_sc
> >
> > - create_table_exe=`mktemp /tmp/create-table-XXXXXX`
> > + create_table_exe=`mktemp ${TMPDIR:-/tmp}/create-table-XXXXXX`
> >
> > {
> >
> >
next prev parent reply other threads:[~2018-10-19 15:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1c6964d0-a7d2-83ef-16f2-bdf349e3f0af@gydle.com>
2018-10-19 2:16 ` [PATCH V2] perf arm64: Fix generate system call table failed with /tmp mounted with noexec Hongxu Jia
2018-10-19 2:16 ` Hongxu Jia
2018-10-19 15:22 ` Sébastien Boisvert
2018-10-19 15:30 ` Arnaldo Carvalho de Melo [this message]
2018-10-19 15:36 ` Hongxu Jia
2018-10-19 15:36 ` Hongxu Jia
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=20181019153000.GC5565@redhat.com \
--to=acme@redhat.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=brueckner@linux.ibm.com \
--cc=hongxu.jia@windriver.com \
--cc=jolsa@redhat.com \
--cc=kim.phillips@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mpe@ellerman.id.au \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=ravi.bangoria@linux.vnet.ibm.com \
--cc=sboisvert@gydle.com \
--cc=tmricht@linux.vnet.ibm.com \
/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.