Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 16 Aug 2002 10:59:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 16 Aug 2002 10:59:31 -0400 Received: from blackbird.intercode.com.au ([203.32.101.10]:9222 "EHLO blackbird.intercode.com.au") by vger.kernel.org with ESMTP id ; Fri, 16 Aug 2002 10:59:31 -0400 Date: Sat, 17 Aug 2002 01:03:20 +1000 (EST) From: James Morris To: kuznet@ms2.inr.ac.ru cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH][RFC] sigurg/sigio cleanup for 2.5.31 In-Reply-To: <200208161450.SAA29730@sex.inr.ac.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 827 Lines: 33 On Fri, 16 Aug 2002 kuznet@ms2.inr.ac.ru wrote: > Hello! > > > All existing paths which write to the pid/uid/euid fields are protected by > > the BKL > > euid? Are you about current->xxx? You jest, you read it, not write. > I'm talking about writing f_owner fields, i.e: filp->f_owner.pid = current->pid; filp->f_owner.uid = current->uid; filp->f_owner.euid = current->euid; > Ergo, never use BKL. :-) Well, do you think it's worth adding a spinlock for just one fcntl handler and the SIOCSPGRP/FIOSETOWN ioctls? - James -- James Morris - 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/