From owner-freebsd-bugs Sat Feb 17 17:00:03 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA08559 for bugs-outgoing; Sat, 17 Feb 1996 17:00:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA08549 Sat, 17 Feb 1996 17:00:01 -0800 (PST) Resent-Date: Sat, 17 Feb 1996 17:00:01 -0800 (PST) Resent-Message-Id: <199602180100.RAA08549@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, nops@maths.tcd.ie Received: from salmon.maths.tcd.ie (mmdf@salmon.maths.tcd.ie [134.226.81.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id QAA08437 for ; Sat, 17 Feb 1996 16:57:48 -0800 (PST) Received: from synge.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id aa24509; 18 Feb 96 0:57 GMT Received: (from dwmalone@localhost) by synge.maths.tcd.ie (8.6.12/8.6.12) id AAA13877; Sun, 18 Feb 1996 00:57:37 GMT Message-Id: <199602180057.AAA13877@synge.maths.tcd.ie> Date: Sun, 18 Feb 1996 00:57:37 GMT From: dwmalone@maths.tcd.ie Reply-To: nops@maths.tcd.ie To: FreeBSD-gnats-submit@freebsd.org Cc: nops@maths.tcd.ie X-Send-Pr-Version: 3.2 Subject: kern/1031: mount can panic system. Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 1031 >Category: kern >Synopsis: mount can panic system. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 17 17:00:01 PST 1996 >Last-Modified: >Originator: David Malone >Organization: School of Mathematics, Trinity College, Dublin, Ireland. >Release: FreeBSD 2.1-STABLE i386 >Environment: FreeBSD 2.1, I've tried the stale version and an earlier snapshot. >Description: Bad command line arguments to mount will either cause processes to hang in the kernel or panic the machine. This seems to happen whenever the device and the directory for the mount point are the same. The panic says: ufs_lock: recursive lock not eexpected, pid: whatever >How-To-Repeat: This panics our 2.1.0-RELEASE and 2.1.0-951020-SNAP system: mount /etc /etc As a normal user you can try : mkdir /tmp/x mount -t msdos /tmp/x /tmp/x This paniced my 2.1.0-951020-SNAP. >Fix: Be more carefull with what arguements you give mount ? >Audit-Trail: >Unformatted: