[linux-yocto] [linux-yocto/linux-yocto-dev 4.18][PATCH] perf arm64: Fix generate system call table failed with /tmp mounted with noexec

Bruce Ashfield bruce.ashfield at windriver.com
Thu Oct 18 06:20:39 PDT 2018


I tried to apply this to 4.18, but the commit which creates
the issue is only in 4.19+

commit 2b5882435606c209ebc052230f03505ea477a252
Author: Kim Phillips <kim.phillips at arm.com>
Date:   Fri Jul 6 16:34:43 2018 -0500

     perf arm64: Generate system call table from asm/unistd.h


% git tag --contains 2b5882435606c209ebc052230f03505ea477a252
v4.19-rc1
v4.19-rc2
v4.19-rc3
v4.19-rc4
v4.19-rc5
v4.19-rc6
v4.19-rc7
v4.19-rc8

So I'll merge this to linux-yocto-dev, but the other linux-yocto
variants should be unaffected.

Bruce

On 10/18/18 5:12 AM, Hongxu Jia wrote:
> Which /tmp mounted with noexec, generate system call table failed.
> [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
> 
> Fixes: 2b5882435606 ("perf arm64: Generate system call table from asm/unistd.h")
> 
> Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
> ---
>   tools/perf/arch/arm64/entry/syscalls/mksyscalltbl | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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`
>   
>   	{
>   
> 



More information about the linux-yocto mailing list