]> git.baikalelectronics.ru Git - kernel.git/commit
proc: don't report kernel addresses in /proc/<pid>/stack
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Nov 2017 00:45:56 +0000 (16:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Nov 2017 00:45:56 +0000 (16:45 -0800)
commit38d9cfcf3f5f0de4a124a726e842540a3984ce63
treefc791e24ad719f40949baa26323b2ee9185a9a05
parentca97f97b01fce484c7bca50c6b940bd02ac2f90b
proc: don't report kernel addresses in /proc/<pid>/stack

This just changes the file to report them as zero, although maybe even
that could be removed.  I checked, and at least procps doesn't actually
seem to parse the 'stack' file at all.

And since the file doesn't necessarily even exist (it requires
CONFIG_STACKTRACE), possibly other tools don't really use it either.

That said, in case somebody parses it with tools, just having that zero
there should keep such tools happy.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c