From owner-freebsd-current@FreeBSD.ORG Tue Jul 23 16:13:29 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1FB712C7 for ; Tue, 23 Jul 2013 16:13:29 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bk0-x230.google.com (mail-bk0-x230.google.com [IPv6:2a00:1450:4008:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A65D4279C for ; Tue, 23 Jul 2013 16:13:28 +0000 (UTC) Received: by mail-bk0-f48.google.com with SMTP id jf3so45991bkc.35 for ; Tue, 23 Jul 2013 09:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=z0BZBqWs790ijYSx08VofdFr185HssMUoNKZQFd18kg=; b=amSHMAWUNqHE2iU+P2dNdrlaTpNVrxVeGf2ys7rj6qQaU8Tf6eHd8KLDam2RP9J+l3 UhCytHrbEmnUMkfBcTNSSHfPuSH4KMCG4WgEWZBmTyQ17xqtxzCQAuz6AlcKVtOBj8OY ZsNGn1JWUzkgLiHutBSPzHvubea1a355FRhde2JgPI16Fk14EmFSogJCBgzqAyaMnZt3 87qhwJ8rLZ324wiEcgZHc5IOA1ysKDcisJb1NZn6QdZj1ZDtatmvVID5WUSDa9l5Fa27 aIWQGiuTRFWjebNDrrKH/ukQZFY9kO+xqYJwDrXET2CJCw+Kr3pjB9nDjeQFDLXALZZq xAdA== X-Received: by 10.205.19.135 with SMTP id qk7mr4697577bkb.139.1374596006797; Tue, 23 Jul 2013 09:13:26 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (mavhome.mavhome.dp.ua. [213.227.240.37]) by mx.google.com with ESMTPSA id ps10sm8543353bkb.14.2013.07.23.09.13.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Jul 2013 09:13:25 -0700 (PDT) Sender: Alexander Motin Message-ID: <51EEABA3.7060909@FreeBSD.org> Date: Tue, 23 Jul 2013 19:13:23 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130616 Thunderbird/17.0.6 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: Panic at USB drive plugging in References: <51EEAA36.6030206@bitfrost.no> In-Reply-To: <51EEAA36.6030206@bitfrost.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Jia-Shiun Li X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 16:13:29 -0000 On 23.07.2013 19:07, Hans Petter Selasky wrote: > On 07/23/13 17:12, Jia-Shiun Li wrote: >> Hi all, >> >> as personal preference I compiled kernel with drivers as module as >> possible. Recently I found that plugging in USB drives causes kernel >> to panic. But it does not happen when booting with GENERIC kernel >> which has USB drivers compiled in. >> >> panic screenshot: >> http://goo.gl/pIIDaF >> >> back trace: >> http://goo.gl/ww4yy6 >> >> the kernel is compiled: >> FreeBSD 4cbsd 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r253395: Fri Jul 19 >> 15:20:08 CST 2013 jsli@4cbsd:/usr/obj/usr/src/sys/Minimal amd64 >> >> the back trace looks like devd and something had timing issues. Any >> ideas? >> > This looks like a CAM/SCSI problem and not directly USB stack problem. It seems crashed inside the CAM sg driver, that is not part of GENERIC kernel. Are you using it is some way? -- Alexander Motin