lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-1227b344de283f96c41de02cde4b26d5290f5302@git.kernel.org>
Date:   Wed, 14 Mar 2018 13:45:56 -0700
From:   "tip-bot for Tautschnig, Michael" <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     tautschn@...zon.com, linux-kernel@...r.kernel.org,
        jaswinder@...radead.org, ak@...ux.intel.com, tglx@...utronix.de,
        mingo@...nel.org, linux@...inikbrodowski.net,
        tautschn@...zon.co.uk, hpa@...or.com
Subject: [tip:x86/urgent] x86/sigreturn: Use SYSCALL_DEFINE0

Commit-ID:  1227b344de283f96c41de02cde4b26d5290f5302
Gitweb:     https://git.kernel.org/tip/1227b344de283f96c41de02cde4b26d5290f5302
Author:     Tautschnig, Michael <tautschn@...zon.co.uk>
AuthorDate: Wed, 14 Mar 2018 09:41:42 +0000
Committer:  Thomas Gleixner <tglx@...utronix.de>
CommitDate: Wed, 14 Mar 2018 21:43:09 +0100

x86/sigreturn: Use SYSCALL_DEFINE0

All definitions of syscalls in x86 except for those patched here have
already been using the appropriate SYSCALL_DEFINE*.

Signed-off-by: Michael Tautschnig <tautschn@...zon.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Cc: Andi Kleen <ak@...ux.intel.com>
Cc: linux-api@...r.kernel.org
Cc: Dominik Brodowski <linux@...inikbrodowski.net>
Cc: Jaswinder Singh <jaswinder@...radead.org>
Cc: "linux-api@...r.kernel.org"
Cc: "x86@...nel.org"
Link: https://lkml.kernel.org/r/9C9981F4-0E5E-42A7-8788-70F3DEAD258D@amazon.com

---
 arch/x86/kernel/signal.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c
index 4cdc0b27ec82..da270b95fe4d 100644
--- a/arch/x86/kernel/signal.c
+++ b/arch/x86/kernel/signal.c
@@ -25,6 +25,7 @@
 #include <linux/user-return-notifier.h>
 #include <linux/uprobes.h>
 #include <linux/context_tracking.h>
+#include <linux/syscalls.h>
 
 #include <asm/processor.h>
 #include <asm/ucontext.h>
@@ -601,7 +602,7 @@ static int x32_setup_rt_frame(struct ksignal *ksig,
  * Do a signal return; undo the signal stack.
  */
 #ifdef CONFIG_X86_32
-asmlinkage unsigned long sys_sigreturn(void)
+SYSCALL_DEFINE0(sigreturn)
 {
 	struct pt_regs *regs = current_pt_regs();
 	struct sigframe __user *frame;
@@ -633,7 +634,7 @@ badframe:
 }
 #endif /* CONFIG_X86_32 */
 
-asmlinkage long sys_rt_sigreturn(void)
+SYSCALL_DEFINE0(rt_sigreturn)
 {
 	struct pt_regs *regs = current_pt_regs();
 	struct rt_sigframe __user *frame;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