From vd@datamax.bg  Wed May 21 07:25:45 2003
Return-Path: <vd@datamax.bg>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1125037B404
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 May 2003 07:25:45 -0700 (PDT)
Received: from gw-bj2.datamax.bg (datamax.wl.bitex.com [195.34.115.67])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4918243F93
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 May 2003 07:25:43 -0700 (PDT)
	(envelope-from vd@datamax.bg)
Received: from sinanica.lg2a.datamax (sinanica.lg2a.datamax [192.168.10.1])
	by gw-bj2.datamax.bg (Postfix) with QMQP id 1F4F787C7
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 May 2003 17:25:40 +0300 (EEST)
Received: (nullmailer pid 787 invoked by uid 1001);
	Wed, 21 May 2003 14:26:16 -0000
Message-Id: <1053527176.857241.786.nullmailer@sinanica.lg2a.datamax>
Date: Wed, 21 May 2003 17:26:16 +0300
From: Vasil Dimov <vd@datamax.bg>
Reply-To: Vasil Dimov <vd@datamax.bg>
To: FreeBSD-gnats-submit@freebsd.org
Subject: atacontrol detach 0 causes kernel panic
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         52527
>Category:       kern
>Synopsis:       atacontrol detach 0 causes kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 21 07:30:11 PDT 2003
>Closed-Date:    Mon Sep 08 11:58:14 PDT 2003
>Last-Modified:  Mon Sep 08 11:58:14 PDT 2003
>Originator:     Vasil Dimov
>Release:        FreeBSD 5.1-BETA i386
>Organization:
DataMax
>Environment:
System: FreeBSD sinanica.lg2a.datamax 5.1-BETA FreeBSD 5.1-BETA #0: Wed May 21 16:30:56 EEST 2003 root@sinanica.lg2a.datamax:/usr/src/sys/i386/compile/SINANICA i386


>Description:
Since 5.x "atacontrol detach 0" causes kernel panic (/ is on ad0)
5.0-RELEASE 5.0-CURRENT 5.1-BETA have this "feature",
while 4.7-STABLE (and older ones) does not, I'm not sure for 4.8 but I think
this is something new in 5.x

The problem is not in the atacontrol utility, if I pull the IDE cable off,
I got the same result:
ad0: removed from configuration
panic.

Vinum is not very useful if removing one of the drives it uses causes the
system to panic. Yes, after rebooting without the broken drive it boots up,
and we do not have "data loss", but panicing is a regression since 4-STABLE.
>How-To-Repeat:
%/sbin/atacontrol detach 0
ad0: removed from configuration
acd0: removed from configuration


Fatal trap 12: page fault while in kernel mode
fault virtual address		= 0x20
fault code			= supervisor read, page not present
instruction pointer		= 0x8:0xc01ce2c4
stack pointer			= 0x10:0xcd272b10
frame pointer			= 0x10:0xcd272b38
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			= 2 (g_event)
kernel: type 12 trap, code=0
Stopped at     g_disk_access+0x124: cmpl $0,0x20(%esi)
db>
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: kris 
Responsible-Changed-When: Mon Jul 14 02:28:44 PDT 2003 
Responsible-Changed-Why:  
Assign to ATA maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52527 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon Sep 8 11:57:12 PDT 2003 
State-Changed-Why:  
You cannot remove your root disk. 

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