Subject: kern/9101: "panic: locking against myself" in uvm_swap.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <danw@netbsd.org>
List: netbsd-bugs
Date: 01/01/2000 14:36:39
>Number:         9101
>Category:       kern
>Synopsis:       "panic: locking against myself" in uvm_swap.c
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan  1 14:36:00 2000
>Last-Modified:
>Originator:     Dan Winship
>Organization:
>Release:        -current
>Environment:
System: NetBSD frotz 1.4P NetBSD 1.4P (FROTZ) #2: Sat Jan  1 11:59:59 EST 2000 danw@frotz:/usr/src/sys/arch/macppc/compile/FROTZ macppc

>Description:
	Certain swapctl failures can cause the machine to panic.
>How-To-Repeat:
	Try to enable swapping to a partition that isn't listed as a swap
	partition in the disk label
>Fix:
	I think the fix is to revert revision 1.29 of uvm_swap.c: The
	comment in sys_swapctl at line 655 says vp should already be
	locked.
>Audit-Trail:
>Unformatted: