Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2722604ybv; Mon, 24 Feb 2020 10:19:02 -0800 (PST) X-Google-Smtp-Source: APXvYqyPqjYycDcKqfOUj7aiu9DxaWJL6iC4YcpgWDHkR/RnrblSDATY3hQrJ6bF5xK2WoFL66im X-Received: by 2002:a9d:64b:: with SMTP id 69mr39616849otn.237.1582568342021; Mon, 24 Feb 2020 10:19:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582568341; cv=none; d=google.com; s=arc-20160816; b=HlRy56qH1mqCRZpT8O6pXRnTVS+whbZJI7946QX3kB9p8GU1kABLxDUxgyHDWWHjAd HTd1ZsKP1iRCzRObMO7bnpjB+PNwuv5YYFibNIVc9lo4rtQ0/z/sUp089Cd44lq6KgWq BG+Cl2ewAFsjgmhSUgcvrLkhH1Px7yQdxenX1nZHQNVjB6wKO+mO7OH97Zg5+mhGtY7P KNnwMvt6Yf1I+L5zwCm1BraIJiBzJagPZgCzNinYd/hxqMf4i27P5OmB6PV9yJXVQ4V2 1skXxZByNlod82laPmTnyEgecuh9xLcbLcfW/f7kVR17cdz5Rt8iahdzhnoJZqa4leqC /Mbw== 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=ShcYkjDPm91d2i1Ov6u4CurSxm+l1l1yVY347zUI8Ho9vdIempgV9N0CMXX1YyM+Sl frWgTYRuJYfEhPdtZUQ4qVA9jIY7yJ0AGVTFfhpWWZBu6/wyXUCUBookqiH56rjNj1ng j2WPSoh5w0GUjkp9zMn9Uo+BEoscA0JYKeXeasvBJXVv+s//iSXF/dT/q9HJotA+NdvG MUd456/dceR8YWNMdTIGh2RZVHeONxd4n0jmNdCJmWKe3LzPfeAEuDpn1O4xGj9nISGq YS/+3WMOPGxQjxkjJvLabCtlQp3z3/1nVxjlUufSqqvrCIpudXymndyUVzAERVf7rHfx l9YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pi1ZRmas; 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 j143si5878381oib.16.2020.02.24.10.18.49; Mon, 24 Feb 2020 10:19:01 -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=Pi1ZRmas; 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 S1728063AbgBXSSc (ORCPT + 99 others); Mon, 24 Feb 2020 13:18:32 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:45962 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728012AbgBXSSY (ORCPT ); Mon, 24 Feb 2020 13:18:24 -0500 Received: by mail-yw1-f65.google.com with SMTP id a125so5615672ywe.12 for ; Mon, 24 Feb 2020 10:18:22 -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=Pi1ZRmasehPUqENQ7aKQlDIlyNiSUhy4AWW2+0kBF7SfvdtpYhwJ/5s9SduhNZtKLg PDRKXIQQ72xz5/D4Aj7+jHf+Yb1vMlx60CIXUYFIJ9OO7jgYRy7nbGBReNa7s7PGW4dx IoxwjmujqVGHzlE4Vl0LbR64HWcs9DkzrlqBwcNr6prNrLg9zKSRqTvPnUQ+WwMHb4Z4 7Y6ZX9c7vi1WMbmt3ewHyNhLW39g8np2AiEYdJL6ixqVfVKUrKpVG6o82GPrU7qZLpRh zwCTC3y9WAic9aRUERbt8kd5kf3kbVbPChcl/NAI87cOYPrsOqvQIi+b+D7e8nPK/GJZ Tlcw== 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=an2BP1BMGZlBtNVzmp03h9WFI+bP52+VsDhmwWuHYdhjwCpiZya/z8lGwgz1OYzv1u JG0f2hhiiZwGkLeiJFt1ryGriFSGkm7ou+Kij/wB4wr90XXYsbzGoPHaJGxNlnEu2sDi IzCOUZCwEys8wRcSXolz7HIHtaxCkbJ46b0Bz5Lf9csJ4Zhu3GHvyo0I8FsIRSVjeuVb wLMz6O6brPfxtXlIWbHjoKD+4U/qiNzkJnikpGEFrj0nkYmSH6/a4OadBkCq94YoR/0n qlvwL3RZHdbrtOhma3qBwrRMMSKjkvh13UW5TGA8PC7/viOO8zsM6VTDeedOsFAjzgtd eQcg== X-Gm-Message-State: APjAAAVmeMa4C+dl6XUOsjgiteKgTUlvwTzspx0zjdGYM+rg49yfOJVo CcfJC/Og3ZTKX9TiKpMXE4dG1Lw= X-Received: by 2002:a81:5787:: with SMTP id l129mr45180131ywb.483.1582568301886; Mon, 24 Feb 2020 10:18:21 -0800 (PST) Received: from localhost.localdomain (174-084-153-250.res.spectrum.com. [174.84.153.250]) by smtp.gmail.com with ESMTPSA id i66sm5632383ywa.74.2020.02.24.10.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 10:18:21 -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 v2 7/8] x86-64: Use syscall wrappers for x32_rt_sigreturn Date: Mon, 24 Feb 2020 13:17:56 -0500 Message-Id: <20200224181757.724961-8-brgerst@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200224181757.724961-1-brgerst@gmail.com> References: <20200224181757.724961-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