From owner-freebsd-bugs@FreeBSD.ORG Sat Oct 18 12:00:29 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E5E016A4BF for ; Sat, 18 Oct 2003 12:00:29 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 310F443FAF for ; Sat, 18 Oct 2003 12:00:28 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9IJ0SFY006351 for ; Sat, 18 Oct 2003 12:00:28 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h9IJ0S7k006350; Sat, 18 Oct 2003 12:00:28 -0700 (PDT) (envelope-from gnats) Resent-Date: Sat, 18 Oct 2003 12:00:28 -0700 (PDT) Resent-Message-Id: <200310181900.h9IJ0S7k006350@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Petri Helenius Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9D2116A4B3 for ; Sat, 18 Oct 2003 11:56:53 -0700 (PDT) Received: from rms21.rommon.net (rms21.rommon.net [193.64.42.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DB1C43FDD for ; Sat, 18 Oct 2003 11:56:52 -0700 (PDT) (envelope-from pete@rms21.rommon.net) Received: from rms21.rommon.net (localhost [127.0.0.1]) by rms21.rommon.net (8.12.10/8.12.9) with ESMTP id h9IIunuX086510 for ; Sat, 18 Oct 2003 21:56:49 +0300 (EEST) (envelope-from pete@rms21.rommon.net) Received: (from pete@localhost) by rms21.rommon.net (8.12.10/8.12.10/Submit) id h9IIunCu086509; Sat, 18 Oct 2003 21:56:49 +0300 (EEST) (envelope-from pete) Message-Id: <200310181856.h9IIunCu086509@rms21.rommon.net> Date: Sat, 18 Oct 2003 21:56:49 +0300 (EEST) From: Petri Helenius To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/58228: atacontrol rebuild always panics X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Petri Helenius List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2003 19:00:29 -0000 >Number: 58228 >Category: kern >Synopsis: atacontrol rebuild always panics >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 18 12:00:27 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Petri Helenius >Release: FreeBSD 5.1-CURRENT i386 >Organization: >Environment: System: FreeBSD rms21.rommon.net 5.1-CURRENT FreeBSD 5.1-CURRENT #6: Sat Oct 4 00:50:59 EEST 2003 pete@rms21.rommon.net:/usr/src/sys/i386/compile/ROMMON-SERVER5 i386 >Description: atacontrol rebuild crashes when it either completes successfully or fails when rebuilding. Fatal trap 12: page fault while in kernel mode fault virtual address = 0x10 fault code = supervisor read, page not present instruction pointer = 0x8:0xc0163e37 stack pointer = 0x10:0xd2120ce4 frame pointer = 0x10:0xd2120d0c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 482 (rebuilding ar0 0%) kernel: type 12 trap, code=0 Stopped at ar_rebuild+0x247: movl 0x10(%eax),%edx db> trace ar_rebuild(c25f2000,d2120d48,c03aaf9c,314,0) at ar_rebuild+0x247 fork_exit(c0163bf0,c25f2000,d2120d48) at fork_exit+0xcf fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xd2120d7c, ebp = 0 --- db> This points to the below line in ata-raid.c: if (rdp->disks[disk].flags & AR_DF_ONLINE) adp = AD_SOFTC(rdp->disks[disk + rdp->width]); else >How-To-Repeat: Use atacontrol to detach, attach, addspare and rebuild a mirror or raid0+1 set. To make it crash faster, detach while rebuilding. >Fix: >Release-Note: >Audit-Trail: >Unformatted: >>>>>>>>> adp = AD_SOFTC(rdp->disks[disk]); <<<<<<<<<<< if ((error = ar_rw(adp, rdp->lock_start, size * DEV_BSIZE, buffer, AR_WRITE | AR_WAIT))) break; There is also another variation of this panic, which IŽll submit later.