Skip site navigation (1)Skip section navigation (2)
Date:      25 Jun 2002 15:04:28 -0000
From:      Michal Pasternak <michal@pasternak.w.lub.pl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   i386/39844: PANIC using mount -> atacontrol detach -> ls/cat that device 
Message-ID:  <20020625150428.790.qmail@pr93.lublin.sdi.tpnet.pl>

next in thread | raw e-mail | index | archive | help

>Number:         39844
>Category:       i386
>Synopsis:       PANIC using mount -> atacontrol detach -> ls/cat that device
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 25 08:10:09 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD pasternak.w.lub.pl 4.6-STABLE FreeBSD 4.6-STABLE #1: Tue Jun 18 04:33:07 CEST 2002 doc@pasternak.w.lub.pl:/usr/obj/usr/src/sys/ILIT i386


	
>Description:

	     Using devices, that are mounted, but their controllers
	     are detached (using atacontrol) causes PANIC.

My config:
atapci0: <VIA 82C686 ATA66 controller> port 0xd000-0xd00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ad0: 8223MB <ST38410A> [16708/16/63] at ata0-master UDMA66
acd0: CDROM <ATAPI CDROM 48X> at ata1-slave PIO4

>How-To-Repeat:

	     1. mount something on 2nd IDE controller (ata1)
	     2. detach IDE controller (atacontrol detach 1)
	     3. ls or cat mounted device - system panics
	     
>Fix:

     I have some ideas, like:
     
     1. atacontrol SHOULD NOT allow to detach controllers, which have
     	mounted devices
     
     2. atacountrol should DISPLAY A BIG FAT WARNING and ASK FOR A
     	CONFIRMATION when trying to detach controller with mounted device
	
     3. atacountrol should automagically umount devices
     
     4. manpage should DISPLAY A BIG FAT WARNING
     
     5. additional checks in device drivers (is the device we're trying to
     	read available, together with it's controller) could IMVHO
	slow things down, but I'm not a kernel hacker, so how should I know
    


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020625150428.790.qmail>