Reply-To: kernel-hardening@lists.openwall.com From: ebiederm@xmission.com (Eric W. Biederman) References: <20120323190855.GA27213@www.outflux.net> Date: Thu, 02 Aug 2012 04:11:41 -0700 In-Reply-To: (richard's message of "Thu, 2 Aug 2012 12:35:57 +0200") Message-ID: <87pq7935w2.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [kernel-hardening] Re: [PATCH v2] futex: mark get_robust_list as deprecated To: richard -rw- weinberger Cc: Kees Cook , Thomas Gleixner , linux-kernel@vger.kernel.org, Randy Dunlap , Darren Hart , Peter Zijlstra , Andrew Morton , Jiri Kosina , David Howells , "Serge E. Hallyn" , linux-doc@vger.kernel.org, kernel-hardening@lists.openwall.com, spender@grsecurity.net List-ID: richard -rw- weinberger writes: > On Fri, Mar 23, 2012 at 8:08 PM, Kees Cook wrote: >> Notify get_robust_list users that the syscall is going away. >> >> Suggested-by: Thomas Gleixner >> Signed-off-by: Kees Cook >> --- > > I'm using this system call in an application and noticed that's marked > as deprecated now. > My application collects all kind of information from crashing programs. > It's installed in /proc/sys/kernel/core_pattern. > > If program X is crashing it executes get_robust_list(X) to get the > address of the robust list > and reads the list from /proc/X/mem. > > Is there another way to get the robust list from another program (by it's pid)? The folks doing checkpoint/restart claim to not need this, so there might be a way either that or they just haven't hit this problem yet. What you are doing sounds like a reasonable use of get_robust_list to me. Eric