Received: by oss.sgi.com id ; Wed, 10 May 2000 06:04:39 +0000 Received: from deliverator.sgi.com ([204.94.214.10]:13682 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 10 May 2000 06:04:10 +0000 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via SMTP id WAA21227 for ; Tue, 9 May 2000 22:59:18 -0700 (PDT) mail_from (dxm@clouds.melbourne.sgi.com) Received: from clouds.melbourne.sgi.com (clouds.melbourne.sgi.com [134.14.55.166]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id QAA26511 for <@larry.melbourne.sgi.com:linux-xfs@oss.sgi.com>; Wed, 10 May 2000 16:01:33 +1000 Received: from localhost (dxm@localhost) by clouds.melbourne.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via SMTP id QAA72713 for ; Wed, 10 May 2000 16:01:29 +1000 (EST) Message-Id: <200005100601.QAA72713@clouds.melbourne.sgi.com> X-Mailer: exmh version 2.0.2 2/24/98 To: linux-xfs@oss.sgi.com Subject: race in unmount code. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 10 May 2000 16:01:29 +1000 From: Daniel Moore Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linux-xfs-outgoing I finally found a way of tickling an problem I've been seeing every-so-often during my testing: yes cat /proc/mounts | tcsh & mount /dev/hda6 /mnt/arch0 -t xfs ; umount /dev/hda6 ; kill % (one line - ie cat /proc/mounts repeatedly in the background whilst unmounting) try it a couple of times until you get a NULL pointer dereference in d_path. I'm pretty sure the problem is because d_umount (called from do_umount in super.c) sets s_root to NULL then does other stuff which causes the kernel to sleep and allows entry to get_filesystem_info from a syscall while the superblock is in a screwy state. After that, I'm lost - it does seem to be XFS specific. (yes it's a contrived example, but it demonstrates a bug I've been seeing in more or less normal operation) Any ideas people? I've got to get back to testing. ----------------------------------------------------- Daniel Moore dxm@sgi.com R&D Software Engineer Phone: +61-3-98348209 SGI Performance Tools Group Fax: +61-3-98132378 -----------------------------------------------------