Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1517459
| From | Dave Hansen <dave.hansen@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS |
| Date | 2016-11-08 19:40 +0100 |
| Message-ID | <sBjtp-4Ab-43@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <sz9eN-1Ud-31@gated-at.bofh.it> <szWpb-8rf-3@gated-at.bofh.it> <sBb2O-7xW-31@gated-at.bofh.it> <sBc8x-8ek-3@gated-at.bofh.it> <sBcLf-eL-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 11/08/2016 03:24 AM, Heiko Carstens wrote:
> Something like this:
>
> diff --git a/mm/mprotect.c b/mm/mprotect.c
> index 11936526b08b..9fb86b107e49 100644
> --- a/mm/mprotect.c
> +++ b/mm/mprotect.c
> @@ -484,6 +484,8 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
> return do_mprotect_pkey(start, len, prot, -1);
> }
>
> +#ifdef CONFIG_ARCH_HAS_PKEYS
> +
> SYSCALL_DEFINE4(pkey_mprotect, unsigned long, start, size_t, len,
> unsigned long, prot, int, pkey)
> {
> @@ -534,3 +536,4 @@ SYSCALL_DEFINE1(pkey_free, int, pkey)
> */
> return ret;
> }
> +#endif /* CONFIG_ARCH_HAS_PKEYS */
That's fine with me, fwiw. It ends up meaning that the config option
changes whether we get -ENOSPC vs. -ENOSYS, so the x86_32 behavior will
change, for instance. But, I _think_ that's OK.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS Mark Rutland <mark.rutland@arm.com> - 2016-11-01 01:10 +0100
Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS Dave Hansen <dave.hansen@linux.intel.com> - 2016-11-02 20:20 +0100
Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS Mark Rutland <mark.rutland@arm.com> - 2016-11-05 00:50 +0100
Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-11-08 10:40 +0100
Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-11-08 11:50 +0100
Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-11-08 12:30 +0100
Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS Dave Hansen <dave.hansen@linux.intel.com> - 2016-11-08 19:40 +0100
Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS Arnd Bergmann <arnd@arndb.de> - 2016-11-08 12:50 +0100
Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-11-08 13:10 +0100
csiph-web