From nobody@FreeBSD.org  Sat Sep 22 10:38:28 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 2046C37B411
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Sep 2001 10:38:28 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f8MHcSS86174;
	Sat, 22 Sep 2001 10:38:28 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200109221738.f8MHcSS86174@freefall.freebsd.org>
Date: Sat, 22 Sep 2001 10:38:28 -0700 (PDT)
From: David Hedley <david@inty.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: UDMA ICRC error results in kernel panic
X-Send-Pr-Version: www-1.0

>Number:         30744
>Category:       kern
>Synopsis:       UDMA ICRC error results in kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 22 10:40:01 PDT 2001
>Closed-Date:    Mon May 06 11:37:52 PDT 2002
>Last-Modified:  Mon May 06 11:37:52 PDT 2002
>Originator:     David Hedley
>Release:        4.4-RELEASE
>Organization:
Intelligent Network Technology Ltd
>Environment:
FreeBSD bill.inty.net 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Sat Sep 22 17:55:10 BST 2001     david@garth.hq.inty.net:/usr/src/sys/compile/GENERIC  i386
>Description:

I use a Promise TX2/100 card. From /var/run/dmesg.boot:
ar0: 19458MB <ATA RAID1 array> [2480/255/63] subdisks:
  ad4: 19458MB <Maxtor 2B020H1> [39535/16/63] at ata2-master UDMA100
  ad6: 19458MB <Maxtor 2B020H1> [39535/16/63] at ata3-master UDMA100

When an UDMA ICRC error is printed, the kernel panics with 'integer divide fault'.
>How-To-Repeat:

Generate a UDMA ICRC error on a Promise TX2/100
>Fix:

Comment out the bit of diskerr() in ufs/ufs_disksubr.c that prints the (hp0 bn %d cn %d tn %d sn %d) bit (i.e. lines 367 to 384) - that's where the problem seems to lie...

>Release-Note:
>Audit-Trail:

From: George Reid <greid@FreeBSD.org>
To: David Hedley <david@inty.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/30744: UDMA ICRC error results in kernel panic
Date: Sat, 22 Sep 2001 18:47:03 +0100

 On Sat, Sep 22, 2001 at 10:38:28AM -0700, David Hedley wrote:
 
 > >Fix:
 > 
 > Comment out the bit of diskerr() in ufs/ufs_disksubr.c that prints the
 > (hp0 bn %d cn %d tn %d sn %d) bit (i.e. lines 367 to 384) - that's where 
 > the problem seems to lie...
 
 The correct fix is to replace the cable and/or drive(s) which are at 
 fault...
 
 ~greid

From: "David Hedley" <david@inty.net>
To: "George Reid" <greid@FreeBSD.org>
Cc: <freebsd-gnats-submit@FreeBSD.org>
Subject: RE: kern/30744: UDMA ICRC error results in kernel panic
Date: Sat, 22 Sep 2001 18:53:39 +0100

 Well, yes.
 
 However, I don't expect the whole OS to go belly up if it gets one CRC
 error, especially if it can simply retry the request (which the code tries
 to do anyhow).
 
 A better solution maybe to not pass in the disklabel structure to diskerr as
 obviously some of the fields haven't been initialised (properly).
 
 > -----Original Message-----
 > From: George Reid [mailto:greid@FreeBSD.org]
 > Sent: 22 September 2001 18:47
 > To: David Hedley
 > Cc: freebsd-gnats-submit@FreeBSD.org
 > Subject: Re: kern/30744: UDMA ICRC error results in kernel panic
 >
 >
 > On Sat, Sep 22, 2001 at 10:38:28AM -0700, David Hedley wrote:
 >
 > > >Fix:
 > >
 > > Comment out the bit of diskerr() in ufs/ufs_disksubr.c that prints the
 > > (hp0 bn %d cn %d tn %d sn %d) bit (i.e. lines 367 to 384) -
 > that's where
 > > the problem seems to lie...
 >
 > The correct fix is to replace the cable and/or drive(s) which are at
 > fault...
 >
 > ~greid
 >
 > This email has been virus scanned using Sophos Anti-Virus by intY
 > (www.inty.net)
 >
 >
 
 
 --
 Information in this electronic mail message is confidential
 and may be legally privileged. It is intended solely for
 the addressee. Access to this message by anyone else is
 unauthorised. If you are not the intended recipient any 
 use, disclosure, copying or distribution of this message is
 prohibited and may be unlawful. When addressed to our
 customers, any information contained in this message is
 subject to Intelligent Network Technology Ltd Terms & Conditions.
 -----------------------------------------------
 Take part in the intY 2001 Email Usage survey
 online at http://www.inty.net/email/survey.html
 -----------------------------------------------
 
 This email has been virus scanned using Sophos Anti-Virus by intY (www.inty.net)
 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon May 6 11:36:54 PDT 2002 
State-Changed-Why:  
Fixed in 4.6 

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