From: Ian Kent Subject: Re: compat: autofs v5 packet size ambiguity - update Date: Thu, 23 Feb 2012 10:11:55 +0800 Message-ID: <1329963115.2244.17.camel@perseus.themaw.net> References: <20120221.221609.218135609185671883.davem@davemloft.net> <1329889428.2193.45.camel@perseus.themaw.net> <1329890027.2193.48.camel@perseus.themaw.net> <1329890251.2193.50.camel@perseus.themaw.net> <1329903139.2193.66.camel@perseus.themaw.net> <1329961703.2244.8.camel@perseus.themaw.net> <1329962955.2244.16.camel@perseus.themaw.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=themaw.net; h= message-id:subject:from:to:cc:date:in-reply-to:references :content-type:content-transfer-encoding:mime-version; s=mesmtp; bh=7BTQCdzlrzS5G6ZPLDN7ebsJAtA=; b=YVen4ZCRWvSJ1Khu61RhrtRgiEW7 v9lZLRcPtuh3jLgNLUT7cq4qU0Hk8FBfnUT76soNxQvOTpw/s+0Ls4aVAujbjanA S4A1vG41vifNvkY8RQ71PHVqjAWewASSRsG1ZMdYi7xB+aKBjKodZarCDqEywGVR DTCLx7T1b1S/xa0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:content-transfer-encoding :mime-version; s=smtpout; bh=7BTQCdzlrzS5G6ZPLDN7ebsJAtA=; b=SKR rCVYW9nfP2/0W1oqlbGhwHrDaxBKbPeztRGrG8iV+YOGQ3hweiVnoubXOQYzen0u cvkjMyY5rsA4BCkU10mMCoZOzAiQaExLWsD6jBbbfYE1igzWP8GAps9t/f/Fyhtx 9Y2G/yY+txMo5sgb4xO8e3Sgsjh1SklJJHxuaqjo= In-Reply-To: <1329962955.2244.16.camel@perseus.themaw.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Linus Torvalds Cc: David Miller , linux-kernel@vger.kernel.org, "H. Peter Anvin" , autofs@vger.kernel.org, Thomas Meyer , Al Viro On Thu, 2012-02-23 at 10:09 +0800, Ian Kent wrote: > On Wed, 2012-02-22 at 17:56 -0800, Linus Torvalds wrote: > > On Wed, Feb 22, 2012 at 5:48 PM, Ian Kent wrote: > > > > > > Sorry, I think your wrong this time. > > > > Well, that would be good, actually. Doing the test itself at mount > > time is certainly the simpler approach. > > > > >> The autofs "mount" is done by fork + execve("mount"). > > > > > > It's done like this when mounting things inside an already mounted > > > indirect autofs mount or when mounting things on autofs direct mount > > > triggers but, in version 5, mount(2) has always used to mount autofs > > > file systems. > > > > Is that true for legacy autofs daemons too that distros ship? Because > > those are the ones we'd be fighting.. > > That's a good point. > > > > > Because when I do > > > > git grep '\ > > > (that's a space and a tab in that pattern) on the autofs-4.1.4 sources > > I downloaded, I don't see a single call to mount. But I do see > > spawning of PATH_MOUNT. And one of them is with "-t", "autofs". > > Sure, that's true, and you'll see it uses the mount option maxproto with > the value of AUTOFS_MAX_PROTO_VERSION. But autofs uses it's own copy of > the headers so AUTOFS_MAX_PROTO_VERSION is 4 not 5 so it won't be > affected by this change. Not to mention that v4 just won't work with a v5 packet. > > Ian