NetBSD Problem Report #7747
Received: (qmail 20375 invoked from network); 10 Jun 1999 03:49:20 -0000
Message-Id: <199906100346.LAA01260@leek.chersonese.com>
Date: Thu, 10 Jun 1999 11:46:51 +0800 (MYT)
From: ronald@chersonese.com
To: gnats-bugs@gnats.netbsd.org
Subject: umount -R core dumps
X-Send-Pr-Version: 3.95
>Number: 7747
>Category: bin
>Synopsis: umount -R core dumps
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 09 20:50:01 +0000 1999
>Closed-Date: Mon Aug 02 02:41:02 +0000 1999
>Last-Modified: Mon Aug 02 02:41:26 +0000 1999
>Originator: Ronald Khoo
>Release: As per uname below
>Organization:
At home
>Environment:
System: NetBSD leek.chersonese.com 1.4C NetBSD 1.4C (LEEK_IPF_GDB) #0: Thu Jun 10 10:40:55 MYT 1999 ronald@leek.chersonese.com:/usr/src/sys/arch/i386/compile/LEEK_IPF_GDB i386
>Description:
Variable "type" in umountfs() is used without being initialised
if -R is specified.
>How-To-Repeat:
leek# mount -t kernfs kernfs /kern
leek# umount -R /kern
Segmentation fault (core dumped)
Inspect code in umountfs(), and notice that the variable "type"
is used in the strcmp with nfs without having been initialised.
>Fix:
*** umount.c- Thu Jun 10 11:22:11 1999
--- umount.c Thu Jun 10 11:35:58 1999
***************
*** 288,294 ****
return (1);
}
! if (!strncmp(type, MOUNT_NFS, MFSNAMELEN) &&
(hp != NULL) && !(fflag & MNT_FORCE)) {
*delimp = '\0';
memset(&saddr, 0, sizeof(saddr));
--- 288,294 ----
return (1);
}
! if (!raw && !strncmp(type, MOUNT_NFS, MFSNAMELEN) &&
(hp != NULL) && !(fflag & MNT_FORCE)) {
*delimp = '\0';
memset(&saddr, 0, sizeof(saddr));
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: sommerfeld
State-Changed-When: Sun Aug 1 19:41:02 PDT 1999
State-Changed-Why:
Fxix from PR applied
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.