Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1467646ybv; Thu, 20 Feb 2020 21:11:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyQdSa3OL6WyYt85t0Vf6YjIQX1V3v8jEKfUUqm3sd4SNbPtTvvMz61elt65+cCV3iq2jgG X-Received: by 2002:aca:d4c1:: with SMTP id l184mr565137oig.172.1582261869598; Thu, 20 Feb 2020 21:11:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582261869; cv=none; d=google.com; s=arc-20160816; b=HzVUSU//2wFBFKqyk34iM2Y2XhCm8MkyeaborUnd7pKvhjv+7LWmc25gPOdzx/dASZ OzCJ5e4fl9nWS1qYNiFW5XSDWMO5LzSgGl1V7J4vaM9yPBeHHMG0sW4P/e6IRrG7mnn3 dOFEcv9HLrvjTH9YP1jgnIVxZV71GtsX0QfUNZ7M91sY3j8Q2H2l+w8ySU4pFhHtL1ge DNuUhKXPPRr6ZMvIhB9p3ZPHMzHbcN2fQirjnz7mxHYkxGUVndAVBk52tsOqMY34Jyep ekUq6LD4hXP3TTiYdfLUEA3FkZDC3SVTKnibkRW5VCCyS63NFinptekJT4ZZxvXDPnYs /JPQ== 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=krAE7ycC/2k1W/1ATQ3jD1P1JN/WDVFSVrdN2mtH4vY=; b=zH41+EIrvRqLkXY08Ut3cFLci+jyQXyPTYEL8bMQD3JeAAJtclgH+Rf5XN4nEM7CNy 9V44WNaGO/oiK+qRAI5UG/NyBZDO314he2EChWEI+iwZ9y7WgllmbRYhFXnn0/xqZ462 DUXcHGUfe4AxId6w5BGjg83Y/J4GleWhGw9nNZ/6UTUy+YqBE1WmPz+fCNVV3WOLNBBk p470vqwcEZezMnvwwCmJhDP8GNg/jDqOLImTcPQKtUinitmKdsBSqb9OP7ctz5+8UlSS VMiuR9Bxt39zhEewaYSWpk0Hl4ShoGfuFvW6qpTmMdZTzyeMDp5B1i5sEy/2WdWPzJMU QNpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fpd3pzk0; 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 w142si264622oia.132.2020.02.20.21.10.57; Thu, 20 Feb 2020 21:11:09 -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=fpd3pzk0; 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 S1726930AbgBUFKk (ORCPT + 99 others); Fri, 21 Feb 2020 00:10:40 -0500 Received: from mail-yb1-f193.google.com ([209.85.219.193]:35269 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbgBUFKj (ORCPT ); Fri, 21 Feb 2020 00:10:39 -0500 Received: by mail-yb1-f193.google.com with SMTP id p123so600272ybp.2 for ; Thu, 20 Feb 2020 21:10:38 -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=krAE7ycC/2k1W/1ATQ3jD1P1JN/WDVFSVrdN2mtH4vY=; b=fpd3pzk0wm92KFI6vCcjE9KeFugcHVOuvJP6IoGqy3QhPIqQdi2AFQO7q+0Q5gwsSf Zh5cCVuPfqYcZMaSeZL0QPwT6w8KVQ75hkM5+Zs+iWLfgWuWoIhXHGcRIPWKVzYGFmrp P/XxtCLMDrbgzMELLNUbTvfSVW/ZTXmzFsdDDbjBdelKzz7ARo2JuJcrj4A1PHm85wWB gXMjVBH3AFV2vDGfSHIIdLHxXUiSi7gaA4Qg2eFUaRCAZlxS1Q0S2tCgjm40YkbBoZHE pBtDkM7KPlknbzVb5p5YCRSHbD7x9FnN+OSze3Jdzs0/bAM740Lk5/NaDFlxu4DtWW3q T6JA== 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=krAE7ycC/2k1W/1ATQ3jD1P1JN/WDVFSVrdN2mtH4vY=; b=JfcFjPHLipycmVRvMCD7mqx2QdPGwoPOR/KOdSWAJyVtcfMYIiNV/51zHHJ44+EkWS uwoTnILjDMMoSWZgiCPi91NUsOL0YbYiEH4WhRA9wxQo1gbx3jQ2Pc2D2McbmKLbP1JM 7Zv3tq9NnUSTVvUoUPgUI+GVQviIrVhbeOH5sPYe08WAKe8tqd3f2mqj/J1HI2prayOU PGHv9pvOMzTyJEnlQHvvgpcdXP44EdVNO/vOhxCdXkoVZRfuJyVtM8yj3dVLgtBHVis2 C3rNGQI5hEeMClmdUCX394Vy75bxixBX6Q87XuGbxOKx0yk1NXLL1NX3siMXGiDr2SNV 0N8A== X-Gm-Message-State: APjAAAVjg3sKNWBeT5uWZ5+nCEl1a4BqgG6q7Ffcw4Y1gmf7eOWeqQ0q iQSRlYOyR7AbIagzoYPd0tjujD0= X-Received: by 2002:a25:e909:: with SMTP id n9mr33645009ybd.187.1582261837437; Thu, 20 Feb 2020 21:10:37 -0800 (PST) Received: from localhost.localdomain (174-084-153-250.res.spectrum.com. [174.84.153.250]) by smtp.gmail.com with ESMTPSA id a12sm840904ywa.95.2020.02.20.21.10.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Feb 2020 21:10:37 -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 , Brian Gerst Subject: [PATCH 4/5] x86-64: Use syscall wrappers for x32_rt_sigreturn Date: Fri, 21 Feb 2020 00:09:33 -0500 Message-Id: <20200221050934.719152-5-brgerst@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200221050934.719152-1-brgerst@gmail.com> References: <20200221050934.719152-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 Signed-off-by: Brian Gerst --- 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