From owner-freebsd-current@FreeBSD.ORG Tue Jul 23 20:02:42 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 81EABE7F for ; Tue, 23 Jul 2013 20:02:42 +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 079A2224A for ; Tue, 23 Jul 2013 20:02:41 +0000 (UTC) Received: by mail-bk0-f48.google.com with SMTP id jf3so131931bkc.21 for ; Tue, 23 Jul 2013 13:02:40 -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=DU02DlOGPzLm2MWUJUTDqFopE3GVRorHkUm/WjXQITs=; b=AXVi549aUhZE1NMvCTIDEky+ugNKUl+F58jmIbwrxkYCQpuNchQKAT3pmIGYlk5whF HhHII2/bBwIBrpFm4vJyUMGy1AAbjidXFNhsbecR2Gg/yLpno0xMgAp88GpHZ5acXMNm eM9AWBctrNG+WDyPErJD5BDTnhJxA5bq7FaXYdvKWBUWD8FV+S7MfXrKXTsECMi1dMi2 fQv+vzHXJZZNHRP9CEs1jyhkCdtZ70BpQDLwpCSLWv5dMocN50qFC6J2x5yqM0R2c15u DdCOD7IWD6j+37prfPquNMQT0IGtw6+ItEIRkuErgqQmgKgypHmw9SK5Y4lRZkSeGzkb zq7A== X-Received: by 10.204.234.5 with SMTP id ka5mr4830007bkb.5.1374609760287; Tue, 23 Jul 2013 13:02:40 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (mavhome.mavhome.dp.ua. [213.227.240.37]) by mx.google.com with ESMTPSA id l11sm8755508bkk.13.2013.07.23.13.02.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Jul 2013 13:02:39 -0700 (PDT) Sender: Alexander Motin Message-ID: <51EEE15C.6020900@FreeBSD.org> Date: Tue, 23 Jul 2013 23:02:36 +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: Jia-Shiun Li Subject: Re: Panic at USB drive plugging in References: <51EEAA36.6030206@bitfrost.no> <51EEABA3.7060909@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Hans Petter Selasky , freebsd-current@freebsd.org 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 20:02:42 -0000 On 23.07.2013 21:28, Jia-Shiun Li wrote: > On Wed, Jul 24, 2013 at 12:13 AM, Alexander Motin wrote: >> On 23.07.2013 19:07, Hans Petter Selasky wrote: >>> 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? >> > > No. I do not use it at all. cam.k kernel module includes all existing periph drivers in one bundle. Loading cam.ko you are probably getting sg driver also, that triggers reported issue. You may try to rip out sg with single line hack to module's Makefile. The real fix require looking closer on sg, which I never used. -- Alexander Motin