From patchwork Fri May 31 19:12:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 10970671 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4943814C0 for ; Fri, 31 May 2019 19:23:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39B1E28BA9 for ; Fri, 31 May 2019 19:23:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D3D428D22; Fri, 31 May 2019 19:23:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF15528BA9 for ; Fri, 31 May 2019 19:23:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727276AbfEaTXw (ORCPT ); Fri, 31 May 2019 15:23:52 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44102 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727187AbfEaTXv (ORCPT ); Fri, 31 May 2019 15:23:51 -0400 Received: by mail-pg1-f196.google.com with SMTP id n2so4548745pgp.11 for ; Fri, 31 May 2019 12:23:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=hoDa1EoVZiT7Wkw8tpQ8ZdnhUm/f8Zh3zGc2U04HgkQ=; b=UwUa7R0UmLcODWMZ1cH1ObrJkyQ/7PUMYLAndY5VWboEVP7mM7G6DsMfe7qYTwIfiH LTIdbz+7GIAFsUbMbfchsqDw8EFJS1g6pW3TuYze5NDW0PdrtQxmN0slOwgIXpz01uyC FPA3duUgn9OEDJLB7sG+GpMAJ4VvdkPV5Map5mNJJeeTk6Jz5lvUsgmrNxdQBPTRTn75 HefiJCZU9nt5xXSllmfL0m8r0TgVyCpWTJDbCP9SeY3RD54mBzouQj7c9Jv1Edz+AniO KKb1wdISkJxljOc8S5r8qsGKhkG7cJsiEH7jVW3zX0erUrtj7XSh2FTOeEDDV6SwfMok 0tfg== X-Gm-Message-State: APjAAAX46fieTnVBIbxilc0GfecIufk/i4Wkgu3YP0sdlRob3MVjcL8J dE+d553zPeUhrOi6uvv5bN53Jw== X-Google-Smtp-Source: APXvYqwDdSFL7PzpLwvQOw94atoCEpoQ4xG/ZVsYwEVets4vEXAhhAUnBPue1jzZcGz3S4VsZQtyqQ== X-Received: by 2002:a63:31d8:: with SMTP id x207mr10539257pgx.403.1559330630266; Fri, 31 May 2019 12:23:50 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id o2sm5753489pgm.51.2019.05.31.12.23.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 12:23:49 -0700 (PDT) Subject: [PATCH 1/5] Non-functional cleanup of a "__user * filename" Date: Fri, 31 May 2019 12:12:00 -0700 Message-Id: <20190531191204.4044-2-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190531191204.4044-1-palmer@sifive.com> References: <20190531191204.4044-1-palmer@sifive.com> MIME-Version: 1.0 Cc: linux-arch@vger.kernel.org, x86@kernel.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, Arnd Bergmann , Palmer Dabbelt From: Palmer Dabbelt To: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The next patch defines a very similar interface, which I copied from this definition. Since I'm touching it anyway I don't see any reason not to just go fix this one up. Signed-off-by: Palmer Dabbelt --- include/linux/syscalls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index e446806a561f..396871b218f4 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -433,7 +433,7 @@ asmlinkage long sys_chdir(const char __user *filename); asmlinkage long sys_fchdir(unsigned int fd); asmlinkage long sys_chroot(const char __user *filename); asmlinkage long sys_fchmod(unsigned int fd, umode_t mode); -asmlinkage long sys_fchmodat(int dfd, const char __user * filename, +asmlinkage long sys_fchmodat(int dfd, const char __user *filename, umode_t mode); asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, int flag); From patchwork Fri May 31 19:12:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 10970677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB0C214DB for ; Fri, 31 May 2019 19:24:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A91D28D16 for ; Fri, 31 May 2019 19:24:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EF2D28D7E; Fri, 31 May 2019 19:24:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B3D228D16 for ; Fri, 31 May 2019 19:24:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727312AbfEaTXx (ORCPT ); Fri, 31 May 2019 15:23:53 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46504 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727189AbfEaTXw (ORCPT ); Fri, 31 May 2019 15:23:52 -0400 Received: by mail-pf1-f195.google.com with SMTP id y11so6744041pfm.13 for ; Fri, 31 May 2019 12:23:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=jkiS8/qpTY6k4aMdDFBf1DTvMrA5045OTYV2nSZG2vg=; b=nXyseErpysTqigZ4XNtx0MfLv48/SlvoZOXSzMLlSGvoGpnpQfGqMwiWJw/gw1xmWB FZDs1tyQl+dUQ7z+75EwCjLiVW+ASJ9fhWueGglbdQT6EDlzZ8KNaSs74bHwmN51L6Rh 92iH2FPuUk8uMtWcl+NDG2RFLgLVScvOHOFpWHsOp3ESrLUPFJNB4mxLGiQOC5qKpL03 h9LYh1GwQbaTHOdWJywyKXqDezCN8cafXfQL6gSXsg8TcCYb5iSEnixubVuI5Wbzfd+X jX5Gp1CyIvN2H4u42lSXALsbVsnzZJvmAMw6KFUkTYaCC6Fk5yLc0OSd/sNx1fF4h2Xh 2O6g== X-Gm-Message-State: APjAAAVZAy25phCGufd3HH4UHEzJUBy6RPk7bt7W1keJ9cR+wblE3rf8 XCwrwUHo77w9rTmAbFfRjBNmjwiYUO0= X-Google-Smtp-Source: APXvYqzOAHJ0yUdwkya1vFOdq3ZwH6YKGgpG1m54T+h5FGeOO4XVr55bLfMFMFpkBP4Vym1mdvxJ/A== X-Received: by 2002:a17:90a:c58b:: with SMTP id l11mr11650722pjt.56.1559330631558; Fri, 31 May 2019 12:23:51 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id s2sm7286629pfe.105.2019.05.31.12.23.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 12:23:51 -0700 (PDT) Subject: [PATCH 2/5] Add fchmodat4(), a new syscall Date: Fri, 31 May 2019 12:12:01 -0700 Message-Id: <20190531191204.4044-3-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190531191204.4044-1-palmer@sifive.com> References: <20190531191204.4044-1-palmer@sifive.com> MIME-Version: 1.0 Cc: linux-arch@vger.kernel.org, x86@kernel.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, Arnd Bergmann , Palmer Dabbelt From: Palmer Dabbelt To: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP man 3p says that fchmodat() takes a flags argument, but the Linux syscall does not. There doesn't appear to be a good userspace workaround for this issue but the implementation in the kernel is pretty straight-forward. The specific use case where the missing flags came up was WRT a fuse filesystem implemenation, but the functionality is pretty generic so I'm assuming there would be other use cases. Signed-off-by: Palmer Dabbelt --- fs/open.c | 21 +++++++++++++++++++-- include/linux/syscalls.h | 5 +++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/fs/open.c b/fs/open.c index a00350018a47..cfad7684e8d3 100644 --- a/fs/open.c +++ b/fs/open.c @@ -568,11 +568,17 @@ SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode) return ksys_fchmod(fd, mode); } -int do_fchmodat(int dfd, const char __user *filename, umode_t mode) +int do_fchmodat4(int dfd, const char __user *filename, umode_t mode, int flags) { struct path path; int error; - unsigned int lookup_flags = LOOKUP_FOLLOW; + unsigned int lookup_flags; + + if (unlikely(flags & ~AT_SYMLINK_NOFOLLOW)) + return -EINVAL; + + lookup_flags = flags & AT_SYMLINK_NOFOLLOW ? 0 : LOOKUP_FOLLOW; + retry: error = user_path_at(dfd, filename, lookup_flags, &path); if (!error) { @@ -586,6 +592,17 @@ int do_fchmodat(int dfd, const char __user *filename, umode_t mode) return error; } +SYSCALL_DEFINE4(fchmodat4, int, dfd, const char __user *, filename, + umode_t, mode, int, flags) +{ + return do_fchmodat4(dfd, filename, mode, flags); +} + +int do_fchmodat(int dfd, const char __user *filename, umode_t mode) +{ + return do_fchmodat4(dfd, filename, mode, 0); +} + SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, umode_t, mode) { diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 396871b218f4..cb040a412a4c 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -435,6 +435,8 @@ asmlinkage long sys_chroot(const char __user *filename); asmlinkage long sys_fchmod(unsigned int fd, umode_t mode); asmlinkage long sys_fchmodat(int dfd, const char __user *filename, umode_t mode); +asmlinkage long sys_fchmodat4(int dfd, const char __user *filename, + umode_t mode, int flags); asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, int flag); asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); @@ -1315,6 +1317,9 @@ static inline long ksys_link(const char __user *oldname, extern int do_fchmodat(int dfd, const char __user *filename, umode_t mode); +extern int do_fchmodat4(int dfd, const char __user *filename, umode_t mode, + int flags); + static inline int ksys_chmod(const char __user *filename, umode_t mode) { return do_fchmodat(AT_FDCWD, filename, mode); From patchwork Fri May 31 19:12:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 10970679 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CD49B14C0 for ; Fri, 31 May 2019 19:24:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE3A128BA9 for ; Fri, 31 May 2019 19:24:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B284A28D22; Fri, 31 May 2019 19:24:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2BDA28D16 for ; Fri, 31 May 2019 19:24:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727295AbfEaTYM (ORCPT ); Fri, 31 May 2019 15:24:12 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41068 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727287AbfEaTXx (ORCPT ); Fri, 31 May 2019 15:23:53 -0400 Received: by mail-pf1-f194.google.com with SMTP id q17so6773454pfq.8 for ; Fri, 31 May 2019 12:23:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=09OzKsWEH6pa0xbQSX5bdUX7ramAnBw1m5XpBBMtl8s=; b=sfkoijjDvxufcUusLBPUx0ZQWzEPs2JIQPXA9hca782o4/kknLIYWJq5o69d1co5zx k1+E4n5QXuWndKENOAJCABlbVmDnfyBG73nAdHUWKjHK1YBKtgOS+5GbXgp8C9u+J0+w 2hCjfsGOt1VQbNQE9xhEXRYd/yb7TImUT8i6GHADlpnEdQ2UckjYqWa7LQn+nDVfGuu4 zf1wzMQjJgzsD5qps8vTcC3rIXj152bEqlVwmF1pZaAidgb8x9iT944gbfQtVdHFSrE7 BLqm+9v0sbve2EcbLGNKMJyYLfe4LqZDRE3WpoUEbEkoT649gdV6dSku0GyE/CX84rU0 ea5g== X-Gm-Message-State: APjAAAWkvMrsBkSA4Gj8Z40LKn+lq7VVtoGdkxECofjiSmQ8OSIaSnf8 eW/eSJsN3HWjL9ZO7D/uRAuY7Q== X-Google-Smtp-Source: APXvYqxvwP9LM12Xj44vBpACJtjdlNkpDxKvsKPHlpq7EZ6IL5RMgGPU0jVOgflGjcQSa2MLBHPa4g== X-Received: by 2002:a17:90a:204a:: with SMTP id n68mr11635594pjc.31.1559330632786; Fri, 31 May 2019 12:23:52 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id e6sm2346642pfi.42.2019.05.31.12.23.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 12:23:52 -0700 (PDT) Subject: [PATCH 3/5] asm-generic: Register fchmodat4 as syscall 428 Date: Fri, 31 May 2019 12:12:02 -0700 Message-Id: <20190531191204.4044-4-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190531191204.4044-1-palmer@sifive.com> References: <20190531191204.4044-1-palmer@sifive.com> MIME-Version: 1.0 Cc: linux-arch@vger.kernel.org, x86@kernel.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, Arnd Bergmann , Palmer Dabbelt From: Palmer Dabbelt To: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Palmer Dabbelt --- include/uapi/asm-generic/unistd.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index dee7292e1df6..f0f4cad4c416 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -833,8 +833,11 @@ __SYSCALL(__NR_io_uring_enter, sys_io_uring_enter) #define __NR_io_uring_register 427 __SYSCALL(__NR_io_uring_register, sys_io_uring_register) +#define __NR_fchmodat4 428 +__SYSCALL(__NR_fchmodat4, sys_fchmodat4) + #undef __NR_syscalls -#define __NR_syscalls 428 +#define __NR_syscalls 429 /* * 32 bit systems traditionally used different From patchwork Fri May 31 19:12:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 10970673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA8C314C0 for ; Fri, 31 May 2019 19:24:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB88228D16 for ; Fri, 31 May 2019 19:24:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFDD228D7F; Fri, 31 May 2019 19:24:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59BAC28D7E for ; Fri, 31 May 2019 19:24:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727348AbfEaTYB (ORCPT ); Fri, 31 May 2019 15:24:01 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42438 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727318AbfEaTXz (ORCPT ); Fri, 31 May 2019 15:23:55 -0400 Received: by mail-pf1-f195.google.com with SMTP id r22so6760806pfh.9 for ; Fri, 31 May 2019 12:23:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=aiQIM6f9frALGlBHOVEXZviohTaEbE7nb+FTGwUVD4A=; b=ClQkWdfeqYcEibklPxIXlSyiEBQzg9shl4/ToMbIDAZLf/58Qwl8qzvMJvvtAKUHrM NxLwvJ+YrNqVbHnegxBauQrTUc4OGjs2jhvDM+T3zIUoXAMHTrDKaONq4zLciH+EOsnk LKzhyfSH5B/x3jXXlxRqxov8G5zoW60x6zs8hdzgcwhh8/xOUT2zjv7gX4cqiIM48eD+ k6rbVvRauy3ezeZA9s7JH3KiHR0Wulw5IsFiM7IR224iWDqdSXH9dhCWFWfukIyp1PZS HBYFWq3hlUSJAxW0Ls1NvKIzeDNKvCAJaL2++FOv9wbqhg/7BRjODJjAJbf8S6ap/egd qt3Q== X-Gm-Message-State: APjAAAVLKtcJLAhUSmb2AHUnvVrw/x2qFFHwmfLz67vt6lfnKZQffQdE e+onit8Ka/3e1GDWrF9HMucgAg== X-Google-Smtp-Source: APXvYqxnHH048gsRvFfx6yXHqqmSGXwu8SiZWTfESkHE4QP5Ki/bYzl/4Onunf3wDQIsChfj3cuqqg== X-Received: by 2002:a62:a511:: with SMTP id v17mr11832352pfm.129.1559330634068; Fri, 31 May 2019 12:23:54 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id x16sm6569182pff.30.2019.05.31.12.23.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 12:23:53 -0700 (PDT) Subject: [PATCH 4/5] x86: Add fchmodat4 to syscall_64.tbl Date: Fri, 31 May 2019 12:12:03 -0700 Message-Id: <20190531191204.4044-5-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190531191204.4044-1-palmer@sifive.com> References: <20190531191204.4044-1-palmer@sifive.com> MIME-Version: 1.0 Cc: linux-arch@vger.kernel.org, x86@kernel.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, Arnd Bergmann , Palmer Dabbelt From: Palmer Dabbelt To: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Palmer Dabbelt --- arch/x86/entry/syscalls/syscall_64.tbl | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/entry/syscalls/syscall_64.tbl b/arch/x86/entry/syscalls/syscall_64.tbl index 92ee0b4378d4..998aa3eb09e2 100644 --- a/arch/x86/entry/syscalls/syscall_64.tbl +++ b/arch/x86/entry/syscalls/syscall_64.tbl @@ -349,6 +349,7 @@ 425 common io_uring_setup __x64_sys_io_uring_setup 426 common io_uring_enter __x64_sys_io_uring_enter 427 common io_uring_register __x64_sys_io_uring_register +428 common fchmodat4 __x64_sys_fchmodat4 # # x32-specific system call numbers start at 512 to avoid cache impact From patchwork Fri May 31 19:12:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 10970675 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C4E7D14DB for ; Fri, 31 May 2019 19:24:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B56D328D16 for ; Fri, 31 May 2019 19:24:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DC5F28D7F; Fri, 31 May 2019 19:24:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 502FF28D16 for ; Fri, 31 May 2019 19:24:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727346AbfEaTYB (ORCPT ); Fri, 31 May 2019 15:24:01 -0400 Received: from mail-pf1-f181.google.com ([209.85.210.181]:41049 "EHLO mail-pf1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727327AbfEaTX4 (ORCPT ); Fri, 31 May 2019 15:23:56 -0400 Received: by mail-pf1-f181.google.com with SMTP id q17so6773518pfq.8 for ; Fri, 31 May 2019 12:23:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=iIsIHJ/E9sb9iivYOWYTrHBdX9wvV0BVSK9WYc+2hhY=; b=QDNRJrfXWJyFiKapOdUikPNifPrQmkf+WVs1ld/15fdJvWRArenq1pQ6ooU06yJa/a cAQjuc1blc1YZC5gCsMuWfKE1YKSBpSmYp/vsESQcoY/qNZGjYcF6TnND/N8MKEBIxkO TWmyHxjYGZyV25m8/qKpV5ZVirt2B6cmeb37b+5ZIIDgtShM85CLGTdgidrG+RwMEm/q YBuwdQaGUll9A8+Fa3t0wWt0dNpSOxVRGPyil3WsJBigU9D2fBrPbaZMAqkYwhgr7JBc wzo+ebKK2pnTRIWnWsNURcCN1XOMgk5VA5qt5CtbGXIQsh/uA0Nduq5KfhWjYPEL2R9Y xIvQ== X-Gm-Message-State: APjAAAWl3ZJrYrDjFQE5xWcKsozRRrklAWR10DNABbPbG2ZilZTzekrr TODcKDV+0QyG3Ac7c7Qi7ojhNw== X-Google-Smtp-Source: APXvYqwqjBeSRHkNhprVnlAw/2N8AmL71UGiONuyr+S2FzywQVEi5ye6pcOigbDzCrp3j+bmycDwJw== X-Received: by 2002:a62:d410:: with SMTP id a16mr4454667pfh.167.1559330635344; Fri, 31 May 2019 12:23:55 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id m1sm6059048pjv.22.2019.05.31.12.23.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 12:23:54 -0700 (PDT) Subject: [PATCH 5/5] x86: Add fchmod4 to syscall_32.tbl Date: Fri, 31 May 2019 12:12:04 -0700 Message-Id: <20190531191204.4044-6-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190531191204.4044-1-palmer@sifive.com> References: <20190531191204.4044-1-palmer@sifive.com> MIME-Version: 1.0 Cc: linux-arch@vger.kernel.org, x86@kernel.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, Arnd Bergmann , Palmer Dabbelt From: Palmer Dabbelt To: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Palmer Dabbelt --- arch/x86/entry/syscalls/syscall_32.tbl | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/entry/syscalls/syscall_32.tbl b/arch/x86/entry/syscalls/syscall_32.tbl index 1f9607ed087c..319c7a6d3f02 100644 --- a/arch/x86/entry/syscalls/syscall_32.tbl +++ b/arch/x86/entry/syscalls/syscall_32.tbl @@ -433,3 +433,4 @@ 425 i386 io_uring_setup sys_io_uring_setup __ia32_sys_io_uring_setup 426 i386 io_uring_enter sys_io_uring_enter __ia32_sys_io_uring_enter 427 i386 io_uring_register sys_io_uring_register __ia32_sys_io_uring_register +428 i386 fchmodat4 sys_fchmodat4 __ia32_sys_fchmodat4