From owner-freebsd-bugs Tue Aug 15 20:50: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0B19037B6A4 for ; Tue, 15 Aug 2000 20:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA57798; Tue, 15 Aug 2000 20:50:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from tsukuba.m17n.org (tsukuba.m17n.org [192.47.44.130]) by hub.freebsd.org (Postfix) with ESMTP id 8537A37BB1A for ; Tue, 15 Aug 2000 20:45:07 -0700 (PDT) (envelope-from akr@m17n.org) Received: from fs.m17n.org (root@fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.9.3/3.7W-19991231100513) with ESMTP id MAA11627 for ; Wed, 16 Aug 2000 12:45:05 +0900 (JST) (envelope-from akr@m17n.org) Received: from coulee.m17n.org (coulee.m17n.org [192.47.44.94]) by fs.m17n.org (8.9.3/3.7W-19990906215257) with ESMTP id MAA02559 for ; Wed, 16 Aug 2000 12:45:04 +0900 (JST) Received: by coulee.m17n.org (Postfix, from userid 23483) id D97A59F; Wed, 16 Aug 2000 12:45:21 +0900 (JST) Message-Id: <20000816034521.D97A59F@coulee.m17n.org> Date: Wed, 16 Aug 2000 12:45:21 +0900 (JST) From: akr@m17n.org Reply-To: akr@m17n.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/20632: stacking mount_null causes an error: mount_null: Resource deadlock avoided Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20632 >Category: kern >Synopsis: stacking mount_null causes an error: mount_null: Resource deadlock avoided >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 15 20:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Tanaka Akira >Release: FreeBSD 4.1-RELEASE i386 >Organization: m17n >Environment: FreeBSD coulee.m17n.org 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Thu Jul 27 04:44:16 GMT 2000 root@usw4.freebsd.org:/usr/src/sys/compile/GENERIC i386 >Description: If null file system is stacked by mount_null, following error is caused. mount_null: Resource deadlock avoided Then, umount cannot unmount the file system with same error and some commands hangs forever. >How-To-Repeat: This machine has freashly installed FreeBSD 4.1-RELEASE with default file system hierarchy. coulee# cd / coulee# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 49583 27200 18417 60% / /dev/ad0s1f 5521533 637931 4441880 13% /usr /dev/ad0s1e 19815 268 17962 1% /var procfs 4 4 0 100% /proc coulee# ls .cshrc cdrom kernel root usr .profile compat kernel.GENERIC sbin var COPYRIGHT dev mnt stand bin etc modules sys boot home proc tmp Try to mount /home to /mnt. This is no problem. coulee# mount_null /home /mnt Try to mount /home to /mnt once more. This causes an error. coulee# mount_null /home /mnt mount_null: Resource deadlock avoided Try to unmount it. This causes same error. coulee# umount /mnt umount: unmount of /mnt failed: Resource deadlock avoided `ls /home' hangs up. coulee# ls /home ^C^C^C^C >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message