diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-04-02 18:18:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-04-02 18:18:59 +0200 |
commit | ada63c6159474aeb9d5f420d3378c3d340ceba17 (patch) | |
tree | 085c63e2fe04b9f03b2f15d4348d099990f038c5 /lib | |
parent | Merge branch 'parisc-4.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
parent | lib/syscall: Clear return values when no stack (diff) | |
download | linux-ada63c6159474aeb9d5f420d3378c3d340ceba17.tar.xz linux-ada63c6159474aeb9d5f420d3378c3d340ceba17.zip |
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/syscall.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/syscall.c b/lib/syscall.c index 17d5ff5fa6a3..2c6cd1b5c3ea 100644 --- a/lib/syscall.c +++ b/lib/syscall.c @@ -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; } |