From owner-freebsd-current@freebsd.org Wed Mar 21 11:23:02 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24982F5F133 for ; Wed, 21 Mar 2018 11:23:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BA52A6A3A6 for ; Wed, 21 Mar 2018 11:23:01 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 3CA5B260071; Wed, 21 Mar 2018 12:22:59 +0100 (CET) Subject: Re: CURRENT r331284: crashing with USB To: "Hartmann, O." , FreeBSD CURRENT References: <20180321120710.4eb3b944@hermann> From: Hans Petter Selasky Message-ID: <237b6b65-ab80-1193-d91d-11de089b737a@selasky.org> Date: Wed, 21 Mar 2018 12:22:53 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180321120710.4eb3b944@hermann> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Wed, 21 Mar 2018 11:23:02 -0000 On 03/21/18 12:07, Hartmann, O. wrote: > Hello. > > Incident: CURRENT r331284 can be brought down reliably with an USB > flash drive plugged in and out without mounting or doing anything with > it. > > I first recognized the incident with a ZFS on a SanDisk 32GB USB 3.0 > flash drive. Plugging the USB flash and typing "zpool import" revealed > the very first time I issue this command the existence of the ZFS > fielsystem. Usually, I import then this USB drive for maintenance > purposes. Now, typing "zpool import" a second time, nothing is shown at > all. I see that umass0 has been destroyed - although the USB drive is > still plugged in. > > Pulling the USB flash drive without having actually imported the > ZFS makes CURRENT crash and reboot. > > I tried different USB flash drives, 3.0, 2.0, different boxes running > CURRENT, different hardware (Notebooks, Fujitsu workstations, HP > servers). It seems that the USB subsystem does have a serious problem - > not the ZFS. I can plugin the USB and then unplug it and after two or > three times doing this, the box goes down. > > > Does anyone else observe this bug? > > By the way: all ZFS USB drives I use or all other USB flash drives > cause no problem on FreeBSD 11.1-RELENG-p7! > I've seen something similar, but I thought the issue was fixed by: https://reviews.freebsd.org/D14456 --HPS