Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1230385

Re: [PATCH] generic syscalls: wire up userfaultfd syscall

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Will Deacon <will.deacon@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] generic syscalls: wire up userfaultfd syscall
Date Tue, 22 Sep 2015 18:00:02 +0200
Message-ID <qby94-1o7-29@gated-at.bofh.it> (permalink)
References <qbtsJ-37w-7@gated-at.bofh.it>
X-Original-To Andre Przywara <andre.przywara@arm.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 39
Organization linux.* mail to news gateway
X-Original-Cc Arnd Bergmann <arnd@arndb.de>, "linux-arch@vger.kernel.org" <linux-arch@vger.kernel.org>, "linux-api@vger.kernel.org" <linux-api@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Catalin Marinas <Catalin.Marinas@arm.com>
X-Original-Date Tue, 22 Sep 2015 16:52:52 +0100
X-Original-Message-ID <20150922155251.GJ7356@arm.com>
X-Original-References <1442919139-18027-1-git-send-email-andre.przywara@arm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1230385

Show key headers only | View raw


On Tue, Sep 22, 2015 at 11:52:19AM +0100, Andre Przywara wrote:
> Enable the new userfaultfd syscall in the generic syscall table.
> Briefly tested on arm64 with the selftest from the tools directory.

Can you update the selftest too, please? Last time I looked at that it had
typo for the powerpc check and looked pretty unloved...

Will

> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> ---
>  include/uapi/asm-generic/unistd.h | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h
> index 8da542a..82c91bc 100644
> --- a/include/uapi/asm-generic/unistd.h
> +++ b/include/uapi/asm-generic/unistd.h
> @@ -711,9 +711,11 @@ __SYSCALL(__NR_bpf, sys_bpf)
>  __SC_COMP(__NR_execveat, sys_execveat, compat_sys_execveat)
>  #define __NR_membarrier 282
>  __SYSCALL(__NR_membarrier, sys_membarrier)
> +#define __NR_userfaultfd 283
> +__SYSCALL(__NR_userfaultfd, sys_userfaultfd)
>  
>  #undef __NR_syscalls
> -#define __NR_syscalls 283
> +#define __NR_syscalls 284
>  
>  /*
>   * All syscalls below here should go away really,
> -- 
> 2.5.1
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] generic syscalls: wire up userfaultfd syscall Andre Przywara <andre.przywara@arm.com> - 2015-09-22 13:00 +0200
  Re: [PATCH] generic syscalls: wire up userfaultfd syscall Will Deacon <will.deacon@arm.com> - 2015-09-22 18:00 +0200
    Re: [PATCH] generic syscalls: wire up userfaultfd syscall Andre Przywara <andre.przywara@arm.com> - 2015-09-22 19:00 +0200

csiph-web