public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [GIT pull] core/urgent for v5.9-rc2
@ 2020-08-23  8:25 Thomas Gleixner
  2020-08-23  8:25 ` [GIT pull] efi/urgent " Thomas Gleixner
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Thomas Gleixner @ 2020-08-23  8:25 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, x86

Linus,

please pull the latest core/urgent branch from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.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.

Thanks,

	tglx

------------------>
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)


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-08-23 23:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-23  8:25 [GIT pull] core/urgent for v5.9-rc2 Thomas Gleixner
2020-08-23  8:25 ` [GIT pull] efi/urgent " Thomas Gleixner
2020-08-23 18:39   ` pr-tracker-bot
2020-08-23  8:25 ` [GIT pull] perf/urgent " Thomas Gleixner
2020-08-23 18:16   ` Linus Torvalds
2020-08-23 21:25     ` Thomas Gleixner
2020-08-23 18:39   ` pr-tracker-bot
2020-08-23  8:25 ` [GIT pull] x86/urgent " Thomas Gleixner
2020-08-23 18:29   ` Linus Torvalds
2020-08-23 22:00     ` Thomas Gleixner
2020-08-23 22:29       ` Linus Torvalds
2020-08-23 22:26     ` Andy Lutomirski
2020-08-23 22:35       ` Linus Torvalds
2020-08-23 23:12         ` Andy Lutomirski
2020-08-23 18:39   ` pr-tracker-bot
2020-08-23 18:39 ` [GIT pull] core/urgent " pr-tracker-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox