Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1915345ybb; Sat, 21 Mar 2020 08:31:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtCthfoyVZ++IOGtmHz2KNVa4X0bx6vuaRG+YCRAU52v3XJVqzmAaN8dT5aqJ/1VZEobg4N X-Received: by 2002:aca:d987:: with SMTP id q129mr10340281oig.64.1584804712580; Sat, 21 Mar 2020 08:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584804712; cv=none; d=google.com; s=arc-20160816; b=NBC+YiY9BC/yZwaIgumwYxe4Bycm2LeCAdvnohQcOjO9dUtQ4UEcZAl7fciVNv+iwq /82DM8L0GeKX121moCP73NzJ3EA1fbQyE7xq9eT4ipkdTtNJz3nlieLIEGzUicobAkOY 4jAi1IGpRta5CTdjI/86F4yA6PNcC28mGAj2zcoSgyBbC9ovdCzRtmsNJmHyJoW92lKU HZofs6p0SRMTC0KHavRkXsHT+CSfnMWulPuErEcFo/jV1cEjwx6PEk6VEuSY0t9TKjQY mYynH/n7f7vs8SutWW3UBtetT00KjkTJglfW1Aw86lfh5sEzXwbcv++hKY6ff9sdapVT I6bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=7akHX9+r70LmvhSULDI+CjKBI/QHeXa8D4NXEds3uHE=; b=pN/heD0dlSI4X78ZYeaa4UYbV43zlcFNm1Q0f07Og0tniGI2QEdy7cD0kGs7AervqS UDauBguXWMG2CKx4giDUxyBDygMbfrzzEalmgEOMseJ+cqFvJwDkHHrc2EP9C/1ge3it X036XpjI24Eifc+Lpu3HajXr76hTFFOj+ZPCVmafGpaK9VJ37T8rNATRQlGlH0a3a9Su 073tCRrRdAs0awveoO1Yc08M2lLnCz6ZTW8OVln7y670/E62ithBk2UogKicuOsxmyxS RiLgrT0X9e8P/ywz1smHvqSxqvtUCrkmKBNqDEyLJHZDWZntpyZYYX742IIr6IjzS028 Yq5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si5868204otj.157.2020.03.21.08.31.41; Sat, 21 Mar 2020 08:31:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727816AbgCUPat (ORCPT + 99 others); Sat, 21 Mar 2020 11:30:49 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38927 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727664AbgCUPan (ORCPT ); Sat, 21 Mar 2020 11:30:43 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jFg59-000523-R2; Sat, 21 Mar 2020 16:30:39 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 8C6521C22E9; Sat, 21 Mar 2020 16:30:37 +0100 (CET) Date: Sat, 21 Mar 2020 15:30:37 -0000 From: "tip-bot2 for Brian Gerst" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/entry] x86/entry/64: Use syscall wrappers for x32_rt_sigreturn Cc: Brian Gerst , Thomas Gleixner , Dominik Brodowski , Andy Lutomirski , x86 , LKML In-Reply-To: <20200313195144.164260-6-brgerst@gmail.com> References: <20200313195144.164260-6-brgerst@gmail.com> MIME-Version: 1.0 Message-ID: <158480463716.28353.2010597040701838211.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/entry branch of tip: Commit-ID: 27dd84fafcd5e3c565164bb303fe8ec8ef59e147 Gitweb: https://git.kernel.org/tip/27dd84fafcd5e3c565164bb303fe8ec8ef59e147 Author: Brian Gerst AuthorDate: Fri, 13 Mar 2020 15:51:31 -04:00 Committer: Thomas Gleixner CommitterDate: Sat, 21 Mar 2020 16:03:20 +01:00 x86/entry/64: Use syscall wrappers for x32_rt_sigreturn Add missing syscall wrapper for x32_rt_sigreturn(). Signed-off-by: Brian Gerst Signed-off-by: Thomas Gleixner Reviewed-by: Dominik Brodowski Reviewed-by: Andy Lutomirski Link: https://lkml.kernel.org/r/20200313195144.164260-6-brgerst@gmail.com --- arch/x86/entry/syscalls/syscall_64.tbl | 2 +- arch/x86/include/asm/sighandling.h | 5 ----- arch/x86/kernel/signal.c | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/x86/entry/syscalls/syscall_64.tbl b/arch/x86/entry/syscalls/syscall_64.tbl index 44d510b..0b5a25b 100644 --- a/arch/x86/entry/syscalls/syscall_64.tbl +++ b/arch/x86/entry/syscalls/syscall_64.tbl @@ -367,7 +367,7 @@ # is defined. # 512 x32 rt_sigaction __x32_compat_sys_rt_sigaction -513 x32 rt_sigreturn sys32_x32_rt_sigreturn +513 x32 rt_sigreturn __x32_compat_sys_x32_rt_sigreturn 514 x32 ioctl __x32_compat_sys_ioctl 515 x32 readv __x32_compat_sys_readv 516 x32 writev __x32_compat_sys_writev diff --git a/arch/x86/include/asm/sighandling.h b/arch/x86/include/asm/sighandling.h index 2fcbd6f..bd26834 100644 --- a/arch/x86/include/asm/sighandling.h +++ b/arch/x86/include/asm/sighandling.h @@ -17,9 +17,4 @@ void signal_fault(struct pt_regs *regs, void __user *frame, char *where); int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, struct pt_regs *regs, unsigned long mask); - -#ifdef CONFIG_X86_X32_ABI -asmlinkage long sys32_x32_rt_sigreturn(void); -#endif - #endif /* _ASM_X86_SIGHANDLING_H */ diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c index 8a29573..8609049 100644 --- a/arch/x86/kernel/signal.c +++ b/arch/x86/kernel/signal.c @@ -859,7 +859,7 @@ void signal_fault(struct pt_regs *regs, void __user *frame, char *where) } #ifdef CONFIG_X86_X32_ABI -asmlinkage long sys32_x32_rt_sigreturn(void) +COMPAT_SYSCALL_DEFINE0(x32_rt_sigreturn) { struct pt_regs *regs = current_pt_regs(); struct rt_sigframe_x32 __user *frame;