Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2101573ybh; Fri, 13 Mar 2020 12:53:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvaJBp4X7ALBeI2Myayf22K6J2tyOs0R/EI0AgQYRsBbBEw5DJf6aK5Sk6UulWc45NAJ1kw X-Received: by 2002:a9d:6a0b:: with SMTP id g11mr11959139otn.31.1584129180037; Fri, 13 Mar 2020 12:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584129180; cv=none; d=google.com; s=arc-20160816; b=BUOGvq7UUM7b3KQIDHiPu4etL7JI6DgPFmk+DvNHeJWLgnWnlDcvyLNUv2Ji0c5n+P j+HNRwQm7zIXoGVSumljv3kP2rov8lDrWTG4Ov91sDIEiq2rYRkC3QZAhKnJJJJDmsLU 9RQtfKCSjWUXlANn3MozLcNaWpK0geG/YrXSfPFxr32myQT34gXaDsWaZckQfaNUyrW+ ZrMtFbZ5tVWpeZxa7uxULcL7TD1jtoJ9gATwb8/dqXZZEUhu9Q1CGu5ziA68e2fQfjO7 GgFhKpAgr4eLOHlePlp53dnMaCKq7wRSgmOLG2qR174u3EHWKmtW9HrrlaGTylxnFrC3 Buew== 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=kEgBD2zORFbqr37RMAp7AXXsfNvhw9SIyZ840n+FY/o=; b=NC2hWZsHyTjVzooBtPuME/MqnzCYJViEK1nqxEtjuscBVSAopaXXd1yaKrKQOxuW1h Cllj0dNbFpPCxMrzFakLzq+uWsYdR8c0eA1wlPiBybuaz8kHHpEZE6X4vYJKUcIWrysO CINs3iRGeRgctNAHcsrrJ4UsPYAWwDBAM20tGs/NH/9axCzSCEATB6krUbOb/8w6OVeU rCDXb68/T2eGmphGlcNg793+bHswF0RpE9KdWKn4j3h4JOFMCEBp2MxrHpmtm0BPS7vh fTLDcfnOKvs7SkcggXij09QQr4AO+VxwjXUOI92hWsRVSUkT6iFqRMqIEO9zIXt4tjHd nrXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QjUwT5XI; 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 l24si2377392otk.286.2020.03.13.12.52.47; Fri, 13 Mar 2020 12:53:00 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QjUwT5XI; 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 S1727411AbgCMTwU (ORCPT + 99 others); Fri, 13 Mar 2020 15:52:20 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:45535 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727355AbgCMTwR (ORCPT ); Fri, 13 Mar 2020 15:52:17 -0400 Received: by mail-qk1-f195.google.com with SMTP id c145so14667429qke.12 for ; Fri, 13 Mar 2020 12:52:16 -0700 (PDT) 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=kEgBD2zORFbqr37RMAp7AXXsfNvhw9SIyZ840n+FY/o=; b=QjUwT5XIHXnaom5edG3D5NvjM1rFr9w/5MbbG8CAezp7LabtlXBCURZm7/e4TSN9/m Iz//WrMv5wWaCX9RbRH8FpF992QURN6QOdNgOuf/7SqtKI7SJPtE8tPmp17yIttNbN1c LwmbiaVkJQEGVu3LeyNWy1PcKfNmdRJHY9dJ31L9y/88rjME3GZyOLGo72+mbYeFxrh1 nusQVBlBe75nFUOt1OSZ77/AOfw5+3eO+49wkELPVcO8CI9QQzjmCmO8HnIfqTqgnEfG E3u3HhnxgKyROihOYniW42ZLQDBZNkp9cHMx0yna9syKJ87pAAns1yPDTzrBHp/VZFgz +Reg== 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=kEgBD2zORFbqr37RMAp7AXXsfNvhw9SIyZ840n+FY/o=; b=RnUGw/5sfbcBkOPf/fOA0K32IQ+EZbBH0GuNzUJZF91ogKwVk426vjRrEF9CBUPUPb LTXHisKDWE1ErBfU9T/mOsUhsk8iFENVU0yqIVP3lXLfvz6fhoqAiN2nlLK3Niiy/+ld uQC78DWJCQeVqYg6sKssltulm2OdABKcN1T+emeMZ3sNmdT2IO2oJ6ZlNe9ygRecXUm4 GWdWCKmsimIC0EDCsxsjkZQdtrSnFHUa2GHbJA4kUWy1Be0NJ8VGM2lJNg+vJCQitTsx 7sgXdT1BZQVoKP0rTP9yslaqM5Dn2W4qrFFtjdDSE5ExWS4OZEVFeGS78adB8EM2dt4H K73w== X-Gm-Message-State: ANhLgQ3R8BASiD+ENqDHUr5OQiEu4Nedy8syxqhTkf3sRwK3UYU+QoxC c4Qj3wkfx2JrAEg8Kev/EU3vxW8= X-Received: by 2002:a37:9b51:: with SMTP id d78mr15282932qke.65.1584129135967; Fri, 13 Mar 2020 12:52:15 -0700 (PDT) Received: from localhost.localdomain (174-084-153-250.res.spectrum.com. [174.84.153.250]) by smtp.gmail.com with ESMTPSA id i28sm31475599qtc.57.2020.03.13.12.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 12:52:15 -0700 (PDT) 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 v4 05/18] x86-64: Use syscall wrappers for x32_rt_sigreturn Date: Fri, 13 Mar 2020 15:51:31 -0400 Message-Id: <20200313195144.164260-6-brgerst@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200313195144.164260-1-brgerst@gmail.com> References: <20200313195144.164260-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 Reviewed-by: Andy Lutomirski --- 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