NetBSD Problem Report #14862

Received: (qmail 4068 invoked from network); 7 Dec 2001 09:46:53 -0000
Message-Id: <200112071146.fB7Bkqo00315@test-s4.nagler-software.com>
Date: Fri, 7 Dec 2001 12:46:52 +0100 (CET)
From: wgstuken@nagler-company.com
Reply-To: wgstuken@nagler-company.com
To: gnats-bugs@gnats.netbsd.org
Subject: raidframe autoconfig causes panic during startup
X-Send-Pr-Version: 3.95

>Number:         14862
>Category:       kern
>Synopsis:       raidframe autoconfig causes panic during startup
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 07 09:47:00 +0000 2001
>Closed-Date:    Sun Dec 16 22:58:30 +0000 2001
>Last-Modified:  Sun Dec 16 22:58:30 +0000 2001
>Originator:     Wolfgang Stukenbrock
>Release:        NetBSD 1.5.2 release
>Organization:
Dr. Nagler & Company GmbH
>Environment:

System: NetBSD test-s3 1.5.2 NetBSD 1.5.2 (NSW-Firewall) #2: Thu Nov 29 15:07:53 CET 2001 wgstuken@test-s4:/export/netbsd-1.5.2/usr/src/sys/arch/i386/compile/NSW-Firewall i386


>Description:
	If for some reasons the raid configuration information on the harddisk get wired, the raidframe driver
	tries to autoconfigure raid-devices that are not configured in the kernel.
        The kernel variable numraid is set to 4 (as mentioned in the kernel configuration file). This will configure
	4 raidframe devices numbered 0 to 3.
	But in the file rf_netbsdkintf.c for example, valid raid device numbers are checked with '< 0" and '>= numraid'.
	This will accept raid4, but no memory has been allocated for that before ...
>How-To-Repeat:
	corrupt raidframe autoconfigure information so that raidframe assumes to configure a raid4 device and reboot.
>Fix:
	replace the '>=" by '>' in various places in the raidframe driver sources
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: oster 
State-Changed-When: Sun Dec 16 14:57:55 PST 2001 
State-Changed-Why:  
The off-by-one bug was corrected, and the other 'bugs' turned out 
not to be bugs after all. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.