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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 23 Aug 2020 08:25:34 -0000
From:   Thomas Gleixner <>
To:     Linus Torvalds <>
Subject: [GIT pull] core/urgent for v5.9-rc2


please pull the latest core/urgent branch from:

   git:// core-urgent-2020-08-23

up to:  d88d59b64ca3: core/entry: Respect syscall number rewrites

A single bug fix for the common entry code. The transcript of the x86
version messed up the reload of the syscall number from pt_regs after
ptrace and seccomp which breaks syscall number rewriting.



Thomas Gleixner (1):
      core/entry: Respect syscall number rewrites

 kernel/entry/common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/entry/common.c b/kernel/entry/common.c
index 9852e0d62d95..fcae019158ca 100644
--- a/kernel/entry/common.c
+++ b/kernel/entry/common.c
@@ -65,7 +65,8 @@ static long syscall_trace_enter(struct pt_regs *regs, long syscall,
 	syscall_enter_audit(regs, syscall);
-	return ret ? : syscall;
+	/* The above might have changed the syscall number */
+	return ret ? : syscall_get_nr(current, regs);
 noinstr long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall)

Powered by blists - more mailing lists