Subject: bin/14117: fsck, swapon, mount seg-fault when reading an incorrect fstab
To: None <gnats-bugs@gnats.netbsd.org>
From: None <br+netbsd.org@panix.com>
List: netbsd-bugs
Date: 10/01/2001 13:36:11
>Number:         14117
>Category:       bin
>Synopsis:       fsck, swapon, mount seg-fault when reading an incorrect fstab
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 01 13:37:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Ben Rosengart
>Release:        1.5.1
>Organization:
Panix
>Environment:
NetBSD nonews2.panix.com 1.5.1 NetBSD 1.5.1 (PANIX-STD) #0: Fri Jul 20 21:16:25 EDT 2001     devnull@panix.com:/devel/netbsd/1.5.1/src/sys/arch/i386/compile/PANIX-STD i386

>Description:
When the "options" field is left out of /etc/fstab, several
utilities dump core.  I noticed mount, swapon, and fsck doing this,
but others may do it as well.
>How-To-Repeat:
Create the following fstab:

/dev/wd0a	/	ffs	1	1

and boot.
>Fix:
Put real error checking in the affected utilities.
>Release-Note:
>Audit-Trail:
>Unformatted: