Subject: kern/9058: Easy to panic kernel with cd9660
To: None <gnats-bugs@gnats.netbsd.org>
From: Lennart Augustsson <augustss@augustsson.net>
List: netbsd-bugs
Date: 12/26/1999 09:15:50
>Number: 9058
>Category: kern
>Synopsis: Easy to panic kernel with cd9660
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 26 09:15:00 1999
>Last-Modified:
>Originator: Lennart Augustsson
>Organization:
Department of Computing Science, Chalmers University
>Release: NetBSD-current 1999-12-25
>Environment:
System: NetBSD opus 1.4P NetBSD 1.4P (OPUS) #149: Wed Dec 22 23:02:25 CET 1999 augustss@opus:/extra/NetBSD/src/sys/arch/i386/compile/OPUS i386
>Description:
I was being naive and thought I could copy a CD by using dd
to copy the image off the old CD, savinging it on a file
and then using cdrecord to write a new CD. The new CD made
the kernel panic.
My guess is that any invalid file system will make it panic,
but I've not tested.
>How-To-Repeat:
Take a CD, copy it to a file or a CD. Mount the file or CD.
Observe this:
panic: locking against myself
panic()
lockmgr()
genfs_lock() (at offset 0x1f)
vrele()
cd9660_mount()
sys_mount()
syscall()
>Fix:
I have no clue.
>Audit-Trail:
>Unformatted: