From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] vfs: initialize d_iname to null for long file names Date: Wed, 26 Nov 2008 11:45:05 -0500 Message-ID: <20081126164505.GA16175@infradead.org> References: <20081126134105.GA25795@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , Eric Van Hensbergen , Latchesar Ionkov , v9fs-developer@lists.sourceforge.net, LKML , linux-fsdevel To: Wu Fengguang Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:41246 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752500AbYKZQpR (ORCPT ); Wed, 26 Nov 2008 11:45:17 -0500 Content-Disposition: inline In-Reply-To: <20081126134105.GA25795@localhost> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Nov 26, 2008 at 09:41:05PM +0800, Wu Fengguang wrote: > dentry->d_iname is currently uninitialized for long file names. Init > it to null string to avoid bad behaviors on careless references to it. I don't really see the point. If your code references it's already buggy. The only proper way to acces it is through dentry->d_name.