Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Mar 2008 20:43:24 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        vwe@freebsd.org
Cc:        freebsd-bugs@freebsd.org, soralx@cydem.org, sos@freebsd.org
Subject:   Re: kern/122045: [ata][panic] reiniting detached ata channel kills the kernel
Message-ID:  <687901206812604@webmail50.yandex.ru>
In-Reply-To: 9060000000196638044
References:  9060000000196638044

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

------==--bound.68791.webmail50.yandex.ru
Content-Transfer-Encoding: 7bit
Content-Type: text/plain

29.03.08, 18:50, vwe@FreeBSD.org:

> Synopsis: [ata][panic] reiniting detached ata channel kills the kernel
> State-Changed-From-To: feedback->open
> State-Changed-By: vwe
> State-Changed-When: Sat Mar 29 15:48:13 UTC 2008
> State-Changed-Why: 
> feedback received by private mail, not a problem with mounted filesystem
> system panics without active mounts on the detached drive 
> (clean umount before detach done).

ata(4) freed resources and mutexes when you are detaching it. So, you should
attach it first before reinit, because it is trying  to get access to freed
resources. Try this patch.

--
WBR, Andrey V. Elsukov
------==--bound.68791.webmail50.yandex.ru
Content-Disposition: attachment; filename="ata_reinit_without_attach_fix.diff"
Content-Transfer-Encoding: base64
Content-Type: text/x-patch;
	name="ata_reinit_without_attach_fix.diff"

SW5kZXg6IHNyYy9zeXMvZGV2L2F0YS9hdGEtYWxsLmMKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL25j
dnMvc3JjL3N5cy9kZXYvYXRhL2F0YS1hbGwuYyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4yODAK
ZGlmZiAtdSAtYiAtcCAtcjEuMjgwIGF0YS1hbGwuYwotLS0gc3JjL3N5cy9kZXYvYXRhL2F0YS1h
bGwuYwk0IE9jdCAyMDA3IDE5OjE3OjE1IC0wMDAwCTEuMjgwCisrKyBzcmMvc3lzL2Rldi9hdGEv
YXRhLWFsbC5jCTI5IE1hciAyMDA4IDE3OjQxOjUzIC0wMDAwCkBAIC0zNzIsNyArMzcyLDYgQEAg
YXRhX2lvY3RsKHN0cnVjdCBjZGV2ICpkZXYsIHVfbG9uZyBjbWQsIAogCSAgICAhKGRldmljZSA9
IGRldmNsYXNzX2dldF9kZXZpY2UoYXRhX2RldmNsYXNzLCAqdmFsdWUpKSkKIAkgICAgcmV0dXJu
IEVOWElPOwogCWVycm9yID0gYXRhX3JlaW5pdChkZXZpY2UpOwotCWF0YV9zdGFydChkZXZpY2Up
OwogCWJyZWFrOwogCiAgICAgY2FzZSBJT0NBVEFBVFRBQ0g6Cg==
------==--bound.68791.webmail50.yandex.ru--



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