From josh@tcbug.org  Wed Feb 13 15:08:47 2008
Return-Path: <josh@tcbug.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E1CCC16A41A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Feb 2008 15:08:47 +0000 (UTC)
	(envelope-from josh@tcbug.org)
Received: from conn-smtp.mc.mpls.visi.com (conn.mc.mpls.visi.com [208.42.156.2])
	by mx1.freebsd.org (Postfix) with ESMTP id BE43B13C4EA
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Feb 2008 15:08:47 +0000 (UTC)
	(envelope-from josh@tcbug.org)
Received: from mail.tcbug.org (mail.tcbug.org [208.42.70.163])
	by conn-smtp.mc.mpls.visi.com (Postfix) with ESMTP id 85DDC787E
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Feb 2008 08:44:14 -0600 (CST)
Received: from homebase.tcbug.org (unknown [208.42.70.167])
	by mail.tcbug.org (Postfix) with ESMTP id 599D96DA046
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Feb 2008 08:44:14 -0600 (CST)
Received: from homebase.tcbug.org (localhost [127.0.0.1])
	by homebase.tcbug.org (Postfix) with ESMTP id BEAB33F41B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Feb 2008 08:44:00 +0000 (UTC)
Message-Id: <1202892240.10057@homebase.tcbug.org>
Date: Wed, 13 Feb 2008 08:44:00 -0000
From: "Josh Paetzel" <josh@tcbug.org>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: hptrr on 6.3-RELEASE/i386 causes filesystem damage and panics
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify:

>Number:         120615
>Category:       kern
>Synopsis:       [hptrr] hptrr on 6.3-RELEASE/i386 causes filesystem damage and panics
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    scottl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 13 15:10:01 UTC 2008
>Closed-Date:    Tue Feb 22 19:14:11 EST 2011
>Last-Modified:  Tue Feb 22 19:14:11 EST 2011
>Originator:     Josh Paetzel
>Release:        FreeBSD 6.3-RELEASE i386
>Organization:
>Environment:


System: FreeBSD 6.3-RELEASE #1: Mon Feb 11 03:00:24 UTC 2008
    jpaetzel@homebase.tcbug.org:/usr/obj/usr/src/sys/HOMEBASE



>Description:
This system has a highpoint 2300 RAID controller in it.  The drivers
previous to 6.3-R were available from highpoint as a .ko but in 6.3-R
they are available in the kernel as the hptrr driver.  Unfortunately
trying to use the hptrr driver results in filesystem corruption and
eventual panics.  I unfortunately didn't save a panic message, but I do
have a crash dump I can make available, and a kernel with the hptrr
driver if someone is interested in troubleshooting this.
>How-To-Repeat:
Use device hptrr instead of the highpoint supplied .ko for the 2300
RocketRaid and enjoy hourly panics.
>Fix:
The workaround at this point is to use the highpoint supplied ko
>Release-Note:
>Audit-Trail:

From: "Remko Lodder" <remko@elvandar.org>
To: "Josh Paetzel" <josh@tcbug.org>
Cc: "FreeBSD gnats submit" <freebsd-gnats-submit@freebsd.org>
Subject: Re: kern/120615: hptrr on 6.3-RELEASE/i386 causes filesystem 
     damage and panics
Date: Wed, 13 Feb 2008 16:12:24 +0100 (CET)

 So given that you have the kernel dump available; can you proceed with
 http://www.freebsd.org/doc/en/developers-handbook/kerneldebug.html and
 submit that data? That might give us enough clue about what is going wrong
 where and thus be able to properly fix this :)
 
 Thanks,
 remko
 -- 
 /"\   Best regards,                      | remko@FreeBSD.org
 \ /   Remko Lodder                       | remko@EFnet
  X    http://www.evilcoder.org/          |
 / \   ASCII Ribbon Campaign              | Against HTML Mail and News
 
 

From: Josh Paetzel <josh@tcbug.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/120615: hptrr on 6.3-RELEASE/i386 causes filesystem damage and panics
Date: Wed, 13 Feb 2008 09:44:03 +0000

 --nextPart5991187.o7z4ISJD9s
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 =2D- Unread portion of the kernel message buffer:
 mode =3D 0100400, inum =3D 49603, fs =3D /var
 panic: ffs_valloc: dup alloc
 cpuid =3D 1
 Uptime: 10m1s
 Dumping 2029 MB (6 chunks)
   chunk 0: 1MB (152 pages) ... ok
   chunk 1: 2029MB (519200 pages) 2013 1997 1981 1965 1949 1933 1917 1901 18=
 85=20
 1869 1853 1837 1821 1805 1789 1773 1757 1741 1725 1709 1693 1677 1661 1645=
 =20
 1629 1613 1597 1581 1565 1549 1533 1517 1501 1485 1469 1453 1437 1421 1405=
 =20
 1389 1373 1357 1341 1325 1309 1293 1277 1261 1245 1229 1213 1197 1181 1165=
 =20
 1149 1133 1117 1101 1085 1069 1053 1037 1021 1005 989 973 957 941 925 909 8=
 93=20
 877 861 845 829 813 797 781 765 749 733 717 701 685 669 653 637 621 605 589=
 =20
 573 557 541 525 509 493 477 461 445 429 413 397 381 365 349 333 317 301 285=
 =20
 269 253 237 221 205 189 173 157 141 125 109 93 77 61 45 29 13 ... ok
   chunk 2: 2MB (278 pages)
 
 #0  doadump () at pcpu.h:165
 165             __asm __volatile("movl %%fs:0,%0" : "=3Dr" (td));
 
 (kgdb) bt
 #0  doadump () at pcpu.h:165
 #1  0xc04fcd0a in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:4=
 09
 #2  0xc04fd031 in panic (fmt=3D0xc06fc30a "ffs_valloc: dup alloc")
     at /usr/src/sys/kern/kern_shutdown.c:565
 #3  0xc05f82c4 in ffs_valloc (pvp=3D0xc6f22990, mode=3D33024, cred=3D0xc848=
 be00,
     vpp=3D0xec0598cc) at /usr/src/sys/ufs/ffs/ffs_alloc.c:965
 #4  0xc0621847 in ufs_makeinode (mode=3D33024, dvp=3D0xc6f22990, vpp=3D0xec=
 059be0,
     cnp=3D0xec059bf4) at /usr/src/sys/ufs/ufs/ufs_vnops.c:2214
 #5  0xc061e8bd in ufs_create (ap=3D0x0) at /usr/src/sys/ufs/ufs/ufs_vnops.c=
 :183
 #6  0xc06d409c in VOP_CREATE_APV (vop=3D0x0, a=3D0xec059a5c) at vnode_if.c:=
 204
 #7  0xc0563f1c in vn_open_cred (ndp=3D0xec059bcc, flagp=3D0xec059ccc, cmode=
 =3D256,
     cred=3D0xc848be00, fdidx=3D4) at vnode_if.h:111
 #8  0xc0563d56 in vn_open (ndp=3D0x0, flagp=3D0xec059ccc, cmode=3D256, fdid=
 x=3D4)
     at /usr/src/sys/kern/vfs_vnops.c:91
 #9  0xc055c8ae in kern_open (td=3D0xc7db8a80, path=3D0x0, pathseg=3DUIO_USE=
 RSPACE,
     flags=3D1539, mode=3D438) at /usr/src/sys/kern/vfs_syscalls.c:1016
 #10 0xc055c5e6 in open (td=3D0xc7db8a80, uap=3D0xec059d04)
     at /usr/src/sys/kern/vfs_syscalls.c:971
 #11 0xc06c2bcb in syscall (frame=3D
       {tf_fs =3D 672530491, tf_es =3D 134479931, tf_ds =3D -1078001605, tf_=
 edi =3D=20
 671423368, tf_esi =3D -1077940628, tf_ebp =3D -1077940728, tf_isp =3D -3351=
 76348,=20
 tf_ebx =3D 5, tf_edx =3D 134541315, tf_ecx =3D 0, tf_eax =3D 5, tf_trapno =
 =3D 12,=20
 tf_err =3D 2, tf_eip =3D 672332743, tf_cs =3D 51, tf_eflags =3D 514, tf_esp=
 =20
 =3D -1077940804, tf_ss =3D 59})
     at /usr/src/sys/i386/i386/trap.c:984
 #12 0xc06ada3f in Xint0x80_syscall ()=20
 at /usr/src/sys/i386/i386/exception.s:200
 #13 0x00000033 in ?? ()
 Previous frame inner to this frame (corrupt stack?)
 
 
 That's the limit of my debugging skills, more than willing to follow=20
 instructions or provide remote access.
 
 Thanks,
 
 Josh Paetzel
 
 PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB
 
 --nextPart5991187.o7z4ISJD9s
 Content-Type: application/pgp-signature; name=signature.asc 
 Content-Description: This is a digitally signed message part.
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.4 (FreeBSD)
 
 iD8DBQBHsrvoJvkB8SevrssRAg/mAJ4l4sHXfscBmFCVWaX/qoMIYcEa9wCeOdca
 jeHlCBS0A/UI5XEAjpcON64=
 =Mqy3
 -----END PGP SIGNATURE-----
 
 --nextPart5991187.o7z4ISJD9s--
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sat Feb 23 04:48:26 UTC 2008 
State-Changed-Why:  
re@ has just created 7.0-RC3, to roll back the hptrr driver one 
revision to attempt to deal with multiple problems.  Is it possible 
that you can try that to see if it fixes your problem? 


