]> Git Repo - linux.git/commit
fs/proc: Stop reporting eip and esp in /proc/PID/stat
authorAndy Lutomirski <[email protected]>
Fri, 30 Sep 2016 17:58:56 +0000 (10:58 -0700)
committerIngo Molnar <[email protected]>
Thu, 20 Oct 2016 07:21:41 +0000 (09:21 +0200)
commit0a1eb2d474edfe75466be6b4677ad84e5e8ca3f5
tree3966a6309145b8e7982d32e4903c64654118d697
parent137baabe351e0554d06c6d5c84059fe343e2791e
fs/proc: Stop reporting eip and esp in /proc/PID/stat

Reporting these fields on a non-current task is dangerous.  If the
task is in any state other than normal kernel code, they may contain
garbage or even kernel addresses on some architectures.  (x86_64
used to do this.  I bet lots of architectures still do.)  With
CONFIG_THREAD_INFO_IN_TASK=y, it can OOPS, too.

As far as I know, there are no use programs that make any material
use of these fields, so just get rid of them.

Reported-by: Jann Horn <[email protected]>
Signed-off-by: Andy Lutomirski <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Linux API <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Tetsuo Handa <[email protected]>
Cc: Tycho Andersen <[email protected]>
Link: http://lkml.kernel.org/r/a5fed4c3f4e33ed25d4bb03567e329bc5a712bcc.1475257877.git.luto@kernel.org
Signed-off-by: Ingo Molnar <[email protected]>
fs/proc/array.c
This page took 0.053933 seconds and 4 git commands to generate.