From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: compat: autofs v5 packet size ambiguity - update Date: Wed, 22 Feb 2012 10:20:56 -0800 Message-ID: <4F453208.7040902@zytor.com> References: <20120221.221609.218135609185671883.davem@davemloft.net> <1329889428.2193.45.camel@perseus.themaw.net> <4F4484F0.9070501@zytor.com> <4F4529D4.6070008@zytor.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Linus Torvalds Cc: Ian Kent , David Miller , linux-kernel@vger.kernel.org, autofs@vger.kernel.org, Thomas Meyer , Al Viro On 02/22/2012 10:16 AM, Linus Torvalds wrote: > > Because that padding word for size is just random data. > > In fact, we probably should clear it. I suspect we leak kernel stack > contents to autofs. Not that it matters (system daemon with root > privileges and all that), but it's another case of the whole "packing > data structures" issue. > Fortunately this is not true -- there is a memset(0) of the entire packet before the packet is built in kernel space. Otherwise we'd have a security hole. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.