[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160414164446.GI4584@arm.com>
Date: Thu, 14 Apr 2016 17:44:47 +0100
From: Will Deacon <will.deacon@....com>
To: Suzuki K Poulose <suzuki.poulose@....com>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
mark.rutland@....com, marc.zyngier@....com,
ynorov@...iumnetworks.com
Subject: Re: [PATCH v3 6/7] arm64: Add a wrapper for personality() syscall
On Thu, Mar 31, 2016 at 06:27:34PM +0100, Suzuki K Poulose wrote:
> In order to prevent setting PER_LINUX32 on systems without
> 32bit EL0 support, add a wrapper for personality() syscall.
>
> Tested-by: Yury Norov <ynorov@...iumnetworks.com>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@....com>
> ---
> arch/arm64/kernel/sys.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm64/kernel/sys.c b/arch/arm64/kernel/sys.c
> index 75151aa..817d860 100644
> --- a/arch/arm64/kernel/sys.c
> +++ b/arch/arm64/kernel/sys.c
> @@ -36,11 +36,17 @@ asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
> return sys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT);
> }
>
> +SYSCALL_DEFINE1(arm64_personality, unsigned int, personality)
> +{
> + return sys_personality(personality);
> +}
> +
> /*
> * Wrappers to pass the pt_regs argument.
> */
> asmlinkage long sys_rt_sigreturn_wrapper(void);
> #define sys_rt_sigreturn sys_rt_sigreturn_wrapper
> +#define sys_personality sys_arm64_personality
You can merge this in with the subsequent patch, since it doesn't do
anything on its own.
Will
Powered by blists - more mailing lists