Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753513Ab2HCLfp (ORCPT ); Fri, 3 Aug 2012 07:35:45 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:44193 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752281Ab2HCLfm (ORCPT ); Fri, 3 Aug 2012 07:35:42 -0400 Date: Fri, 3 Aug 2012 15:35:38 +0400 From: Cyrill Gorcunov To: richard -rw- weinberger Cc: Pavel Emelyanov , "Eric W. Biederman" , 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 Subject: Re: [PATCH v2] futex: mark get_robust_list as deprecated Message-ID: <20120803113538.GD11952@moon> References: <20120323190855.GA27213@www.outflux.net> <87pq7935w2.fsf@xmission.com> <20120803110247.GB11952@moon> <20120803112745.GC11952@moon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1784 Lines: 38 On Fri, Aug 03, 2012 at 01:30:31PM +0200, richard -rw- weinberger wrote: > On Fri, Aug 3, 2012 at 1:27 PM, Cyrill Gorcunov wrote: > > On Fri, Aug 03, 2012 at 01:19:24PM +0200, richard -rw- weinberger wrote: > >> >> > >> >> CRIU folks, how do you deal with futex robust lists? > >> > > >> > Well, I believe we were over-optimistic in claiming that we don't need this > >> > syscall (to be fair I think we simply yet not faced the problem Eric points). > >> > So we need some way to fetch this address and set it back. If get_robust_list > >> > get deprecated maybe we could print it out in /proc/pid/stat or something? > >> > >> Kees, you said get_robust_list() can be used to bypass ASLR. > >> How? What makes it worse than /proc/pid/maps? > >> > >> If the robust list address itself is bad, removing get_robust_list() > >> and putting the information into /proc is useless. > > > > Look, the /proc entry might check for some CAP and do not allow > > a regular user to fetch this address. > > We could also add another check to get_robust_list(). > It does already ptrace_may_access(). Yes, and I'm definitely not against that ;) The problem is that this syscall was marked as deprecated and if people want to drop it we need to find a way to provide this address back in a sake of c/r. If c/r is the only _one_ who needs this facility than providing the address via /proc might be worth thing to do (since I can wrap it with CONFIG_CHECKPOINT_RESTORE and a regular kernel won't see this snippet at all). Cyrill -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/