From owner-freebsd-bugs Wed Oct 16 13:10:10 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CD0937B401 for ; Wed, 16 Oct 2002 13:10:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F94E43EB3 for ; Wed, 16 Oct 2002 13:10:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9GKA3x3043189 for ; Wed, 16 Oct 2002 13:10:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9GKA3gH043188; Wed, 16 Oct 2002 13:10:03 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B26C037B401 for ; Wed, 16 Oct 2002 13:05:31 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 735D443EAA for ; Wed, 16 Oct 2002 13:05:31 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9GK5P7R053087 for ; Wed, 16 Oct 2002 13:05:25 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id g9GK5P6n053086; Wed, 16 Oct 2002 13:05:25 -0700 (PDT) Message-Id: <200210162005.g9GK5P6n053086@www.freebsd.org> Date: Wed, 16 Oct 2002 13:05:25 -0700 (PDT) From: Phungte Ha To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/44149: Diskless kernel may crash, depends on the root fs name Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44149 >Category: misc >Synopsis: Diskless kernel may crash, depends on the root fs name >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 16 13:10:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Phungte Ha >Release: 4.4. >Organization: Decru, Inc. >Environment: FreeBSD walnut 4.4-RELEASE FreeBSD 4.4-RELEASE #2: Wed Oct 16 12:45:39 PDT 2002 root@hw50.decru.com:/usr/src/sys/compile/DISKLESS i386 >Description: depends on the name of the root device, for instance: "nfs:phungte2:/local/diskless_root" the kernel can returns 1 from setrootbyname() in vfs_conf.c or can crash. >How-To-Repeat: >Fix: in setrootbyname(), the line parsing the name is currently like this: while (cp != '\0' && (*cp < '0' || *cp > '9')) cp++; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message