From mi@rtfm.ziplink.net  Thu Jun 18 22:39:48 1998
Received: from aldan.ziplink.net (mi@kot.ne.mediaone.net [24.128.29.55])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA29390
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Jun 1998 22:39:47 -0700 (PDT)
          (envelope-from mi@rtfm.ziplink.net)
Received: from rtfm.ziplink.net (rtfm [199.232.255.52])
	by aldan.ziplink.net (8.8.8/8.8.7) with ESMTP id FAA00824
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 19 Jun 1998 05:39:44 GMT
	(envelope-from mi@rtfm.ziplink.net)
Received: (from mi@localhost)
	by rtfm.ziplink.net (8.8.8/8.8.5) id BAA18761;
	Fri, 19 Jun 1998 01:39:43 -0400 (EDT)
Message-Id: <199806190539.BAA18761@rtfm.ziplink.net>
Date: Fri, 19 Jun 1998 01:39:43 -0400 (EDT)
From: Mikhail Teterin <mi@aldan.algebra.com>
Reply-To: mi@aldan.algebra.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: swapon succeeds on bogus partitions
X-Send-Pr-Version: 3.2

>Number:         6988
>Category:       bin
>Synopsis:       swapon succeeds on bogus partitions
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 18 22:40:00 PDT 1998
>Closed-Date:    Sat Jun 27 02:51:34 PDT 1998
>Last-Modified:  Sat Jun 27 02:51:50 PDT 1998
>Originator:     Mikhail Teterin
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

>Description:

	mi@rtfm:pk/pcscreen/public (1088) pstat -s
	Device      1K-blocks     Used    Avail Capacity  Type
	/dev/sd0s1b     32768     9572    23068    29%    Interleaved
	/dev/sd1s1b     65536     9420    55988    14%    Interleaved
	/dev/sd7s1b     32768     9128    23512    28%    Interleaved
	/dev/sd8s1b     32767     9232    23407    28%    Interleaved
	/dev/sd7b       32768      128    32512     0%    Interleaved
	/dev/sd8b       32767      212    32427     1%    Interleaved
	Total          228607    37692   190915    16%

	There is no sd7b or sd8b -- they are sd7s1b and sd8s1b respectively.
	Yet, swapon allowed me to add one after another, and they seem to
	now be used for paging! Without ``swapon -u'' I can not even
	stop this non-sence without reboot, which is what I'm going to
	do as soon as I finish typing this. I think, the machine can panic
	any time now...

>How-To-Repeat:

	See description

>Fix:
	
	Watch those partitions...
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sat Jun 27 02:51:34 PDT 1998 
State-Changed-Why:  
don't do that then... 
>Unformatted:
