From owner-freebsd-scsi@freebsd.org Thu Feb 11 09:44:05 2016 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D93ADAA4870 for ; Thu, 11 Feb 2016 09:44:05 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C4C3B1201 for ; Thu, 11 Feb 2016 09:44:05 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id C5414AA486F; Thu, 11 Feb 2016 09:44:05 +0000 (UTC) Delivered-To: scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C4B62AA486E; Thu, 11 Feb 2016 09:44:05 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 6141111F9; Thu, 11 Feb 2016 09:44:00 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA01735; Thu, 11 Feb 2016 11:43:58 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1aTnn4-000EVM-Fd; Thu, 11 Feb 2016 11:43:58 +0200 Subject: Re: Panic on reloading a driver with same DEVICE_PROBE() return value To: John Baldwin , Scott Long References: <2227929.z5Tr1XC1Xs@ralph.baldwin.cx> <0C31DEA0-0AD0-4E1B-9656-C6ABB6AA854A@yahoo.com> <1675870.rYHsh4pVC7@ralph.baldwin.cx> Cc: scsi@FreeBSD.org, Sreekanth Reddy , ken@FreeBSD.org, freebsd-current@FreeBSD.org From: Andriy Gapon Message-ID: <56BC57A6.7090205@FreeBSD.org> Date: Thu, 11 Feb 2016 11:43:02 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <1675870.rYHsh4pVC7@ralph.baldwin.cx> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2016 09:44:05 -0000 On 10/02/2016 01:02, John Baldwin wrote: > I'm actually not certain of what triggered the fault. The check that emits > the printf should also be failing the kldload with EEXIST (but that doesn't > work for the case where both are compiled into the kernel). The new driver > should have just never been registered, but then I'm not sure how its method > could be called at all. The only reference to the driver's methods are in the > struct driver which also has the associated softc size (so you shouldn't get > a mismatch between softc size and the driver methods used). I haven't really followed this thread and my memory about my own problem has significantly faded, but could the issue #2 in the following post be related? http://thread.gmane.org/gmane.os.freebsd.current/147256 Sorry for the noise if it's totally unrelated. -- Andriy Gapon