From owner-freebsd-usb@freebsd.org Sat Jun 20 17:04:03 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6B8BD356B8A for ; Sat, 20 Jun 2020 17:04:03 +0000 (UTC) (envelope-from jbwlists@hilltopgroup.com) Received: from equinox.hilltopgroup.com (equinox.hilltopgroup.com [204.109.63.175]) by mx1.freebsd.org (Postfix) with ESMTP id 49q28245ZFz4MGp for ; Sat, 20 Jun 2020 17:04:02 +0000 (UTC) (envelope-from jbwlists@hilltopgroup.com) Received: from mail.relativity.hilltopgroup.com (unknown [104.185.205.155]) by equinox.hilltopgroup.com (Postfix) with ESMTP id 9025237C097 for ; Sat, 20 Jun 2020 05:10:25 -0400 (EDT) Received: from [192.168.8.200] (unknown [104.185.205.155]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jbwlists@hilltopgroup.com) by mail.relativity.hilltopgroup.com (Postfix) with ESMTPSA id 4D07E3EEC4 for ; Sat, 20 Jun 2020 13:03:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hilltopgroup.com; s=mail; t=1592672636; bh=rk0fA8gSF8/pvflp9uvSdqYvPe9due9qdMhGgCVq0Jo=; h=From:Subject:To:Date; b=PCw+E+7C66uOa5IhsSfD/Brr4IwgeyXaDABBlCUvMoJXCAJFBDPzfQhyowcmKX2bO 104uHNCRHUzPTOut8R9tMHu0kkc3VbWjRbK54Zl1mgng6gcNv8vLCUm20rYvt8EeDc w9IvHyJe78xO4+zERasJ6W/RGAM1ulb0pNmOUC90= From: Joseph Ward Subject: USB System hangs after removing Yubikey To: freebsd-usb@freebsd.org Message-ID: Date: Sat, 20 Jun 2020 13:03:54 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 49q28245ZFz4MGp X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hilltopgroup.com header.s=mail header.b=PCw+E+7C; dmarc=pass (policy=none) header.from=hilltopgroup.com; spf=pass (mx1.freebsd.org: domain of jbwlists@hilltopgroup.com designates 204.109.63.175 as permitted sender) smtp.mailfrom=jbwlists@hilltopgroup.com X-Spamd-Result: default: False [-3.01 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[hilltopgroup.com:s=mail]; NEURAL_HAM_MEDIUM(-0.98)[-0.976]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.03)[-1.031]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[hilltopgroup.com:+]; DMARC_POLICY_ALLOW(-0.50)[hilltopgroup.com,none]; NEURAL_HAM_SHORT(-0.10)[-0.100]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36236, ipnet:204.109.60.0/22, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jun 2020 17:04:03 -0000 I'm running FreeBSD 12.1-RELEASE-p4, and when the system boots with a Yubikey present (or I believe the first time I insert it), the key will work appropriately as a U2F token, or a keyboard input as needed. However, after I detach it (sometimes it's the second or third time I detach it), the USB system seems to just hang.  The USB mouse continues to work fortunately, but any new USB device I attach isn't recognized (no dmesg messages at all). I'm not even sure where to start; I've googled as much as I can and have found very little with which to troubleshoot. "usbconfig" or "usbconfig list" just hangs; ctrl-c will break out of it, but otherwise it'll just hang with no return on the terminal. My latest dmesg shows the yubikey connecting, and then disconnecting when I legitimately pull it out), and then when I put it back in, nothing. ugen0.8: at usbus0 ukbd0 on uhub2 ukbd0: on usbus0 kbd2 at ukbd0 uhid0 on uhub2 uhid0: on usbus0 ugen0.8: at usbus0 (disconnected) ukbd0: at uhub2, port 4, addr 8 (disconnected) ukbd0: detached uhid0: at uhub2, port 4, addr 8 (disconnected) I run usbdump, and the only traffic I see is going to the mouse and the USB hub where nothing but my mouse is (that's continuing to function).  A sample: 13:01:30.716809 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:30.724804 usbus0.3 DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=10,ERR=0 13:01:30.724815 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:30.732803 usbus0.3 DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=10,ERR=0 13:01:30.732810 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:30.740805 usbus0.3 DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=10,ERR=0 13:01:30.740815 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:30.748803 usbus0.3 DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=10,ERR=0 13:01:30.748811 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:30.756805 usbus0.3 DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=10,ERR=0 13:01:30.756818 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:30.764803 usbus0.3 DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=10,ERR=0 13:01:30.764813 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:30.772805 usbus0.3 DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=10,ERR=0 13:01:30.772818 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:30.780804 usbus0.3 DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=10,ERR=0 13:01:30.780812 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:30.788790 usbus0.6 DONE-INTR-EP=00000081,SPD=HIGH,NFR=1,SLEN=4,IVAL=250,ERR=0 13:01:30.788792 usbus0.6 SUBM-INTR-EP=00000081,SPD=HIGH,NFR=1,SLEN=0,IVAL=250 13:01:30.916691 usbus0.6 DONE-INTR-EP=00000081,SPD=HIGH,NFR=1,SLEN=4,IVAL=250,ERR=0 13:01:30.916700 usbus0.6 SUBM-INTR-EP=00000081,SPD=HIGH,NFR=1,SLEN=0,IVAL=250 13:01:30.956793 usbus0.3 DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=10,ERR=0 13:01:30.956797 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:31.044693 usbus0.6 DONE-INTR-EP=00000081,SPD=HIGH,NFR=1,SLEN=4,IVAL=250,ERR=0 13:01:31.044702 usbus0.6 SUBM-INTR-EP=00000081,SPD=HIGH,NFR=1,SLEN=0,IVAL=250 13:01:31.076792 usbus0.3 DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=10,ERR=0 13:01:31.076796 usbus0.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=10 13:01:31.172691 usbus0.6 DONE-INTR-EP=00000081,SPD=HIGH,NFR=1,SLEN=4,IVAL=250,ERR=0 13:01:31.172699 usbus0.6 SUBM-INTR-EP=00000081,SPD=HIGH,NFR=1,SLEN=0,IVAL=250 13:01:31.300691 usbus0.6 DONE-INTR-EP=00000081,SPD=HIGH,NFR=1,SLEN=4,IVAL=250,ERR=0 13:01:31.300699 usbus0.6 SUBM-INTR-EP=00000081,SPD=HIGH,NFR=1,SLEN=0,IVAL=250 dmesg | grep -E '0\.3|0\.6' ugen0.3: at usbus0 ugen0.6: at usbus0 ugen0.3: at usbus0 ugen0.6: at usbus0 The only thing I've been able to do to "fix" it is reboot the system.  Can anyone propose any other troubleshooting steps I should take? Thanks in advance, Joseph Ward