From owner-freebsd-hackers Sun Jan 26 15:50:12 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE9E837B405; Sun, 26 Jan 2003 15:50:10 -0800 (PST) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2784343F1E; Sun, 26 Jan 2003 15:50:09 -0800 (PST) (envelope-from mb@imp.ch) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.12.6/8.12.3) with ESMTP id h0QNo5vG065601; Mon, 27 Jan 2003 00:50:05 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Mon, 27 Jan 2003 00:50:03 +0100 (CET) From: Martin Blapp To: Tim Kientzle , "" Cc: freebsd-hackers@freebsd.org Subject: Re: umount of procfs fails In-Reply-To: <20030127001151.L54133@levais.imp.ch> Message-ID: <20030127004626.E54252@levais.imp.ch> References: <20030127001151.L54133@levais.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I just checked the code. Umount(8) is fine. Unmount(2) is buggy. > Looks like the wrong got unmounted. The mountlist should > be traversed in reverse order. umount(8) works as it should: umount -v procfs procfs: unmount from /mnt (but it does unmount /proc) umount(8) hands over the right mountpoint to the kernel, which just unmounts the wrong one :( > Bye the way, mounting procfs overlay over the same existing > mount works, unmounting the first results in a PANIC (TM). There are two bugs in the kernel. First one that the wrong procfs is unmounted inside the kernel if there are two. Second is that we allow overlay mounts with procfs, but panic() on unmounting. Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message