Skip to content

Commit

Permalink
Merge tag 'core-urgent-2020-08-23' of git://git.kernel.org/pub/scm/li…
Browse files Browse the repository at this point in the history
…nux/kernel/git/tip/tip

Pull entry fix from Thomas Gleixner:
 "A single bug fix for the common entry code.

  The transcription of the x86 version messed up the reload of the
  syscall number from pt_regs after ptrace and seccomp which breaks
  syscall number rewriting"

* tag 'core-urgent-2020-08-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  core/entry: Respect syscall number rewrites
  • Loading branch information
torvalds committed Aug 23, 2020
2 parents d9232cb + d88d59b commit e99b250
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/entry/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e99b250

Please sign in to comment.