Skip to content

Commit

Permalink
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/…
Browse files Browse the repository at this point in the history
…linux/kernel/git/tip/tip

Pull core fix from Thomas Gleixner:
 "Prevent leaking kernel memory via /proc/$pid/syscall when the queried
  task is not in a syscall"

* 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  lib/syscall: Clear return values when no stack
  • Loading branch information
torvalds committed Apr 2, 2017
2 parents 346ce1d + 854fbd6 commit ada63c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ static int collect_syscall(struct task_struct *target, long *callno,

if (!try_get_task_stack(target)) {
/* Task has no stack, so the task isn't in a syscall. */
*sp = *pc = 0;
*callno = -1;
return 0;
}
Expand Down

0 comments on commit ada63c6

Please sign in to comment.