From owner-freebsd-bugs@FreeBSD.ORG Sat Mar 29 17:43:41 2008 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09CC0106566B; Sat, 29 Mar 2008 17:43:41 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from webmail50.yandex.ru (webmail50.yandex.ru [77.88.32.223]) by mx1.freebsd.org (Postfix) with ESMTP id 7D0F58FC13; Sat, 29 Mar 2008 17:43:40 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from YAMAIL (webmail50) by mail.yandex.ru id S15041782AbYC2Rn1 for (+ 2 others); Sat, 29 Mar 2008 20:43:27 +0300 X-Yandex-Spam: 0 Received: from [77.72.136.70] ([77.72.136.70]) by mail.yandex.ru with HTTP; Sat, 29 Mar 2008 20:43:23 +0300 From: "Andrey V. Elsukov" To: vwe@freebsd.org In-Reply-To: 9060000000196638044 References: 9060000000196638044 MIME-Version: 1.0 Message-Id: <687901206812604@webmail50.yandex.ru> Date: Sat, 29 Mar 2008 20:43:24 +0300 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Type: multipart/mixed; boundary="----==--bound.68791.webmail50.yandex.ru" Cc: freebsd-bugs@freebsd.org, soralx@cydem.org, sos@freebsd.org Subject: Re: kern/122045: [ata][panic] reiniting detached ata channel kills the kernel X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2008 17:43:41 -0000 ------==--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--