Subject: bin/17735: swapctl causes panic when no swap partition is defined
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 07/27/2002 20:01:51
>Number:         17735
>Category:       bin
>Synopsis:       swapctl causes panic when no swap partition is defined
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 27 03:00:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        NetBSD 1.6E, 20020726
>Organization:
>Environment:
System: NetBSD mofo 1.6E NetBSD 1.6E (GENERIC) #0: Sat Jul 27 02:36:36 EST 2002 grant@mofo:/raid/netbsd/current/20020726/i386/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
`swapctl -A -t blk' (as called from rc.d/swap1) causes a panic if no
swap partitions are defined.

boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
Sat Jul 27 19:39:52 EST 2002
uvm_fault(0xe3247468, 0x0, 0, 2) -> e
kernel: page fault trap, code=0
Stopped in pid 19 (swapctl) at  bufq_free+0x86: movl    $0,         0(%eax)
db> trace
bufq_free(c10bd0d4,c10bd0e8,e328af40,c03660d0,e32881dc,1,a,0) at bufq_free+0x86
sys_swapctl(e3261914,e328af80,e328af78,c03779c4) at sys_swapctl+0x430
syscall_plain(1f,1f,1f,1f,0) at syscall_plain+0xa7

>How-To-Repeat:
run `swapctl -A' with no swap partitions defined.

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: