Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757331AbZKFNL3 (ORCPT ); Fri, 6 Nov 2009 08:11:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752485AbZKFNL2 (ORCPT ); Fri, 6 Nov 2009 08:11:28 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:52991 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752287AbZKFNL2 (ORCPT ); Fri, 6 Nov 2009 08:11:28 -0500 From: Arnd Bergmann To: "Eric W. Biederman" Subject: Re: [PATCH 01/11] sysctl: Separate the binary sysctl logic into it's own file. Date: Fri, 6 Nov 2009 14:11:19 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31-14-generic; KDE/4.3.2; x86_64; ; ) Cc: Christian Borntraeger , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org References: <200911061310.02785.arnd@arndb.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200911061411.19580.arnd@arndb.de> X-Provags-ID: V01U2FsdGVkX18lpTwSTTNzRQxC5RQW7roEy80oxeW04OuFSCF iQvpYkwvmjNnaVKu9Hctals2vCyltaYwXDcIsIHI1R76ZZvfUg usKwsmYA9kS8HFyJ4zdsw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 982 Lines: 22 On Friday 06 November 2009, Eric W. Biederman wrote: > The primary proc path already doesn't need the lock_kernel(). My next > patch winds up killing the entire binary path and rebuilding on top of > /proc/sys. Which removes that lock_kernel(). > > Which I think elegantly solves all of the sysctl BKL lock issues. Yes, that sounds like an excellent plan, but I'm not completely sure if the lack of the BKL in the procfs case is intentional. As a particular case that I stumbled over, 'core_pattern' is read with the BKL held to protect against sysctl changing it, but it is changed with proc_dostring without the BKL. Most uses of intvec or string seem to be racy and probably need a proper serialization method anyway. Arnd <>< -- 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/