Subject: kern/36053: hfs panic
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <twetzel@gwdg.de>
List: netbsd-bugs
Date: 03/21/2007 16:30:03
>Number: 36053
>Category: kern
>Synopsis: hfs panic
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 21 16:30:03 +0000 2007
>Originator: Timm Wetzel
>Release: -current, kernel: 4.99.15/2007-03-19, userland: releng 200703100002Z
>Organization:
>Environment:
NetBSD/macppc iBook G3
>Description:
A long directory listing of an HFS volume panics the kernel: (transcription by hand)
panic:lockmgr release of unlocked lock! (flags 0, sharecount 0, exclusivecount 0, recursecount 0, waitcount 0, wmesg vnlock)
db> bt
panic
lockpanic
lockmgr
genfs_unlock
VOP_UNLOCK
vput
namei
do_sys_stat
sys___lstat30
syscall_plain
The kernel is GENERIC plus hfs, DEBUG, DIAGNOSTIC minus many PCI/cardbus devices. The HFS volume is a small 8.5MB Apple_Boot partition containing bootinfo.txt, ofwboot.xcf, kernel and volume name icon. It's unlikely to matter, but both root and HFS partitions are on a FireWire disk.
>How-To-Repeat:
mount -v -t hfs -r /dev/sd0a /mnt
ls /mnt # OK
ls -l /mnt # panic
>Fix: