Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761567AbXFDWkR (ORCPT ); Mon, 4 Jun 2007 18:40:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756358AbXFDWkF (ORCPT ); Mon, 4 Jun 2007 18:40:05 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:55986 "EHLO the-village.bc.nu" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753540AbXFDWkC (ORCPT ); Mon, 4 Jun 2007 18:40:02 -0400 Date: Mon, 4 Jun 2007 23:44:53 +0100 From: Alan Cox To: Andi Kleen Cc: Jeff Dike , Zach Brown , Ingo Molnar , LKML Subject: Re: Syslets, signals, and security Message-ID: <20070604234453.06162eb9@the-village.bc.nu> In-Reply-To: References: <20070604163145.GA7144@c2.user-mode-linux.org> <20070604174542.GD29201@mami.zabbo.net> <20070604191349.GA8903@c2.user-mode-linux.org> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.8; i386-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 866 Lines: 18 > The problem is that you would need to reference count/lock them in every > syscall or ioctl or similar. Otherwise another thread > could change them in the middle of a syscall which wouldn't be > good. Doing this full reference counting would be probably somewhat > expensive with more locked cycles and also a lot of work to implement. > You would need to audit large parts of the source tree. It also mucks up the rather more powerful existing behaviour unless we make the changing optional in which case it gets *really ugly* > I don't think it's a good idea. Ditto (and glibc handles it for userspace posix APIs) - 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/