From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751420AbdINPiM (ORCPT ); Thu, 14 Sep 2017 11:38:12 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:43354 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbdINPiK (ORCPT ); Thu, 14 Sep 2017 11:38:10 -0400 Date: Thu, 14 Sep 2017 17:37:20 +0200 (CEST) From: Thomas Gleixner To: John Ogness cc: Andy Lutomirski , Al Viro , Andrew Morton , Borislav Petkov , Brian Gerst , Kees Cook , Linus Torvalds , Linux API , Peter Zijlstra , Tetsuo Handa , Tycho Andersen , Ingo Molnar , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] fs/proc: report eip/esp in /prod/PID/stat for coredumping In-Reply-To: <87poatfwg6.fsf@linutronix.de> Message-ID: References: <87poatfwg6.fsf@linutronix.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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