Responsible-Changed-From-To: freebsd-bugs->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Feb 23 04:48:26 UTC 2008 
Responsible-Changed-Why:  
track. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120615 

From: Josh Paetzel <josh@tcbug.org>
To: linimon@freebsd.org
Cc: bug-followup@freebsd.org
Subject: Re: kern/120615: [hptrr] hptrr on 6.3-RELEASE/i386 causes filesystem damage and panics
Date: Sat, 23 Feb 2008 00:40:45 +0000

 --nextPart1769352.OiH9xnV03K
 Content-Type: text/plain;
   charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 On Saturday 23 February 2008 04:51:08 am linimon@freebsd.org wrote:
 > Synopsis: [hptrr] hptrr on 6.3-RELEASE/i386 causes filesystem damage and
 > panics
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: linimon
 > State-Changed-When: Sat Feb 23 04:48:26 UTC 2008
 > State-Changed-Why:
 > re@ has just created 7.0-RC3, to roll back the hptrr driver one
 > revision to attempt to deal with multiple problems.  Is it possible
 > that you can try that to see if it fixes your problem?
 >
 >
 > Responsible-Changed-From-To: freebsd-bugs->linimon
 > Responsible-Changed-By: linimon
 > Responsible-Changed-When: Sat Feb 23 04:48:26 UTC 2008
 > Responsible-Changed-Why:
 > track.
 >
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D120615
 >
 > !DSPAM:47bfa641204505209328925!
 
 Unfortunately this box probably won't be going to 7.0 anytime soon.  I can =
 get=20
 it on an external drive, but the os install on the raid array has to stay o=
 n=20
 6.x for now.
 
 
 =2D-=20
 Thanks,
 
 Josh Paetzel
 
 PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB
 
 --nextPart1769352.OiH9xnV03K
 Content-Type: application/pgp-signature; name=signature.asc 
 Content-Description: This is a digitally signed message part.
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.4 (FreeBSD)
 
 iD8DBQBHv2uTJvkB8SevrssRAomTAJsGfUzDFpGHh6Nax7ifGiEUc6Xj+QCaAt+Z
 joS9p875XqLe1aVvk3IC2AE=
 =r7UE
 -----END PGP SIGNATURE-----
 
 --nextPart1769352.OiH9xnV03K--
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Sun Feb 24 01:39:12 UTC 2008 
State-Changed-Why:  
My initial impression (that the hptrr driver in 7.0 had been MFCed to 6.3) 
is incorrect, so this is a different issue than I thought it was.  Since 
Scott did the import, I think he's going to be the only person that knows 
what to look for here. 


Responsible-Changed-From-To: linimon->scottl 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Feb 24 01:39:12 UTC 2008 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=120615 

From: Josh Paetzel <josh@tcbug.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/120615: hptrr on 6.3-RELEASE/i386 causes filesystem damage and panics
Date: Sun, 25 May 2008 14:09:17 -0500

 --nextPart1515790.NjuHqgxusa
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 I've been able to verify that the hptrr driver in 7.0-RELEASE-p1 works fine=
 =2E =20
 The in kernel driver for hptrr in 6.3-RELEASE does not.  The Highpoint=20
 supplied ko's do work fine even though they are supposedly for 6.2-R
 
 =2D-=20
 Thanks,
 
 Josh Paetzel
 
 PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB
 
 --nextPart1515790.NjuHqgxusa
 Content-Type: application/pgp-signature; name=signature.asc 
 Content-Description: This is a digitally signed message part.
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.9 (FreeBSD)
 
 iEYEABECAAYFAkg5uWIACgkQJvkB8SevrsuguQCeLR4nBpmc8BqTzfMB/srQc9Vh
 B5IAn2FMvh0JjH7A6qsf4dBgi71+P1TW
 =0RJD
 -----END PGP SIGNATURE-----
 
 --nextPart1515790.NjuHqgxusa--
 

From: Josh Paetzel <josh@tcbug.org>
To: bug-followup@freebsd.org,
 josh@tcbug.org
Cc:  
Subject: Re: kern/120615: [hptrr] hptrr on 6.3-RELEASE/i386 causes filesystem damage and panics
Date: Sun, 19 Sep 2010 23:46:54 -0500

 This box and the hardware are ancient history, as is FreeBSD 6.3.  
 Feel free to close this PR.
 
 -- 
 Thanks,
 
 Josh Paetzel
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Tue Feb 22 19:13:54 EST 2011 
State-Changed-Why:  
Closed per submitter request 

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