Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1124105ybf; Thu, 27 Feb 2020 05:29:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwWKxQfQCFH5jVPEMyQ2gaakQoua5wAbnhyHXk9YC1clxTNucPOVNELCv4WVoT5gPKFawA4 X-Received: by 2002:a9d:6ad6:: with SMTP id m22mr3466806otq.7.1582810175768; Thu, 27 Feb 2020 05:29:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582810175; cv=none; d=google.com; s=arc-20160816; b=Qp1hrK+YyNjtIj4OuLdIALIJ6+0/K9++fQyq6TqpEm7yL/ypjQVzIvsC36G7G4vAMm iW+upWATRLxe8uErITlWlJJrQUZ1Rf64am51j/Ovqc9K8teFm0Jxf6PxSAVREIwpccDb BBm0Lo5v1DHB+6PP+VEiMKXleX350hf33zAgUIQTq4lg4VJAVQVO77E0qhgCoMzDrYti whIWWm6zhu/JdUI7llQIeBvufz/s2YuPIqiWoy2Ba3cSvdk2sCORfHKGvr8pNi4ifAgy 4HGfNCfV8wYo7SOdlfR+hdQljorzSov/z5xJSkEpeMsiadNtbZgF/G4mTSJfxS67Ho0D LxUQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cHwnDuy8iWilmn9MBT9whlCavLt7cICreHcENkQjCv4=; b=z72JDzGcCZbZzmrhX4qdYsr3xkjhhVqeF4gCdul9xeNqbKYRgug6BuIrMCmzd1Z7RF LAafD8z1zlTpSBZIHd8a2X0GRxLNCHVJl+yHKHexMo7H1EWiPVTkaoVHwQpv0eBN8sNr HpV8yEJNcYVrv6hLbVsUqVBFQkTW94WZTvB0pbL6xbNTyjBfv3+WAZXRV22ondTOYLuf cMjnkbhscxVOxiNr1GSWHNV6/nJXWuHCRwGfnchwXJXW6kDU5a4Bh7J2RWpfz0e6pQPk ufmTzJJIIqVoC7IdUDCDuldWqRO8SyUiM0n4Mox6FCu9ajcwTEuOvcUoQais5ELMkaSZ uZ+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CJBEtAye; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si1485260otp.186.2020.02.27.05.29.23; Thu, 27 Feb 2020 05:29:35 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CJBEtAye; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729305AbgB0N24 (ORCPT + 99 others); Thu, 27 Feb 2020 08:28:56 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:36160 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729254AbgB0N2t (ORCPT ); Thu, 27 Feb 2020 08:28:49 -0500 Received: by mail-yw1-f65.google.com with SMTP id y72so3003158ywg.3 for ; Thu, 27 Feb 2020 05:28:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cHwnDuy8iWilmn9MBT9whlCavLt7cICreHcENkQjCv4=; b=CJBEtAye2TuFgARfSmhGDEKoqdqhnhlwSVvIlyBwnvQ1lOngGokKx2+OJEGA+Hhpd/ RhNiRUgErLXg7vSSgpVGA3IhDk2CWjY2/MpJjinbC15wEERpdj1WmhCVXZme8c5+ZfZd 3R7BB1mIN2QdAIifcvUxxK43zNOrXwWukVXIz8bA/gqBC/nds4oTY6CWlynsrRy27czr V4ryfEiDEb46uwmtxsH83+dxOgkb3mJPtCRNSq5CkboT7JEMBKTyBgx9sYJnopUUgt2u ycOWyyBmM5TwRZCX02TwIjbD1Qt/uehoR3hzSj/KcHah7b9DYjBmbkeAnH19U/OkIFvE oEbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cHwnDuy8iWilmn9MBT9whlCavLt7cICreHcENkQjCv4=; b=ClQPR/bUB8qBeTo8aITQ01AzkyhPlvFG4ltBglI8UENwtkjdMC635mVC5SL3mErHi6 nkqljGdqFM1i4fgte2RHtJw6mmymyr/eMxeneerhAsCWRu1phSFsTsIDcBSFu6yR0OqB g8xaRDJkA2ibz0L0+JQN3NPdE6+7oHGvfbsBe1G1kHdk5DDoOxuZmyvTJg0Y5Nj3MHf3 if6tFT/QZsdsPwLEjmERm3lwPytAT8Ys0TaiyqUBJKyBgCPG+nCbL64oFvKGL6/yMIXB XUe9lzIi8MvlhEaOGKYCuET/7hrNpcxQGFmT/iIrioEV1EZ/3yRqzP0EfxSPkFA1+OSt bHwQ== X-Gm-Message-State: APjAAAVk9UMHzLuH2F22hgAjR7cb9KJc5bZkW94x5AWhnoBxsqDyeu6O swDvN6GRdPocTXzb9BM4oGeWvog= X-Received: by 2002:a25:d34e:: with SMTP id e75mr1768544ybf.290.1582810126306; Thu, 27 Feb 2020 05:28:46 -0800 (PST) Received: from localhost.localdomain (174-084-153-250.res.spectrum.com. [174.84.153.250]) by smtp.gmail.com with ESMTPSA id j23sm2442759ywb.93.2020.02.27.05.28.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 05:28:45 -0800 (PST) From: Brian Gerst To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski , Dominik Brodowski , Brian Gerst Subject: [PATCH v3 7/8] x86-64: Use syscall wrappers for x32_rt_sigreturn Date: Thu, 27 Feb 2020 08:28:25 -0500 Message-Id: <20200227132826.195669-8-brgerst@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227132826.195669-1-brgerst@gmail.com> References: <20200227132826.195669-1-brgerst@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing syscall wrapper for x32_rt_sigreturn(). Signed-off-by: Brian Gerst Reviewed-by: Dominik Brodowski --- 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 44d510bc9b78..0b5a25bc9998 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 2fcbd6f33ef7..bd26834724e5 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 8a29573851a3..860904990b26 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; -- 2.24.1