From scot@poptart.org  Sun Sep  7 10:48:33 1997
Received: from Billy.melrose.org (dial100.web-plus.co.uk [193.192.199.100])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA03272
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 7 Sep 1997 10:48:30 -0700 (PDT)
Received: (from scot@localhost)
	by Billy.melrose.org (8.8.5/8.8.5) id SAA00546;
	Sun, 7 Sep 1997 18:45:53 +0100 (BST)
Message-Id: <199709071745.SAA00546@Billy.melrose.org>
Date: Sun, 7 Sep 1997 18:45:53 +0100 (BST)
From: scot@poptart.org
Reply-To: scot@poptart.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: <Synopsis of the problem (one line)>Kernel panic executing a directory
X-Send-Pr-Version: 3.2

>Number:         4487
>Category:       kern
>Synopsis:       Kernel panic executing a directory
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep  7 10:50:00 PDT 1997
>Closed-Date:    Wed Jul 7 05:07:10 PDT 1999
>Last-Modified:  Wed Jul  7 05:07:53 PDT 1999
>Originator:     Scot Elliott
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
Extreme Technologies LTD
>Environment:
	uname -a gives:

	FreeBSD Billy.melrose.org 2.2-STABLE FreeBSD 2.2-STABLE #0:
	Sat Aug  2 00:17:32 BST 1997
	scot@Choccy.poptart.org:/usr/src/sys/compile/IDE  i386


	bash --version gives:

	GNU bash, version 2.00.0(1)-release (i386-unknown-freebsd2.2)
	Copyright 1996 Free Software Foundation, Inc.


>Description:
	Kernel panic:
		panic : ufs_lock : recursive lock not expected, pid:...

	occurs when any user executes '..' or '/' etc from a bash-2 prompt.
	This does not occur under sh, so bash- needs to do more checking of
	it's command line... but anyway, a normal user should not be able
	to reboot the machine simply by executing a directory.
	Note that not all directories make the kernel panic.... it appears
	to be .. and /.  Typing 'which ..' gives /home/scot/bin, which is the
	first item on my path.. so maybe '..' executes /home/scot/bin/..
	which recurses back to /.

>How-To-Repeat:
	Type '/' and hit enter from a bash-2 prompt.

>Fix:
	
	Unknown....


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: max 
Responsible-Changed-When: Sun Sep 7 13:59:43 PDT 1997 
Responsible-Changed-Why:  
Misfiled PR. 

From: Nick Hibma <nick.hibma@jrc.it>
To: freebsd-gnats-submit@freebsd.org, scot@poptart.org
Cc:  
Subject: Re: kern/4487: Kernel panic executing a directory
Date: Wed, 07 Jul 1999 13:53:04 +0200

 n_hibma@elpc36$ /
 bash: /: is a directory
 n_hibma@elpc36$ bash --version
 GNU bash, version 2.02.1(1)-release (i386-pc-freebsd3.0)
 Copyright 1998 Free Software Foundation, Inc.
 
 
 This is the case on 3.1-STABLE and 4.0-CURRENT, and bash
 
 GNU bash, version 2.02.1(1)-release (i386--freebsd3.1)
 Copyright 1998 Free Software Foundation, Inc.
 
 GNU bash, version 2.02.1(1)-release (i386-pc-freebsd3.0)
 Copyright 1998 Free Software Foundation, Inc.
 
 mda12:n_hibma% /
 bash: /: is a directory
 mda12:n_hibma% bash --version
 GNU bash, version 2.02.0(1)-release (i386-pc-freebsd2.2.6)
 Copyright 1998 Free Software Foundation, Inc.
 
 
 I think this PR can be closed with the current version of bash and the
 OS. Maybe upgrading the bash version would suffice. bash-2.00.0 is the
 initial 2.x release and therefore bound to be unstable.
 
 Cheers
 
 Nick
 
 -- 
 ISIS/STA, T.P.270, Joint Research Centre, 21020 Ispra, Italy
 
State-Changed-From-To: open->closed 
State-Changed-By: n_hibma 
State-Changed-When: Wed Jul 7 05:07:10 PDT 1999 
State-Changed-Why:  
Problem is old, cannot be reproduced. 
>Unformatted:
