From nobody@FreeBSD.org  Wed May  5 18:12:30 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 298A016A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 May 2004 18:12:30 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D009743D66
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 May 2004 18:12:28 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i461CSLu042801
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 5 May 2004 18:12:28 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i461CSbU042800;
	Wed, 5 May 2004 18:12:28 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200405060112.i461CSbU042800@www.freebsd.org>
Date: Wed, 5 May 2004 18:12:28 -0700 (PDT)
From: Brian Eng <brian@midstream.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pnpbios_identify() queries for more devices than the system has
X-Send-Pr-Version: www-2.3

>Number:         66306
>Category:       i386
>Synopsis:       pnpbios_identify() queries for more devices than the system has [5.1]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 05 18:20:22 PDT 2004
>Closed-Date:    Mon Sep 11 11:56:27 GMT 2006
>Last-Modified:  Mon Sep 11 11:56:27 GMT 2006
>Originator:     Brian Eng
>Release:        5.1-RELEASE
>Organization:
MidStream Technologies
>Environment:
>Description:
On some CPU cards, the kernel crashes while processing PNP devices
during bootup.  Booting verbose and stepping through pnpbios_identify()
reveals that it continues to iterate after processing the last device,
and consequently crashes on the BIOS call.
>How-To-Repeat:
I've seen it most recently on a Trenton CP16 CPCI CPU card, but there
have been other boards in which PNP has given me trouble.
>Fix:
pnpbios_identify() in sys/i386/i386/bios.c basically asks the BIOS how
many PNP devices there are and does a simple 'for' loop to query the
BIOS the right number of times.  The counter is int left, but searching
on 'left' reveals that it is changed inside the loop (!).  I don't
understand the use inside the code, but it looks to me like the original
author (msmith in rev 1.16) reused the variable when he should have
created a different one.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Mon Sep 11 11:48:31 UTC 2006 
State-Changed-Why:  
Hello, 

A lot had been changed from 5.1 to now 6.1 can you please 
test the latter one (6.1) to see whether the problem is 
still persisting there? 

thanks! 


Responsible-Changed-From-To: freebsd-i386->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Sep 11 11:48:31 UTC 2006 
Responsible-Changed-Why:  
Grab the PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66306 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Mon Sep 11 11:56:24 UTC 2006 
State-Changed-Why:  
the mail bounces to the submitter, close the pr 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66306 
>Unformatted:
