From nobody@FreeBSD.org  Wed Sep 26 19:01:35 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id E75C237B431
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Sep 2001 19:01:34 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f8R21YP89562;
	Wed, 26 Sep 2001 19:01:34 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200109270201.f8R21YP89562@freefall.freebsd.org>
Date: Wed, 26 Sep 2001 19:01:34 -0700 (PDT)
From: David Xu <davidx@viasoft.com.cn>
To: freebsd-gnats-submit@FreeBSD.org
Subject: intr_machdep.c allows access out of array bound
X-Send-Pr-Version: www-1.0

>Number:         30858
>Category:       i386
>Synopsis:       intr_machdep.c allows access out of array bound
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 26 19:10:02 PDT 2001
>Closed-Date:    Fri Jan 11 17:01:00 PST 2002
>Last-Modified:  Fri Jan 11 17:01:30 PST 2002
>Originator:     David Xu
>Release:        FreeBSD 4.4-release
>Organization:
Viasoft
>Environment:
FreeBSD davidbsd.viasoft.com.cn 4.4-RELEASE FreeBSD 4.4-RELEASE #3: Thu Sep 27 0
9:04:24 CST 2001     root@davidbsd.viasoft.com.cn:/usr/src/sys/compile/xu  i386


>Description:
in source file /sys/i386/isa/intr_machdep.c, function icu_setup
does not detect array bound correctly, allow access out of bound data.


>How-To-Repeat:

>Fix:
patch is here:
--- intr_machdep.c.orig	Thu Sep 27 09:03:29 2001
+++ intr_machdep.c	Thu Sep 27 09:04:11 2001
@@ -433,6 +433,7 @@
 #else
 	if ((u_int)intr >= ICU_LEN || intr == ICU_SLAVEID)
 #endif /* APIC_IO */
+		return (EINVAL);
 	if (intr_handler[intr] != isa_strayintr)
 		return (EBUSY);


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bmah 
State-Changed-When: Fri Jan 11 17:01:00 PST 2002 
State-Changed-Why:  
Appears to be a duplicate of PR misc/30857. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30858 
>Unformatted:
