Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 16 Jul 2002 00:37:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 16 Jul 2002 00:37:48 -0400 Received: from leibniz.math.psu.edu ([146.186.130.2]:38299 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Tue, 16 Jul 2002 00:37:47 -0400 Date: Tue, 16 Jul 2002 00:40:42 -0400 (EDT) From: Alexander Viro To: Rusty Russell cc: torvalds@transmeta.com, pmenage@ensim.com, linux-kernel@vger.kernel.org Subject: Re: [RFC] Rearranging struct dentry for cache affinity In-Reply-To: <20020716135419.3a301947.rusty@rustcorp.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 28 On Tue, 16 Jul 2002, Rusty Russell wrote: > On Sat, 13 Jul 2002 05:11:46 -0400 (EDT) > Alexander Viro wrote: > > > futex.c is seriously b0rken. > > Really? Other than changing over to get_sb_psuedo(), what does your patch > fix? As the filesystem should never be unmounted, what am I missing? > > filp->f_op = &futex_fops; > > - filp->f_dentry = dget(futex_dentry); > > + filp->f_vfsmnt = mntget(futex_mnt); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > + filp->f_dentry = dget(futex_mnt->mnt_root); Uninitialized ->f_vfsmnt == quite a few places in the tree very unhappy. E.g. any access to /proc//fd/. I'd say that "any user can oops the kernel in a couple of lines" does qualify for serious breakage... - 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/