From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757523AbXGHSva (ORCPT ); Sun, 8 Jul 2007 14:51:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754839AbXGHSvX (ORCPT ); Sun, 8 Jul 2007 14:51:23 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:46576 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754626AbXGHSvW (ORCPT ); Sun, 8 Jul 2007 14:51:22 -0400 Date: Sun, 8 Jul 2007 19:51:18 +0100 From: Al Viro To: Linus Torvalds Cc: Ulrich Drepper , Markus Trippelsdorf , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: 2.6.22-rc6(mm1) Unable to handle kernel NULL pointer dereference - git-bisect result Message-ID: <20070708185118.GL21668@ftp.linux.org.uk> References: <20070708051452.GA4140@gentoox2.trippelsdorf.de> <20070708012016.455ce8d5.akpm@linux-foundation.org> <20070708100911.GA4196@gentoox2.trippelsdorf.de> <20070708152808.GA5902@gentoox2.trippelsdorf.de> <469119A3.6030409@redhat.com> <20070708173416.GG21668@ftp.linux.org.uk> <469121DA.6030600@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 08, 2007 at 11:38:20AM -0700, Linus Torvalds wrote: > I do think that it would be even nicer to just have a function that fills > in the "struct nameidata" from the dfd. I think we should be able to: the > "struct file" really does have the "f_path" thing with both dentry and mnt > information, and that would clean up that whole ugly "filepointer-vs-nd" > thing a lot. > > That would be an "Al cleanup", though. What do you think, Al? I think that we need to go the other way round - gather nameidata ->nd and ->dentry into struct path and pass pointer to that instead... But that's .23-rc1 fodder, if not .23-rc2 one (we might want to do -rc2 with just that, to avoid conflicts with pending patches). Definitely not for .22-final.