Thread (7 messages) 7 messages, 6 authors, 2017-09-15

Re: [PATCH] fs/proc: report eip/esp in /prod/PID/stat for coredumping

flat view

From: Thomas Gleixner <hidden>
Date: 2017-09-14 15:38:12
Also in: lkml, stable

On Thu, 14 Sep 2017, John Ogness wrote:
Commit 0a1eb2d474ed ("fs/proc: Stop reporting eip and esp in
/proc/PID/stat") stopped reporting eip/esp because it is
racey and dangerous for executing tasks. The comment adds:

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

However, existing userspace core-dump-handler applications (for
example, minicoredumper) are using these fields since they
provide an excellent cross-platform interface to these valuable
pointers. So that commit introduced a user space visible
regression.

Partially revert the change and make the readout possible for
tasks with the proper permissions and only if the target task
has the PF_DUMPCORE flag set.
Duh, I completely forgot about mini core dumper when I acked that commit.

Reviewed-by: Thomas Gleixner <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help