Subject: _simple_lock kernel panic while listing some procfs files
To: NetBSD current <current-users@NetBSD.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: current-users
Date: 02/16/2007 17:58:35
Hi,

I just updated my -current NetBSD/amd64 a few minutes ago ... And
quickly hit a problem. I'm getting a kernel panic while trying to list
some files in /proc with this simple command :

njoly@lanfeust [~]> sudo mount_procfs /proc /proc 
njoly@lanfeust [~]> ls /proc/*/file
[..PANIC..]

Here is the corresponding backtrace :

kernel: page fault trap, code=0
Stopped in pid 197.1 (zsh) at   netbsd:_simple_lock+0x3c:       movzbl  0(%rax),
%eax
db{0}> bt
_simple_lock() at netbsd:_simple_lock+0x3c
vref() at netbsd:vref+0x24
procfs_lookup() at netbsd:procfs_lookup+0x550
VOP_LOOKUP() at netbsd:VOP_LOOKUP+0x58
lookup() at netbsd:lookup+0x5dc
namei() at netbsd:namei+0x2c9
sys_access() at netbsd:sys_access+0xd7
syscall_plain() at netbsd:syscall_plain+0x28b
--- syscall (number 0) ---
0:

In the mean time, i have no problem with other commands such as :

   find /proc
   find /proc -ls
   ls /proc/*/exe
   ls /proc/$$/file
   ls /proc/$$/mem

This is a GENERIC.MP+DIAGNOSTIC+LOCKDEBUG kernel, with some extra
devices (mostly for hardware sensors) and COMPAT_LINUX{,32} ...

njoly@lanfeust [~]> uname -a
NetBSD lanfeust.sis.pasteur.fr 4.99.10 NetBSD 4.99.10 (LANFEUST) #1: Fri Feb 16 17:09:51 CET 2007  njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj/amd64/sys/arch/amd64/compile/LANFEUST amd64

Thanks in advance.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.