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

From: Linus Torvalds
Date: Fri Sep 15 2017 - 15:08:17 EST


Ingo, I'm assuming I'll get this from the -tip tree, which is where I
got the original commit that this fixes.

Thanks,
Linus

On Thu, Sep 14, 2017 at 8:37 AM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> 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:
...
>> 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 <tglx@xxxxxxxxxxxxx>