Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S970682AbXFIBmY (ORCPT ); Fri, 8 Jun 2007 21:42:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S969432AbXFIBmQ (ORCPT ); Fri, 8 Jun 2007 21:42:16 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:60186 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969249AbXFIBmP (ORCPT ); Fri, 8 Jun 2007 21:42:15 -0400 Date: Sat, 9 Jun 2007 02:41:40 +0100 From: Al Viro To: Ulrich Drepper Cc: Linus Torvalds , Davide Libenzi , Alan Cox , Theodore Tso , Eric Dumazet , Kyle Moffett , Linux Kernel Mailing List , Andrew Morton , Ingo Molnar Subject: Re: [patch 7/8] fdmap v2 - implement sys_socket2 Message-ID: <20070609014140.GC4095@ftp.linux.org.uk> References: <20070608192652.4a291901@the-village.bc.nu> <4669A351.4010403@redhat.com> <20070608184650.GA4095@ftp.linux.org.uk> <4669A674.4080309@redhat.com> <20070609003622.GB4095@ftp.linux.org.uk> <466A0020.50406@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <466A0020.50406@redhat.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1374 Lines: 34 On Fri, Jun 08, 2007 at 06:19:28PM -0700, Ulrich Drepper wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Al Viro wrote: > > Exactly. Put it another way, randomizer is a stress-tester. > > ... and a security mechanism. And as such it is only useful if it is > used. Probably it should be policy-controlled whether you can turn it off. Any real-world examples of exploitable holes based on that? Real blue-sky world, not grsec-advocacy "undiscovered null ptr derefs on every corner and all of the variety fixable by our magic goo" one, please. > > Note that > > #define NR_FILES > > > > for (i = 0; i < NR_FILES; i++) > > close(i); > > You're confusing the problems. No, I'm not. The entire argument for having a separate set of descriptors is based on programs behaving in similar fashion, working correctly now but limiting what libraries can do with opening files for internal needs. So here's the question: how widespread it really is, considering that "working correctly" is not a trivial constraint. Again, I'd love to see real data; if I need handwaving, I know where to find it. - 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/