Subject: kern/32435: wall on an netbooted machine triggers assertion in vn_lock
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <uwe@netbsd.org>
List: netbsd-bugs
Date: 01/02/2006 21:25:00
>Number:         32435
>Category:       kern
>Synopsis:       wall on an netbooted machine triggers assertion in vn_lock
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 02 21:25:00 +0000 2006
>Originator:     Valeriy E. Ushakov
>Release:        current as of 2006-01-02
>Organization:
>Environment:
NetBSD nada 3.99.15 NetBSD 3.99.15 (NADA) #1: Mon Jan  2 23:38:36 MSK 2006  uwe@sampo:/export/netbsd/cvs/src/sys/arch/hpcsh/compile/NADA hpcsh

>Description:
Running wall on a netbooted machine with a DIAGNOSTIC kernel
triggers assersion in vn_lock.  The problem is that nfs_inactive()
calls vn_lock() with LK_RECURSEFAIL, that assertion in vn_lock()
does not like.

>How-To-Repeat:
On a netbooted machine with a DIAGNOSTIC kernel run wall.

nada# echo | wall    
vn_lock: flags=220002

The above output is after replacing the assertion with printf.

>Fix: