Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758384Ab1EMKcI (ORCPT ); Fri, 13 May 2011 06:32:08 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:55270 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758239Ab1EMKcG (ORCPT ); Fri, 13 May 2011 06:32:06 -0400 Date: Fri, 13 May 2011 06:32:02 -0400 From: Christoph Hellwig To: Peng Huang Cc: Trond Myklebust , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nfs: check a crash in nfs_lookup_revalidate Message-ID: <20110513103202.GA27578@infradead.org> References: <1305147805-5756-1-git-send-email-shawn.p.huang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1305147805-5756-1-git-send-email-shawn.p.huang@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 631 Lines: 13 On Wed, May 11, 2011 at 05:03:25PM -0400, Peng Huang wrote: > lookup_one_len() may call nfs_loopup_revalidate() with nd == NULL > indirectly, that causes the kernel crash. lookup_one_len must only be called by a filesystem or a library function called by the filesystem. You are not allowed to call it on a random filesystem like nfs that doesn't support the underlying assumptions. -- 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/