Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763426AbZFPVFt (ORCPT ); Tue, 16 Jun 2009 17:05:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756614AbZFPVFl (ORCPT ); Tue, 16 Jun 2009 17:05:41 -0400 Received: from mx2.redhat.com ([66.187.237.31]:37748 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753814AbZFPVFk (ORCPT ); Tue, 16 Jun 2009 17:05:40 -0400 Date: Tue, 16 Jun 2009 23:00:15 +0200 From: Oleg Nesterov To: Linus Torvalds Cc: David Howells , Eugene Teo , James Morris , Roland McGrath , solar@openwall.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] shift current_cred() from __f_setown() to f_modown() Message-ID: <20090616210015.GA1879@redhat.com> References: <4A36532E.3050006@redhat.com> <20090615174544.GA10467@redhat.com> <4A36E555.80206@redhat.com> <20090616183829.GA10027@redhat.com> <20090616200746.GA28663@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 944 Lines: 26 On 06/16, Linus Torvalds wrote: > > > On Tue, 16 Jun 2009, Oleg Nesterov wrote: > > > > Shift current_cred() from __f_setown() to f_modown(). This reduces > > the number of arguments and saves 48 bytes from fs/fcntl.o. > > Ok, I know I asked for this, but now I suddenly start worrying about > whether f_owner.uid/euid are initialized at all for the pid==NULL case? > > They used to be initialized to zero, now they are left alone. Are they > initialized somewhere else earlier? I think this is fine, but I should have mentioned this in the changelog. If f_owner.pid == NULL we never use f_owner.uid/euid. Otherwise we have a bug anyway: we must not send signals if pid was reset to NULL. Oleg. -- 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/