Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
U2F key erratically seen
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Sargastic
n00b
n00b


Joined: 28 Aug 2011
Posts: 29

PostPosted: Fri Dec 23, 2016 10:42 am    Post subject: U2F key erratically seen Reply with quote

Hi,

I've just changed laptop (previous one stolen), and I'm in the last steps of configuration. Everything works almost like a charm, *except* my U2F USB key (from PlugUp, not Yubico, but it's the same stuff).

Hardware detection is... erratic, to say the least. Sometimes okay, sometimes not. Sometimes immediately rejected or accepted, sometimes after a 5 to 20-second delay.

Here are some examples.

First example, the key is properly identified and usable *but* after a 5-second delay, which is troublesome since, for a U2F token, the user inserts it in the USB port and immediately hits enter/whatever to tell PAM the key is in.

Code:

Dec 23 11:17:35 kernel: usb 3-2: new full-speed USB device number 9 using xhci_hcd
Dec 23 11:17:35 kernel: usb 3-2: New USB device found, idVendor=2581, idProduct=f1d0
Dec 23 11:17:35 kernel: usb 3-2: New USB device strings: Mfr=1, Product=1, SerialNumber=1
Dec 23 11:17:35 kernel: usb 3-2: Product: Plug-up
Dec 23 11:17:35 kernel: usb 3-2: Manufacturer: Plug-up
Dec 23 11:17:35 kernel: usb 3-2: SerialNumber: Plug-up
Dec 23 11:17:40 kernel: hid-generic 0003:2581:F1D0.0004: hiddev0,hidraw3: USB HID v1.01 Device [Plug-up Plug-up] on
usb-0000:00:14.0-2/input0


A few seconds later, on same port, after a 20-second delay, the key is not identified.

Code:

Dec 23 11:17:52 kernel: usb 3-2: new full-speed USB device number 10 using xhci_hcd
Dec 23 11:17:53 kernel: usb 3-2: New USB device found, idVendor=2581, idProduct=f1d0
Dec 23 11:17:53 kernel: usb 3-2: New USB device strings: Mfr=1, Product=1, SerialNumber=1
Dec 23 11:17:53 kernel: usb 3-2: Product: Plug-up
Dec 23 11:17:53 kernel: usb 3-2: Manufacturer: Plug-up
Dec 23 11:17:53 kernel: usb 3-2: SerialNumber: Plug-up
Dec 23 11:18:13 kernel: usbhid 3-2:1.0: can't add hid device: -110
Dec 23 11:18:13 kernel: usbhid: probe of 3-2:1.0 failed with error -110


And sometimes it is rejected (same as above, 20-second delay) or accepted without delay, as below

Code:

Dec 23 11:32:35 veterini kernel: usb 3-2: new full-speed USB device number 14 using xhci_hcd
Dec 23 11:32:36 veterini kernel: usb 3-2: New USB device found, idVendor=2581, idProduct=f1d0
Dec 23 11:32:36 veterini kernel: usb 3-2: New USB device strings: Mfr=1, Product=1, SerialNumber=1
Dec 23 11:32:36 veterini kernel: usb 3-2: Product: Plug-up
Dec 23 11:32:36 veterini kernel: usb 3-2: Manufacturer: Plug-up
Dec 23 11:32:36 veterini kernel: usb 3-2: SerialNumber: Plug-up
Dec 23 11:32:36 veterini kernel: hid-generic 0003:2581:F1D0.0007: hiddev0,hidraw3: USB HID v1.01 Device [Plug-up Plug-up] on usb-0000:00:14.0-2/input0


This does not seem linked to any specific USB port.

So either there is some gremlin in the computer, which plays havoc with data transmits on the USB bus, or I made a mistake/misconfiguration, probably in the kernel or modules config. Currently, I'm rather favoring the second hypothesis.

Any idea where I could have gone wrong ?

Thanks,
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 112
Location: São Paulo, Brasil

PostPosted: Tue Dec 27, 2016 10:13 am    Post subject: Reply with quote

Does it work on livecd? It would be a good place to start.

From there try "usb-devices". It gives you a lot of informations about your usb devices, including the module loaded.
Back to top
View user's profile Send private message
Sargastic
n00b
n00b


Joined: 28 Aug 2011
Posts: 29

PostPosted: Wed Dec 28, 2016 11:23 am    Post subject: Reply with quote

Hi Alinefr,

alinefr wrote:
Does it work on livecd? It would be a good place to start.


It works flawlessly. I did plug/unplug the Yubikey on each USB port of the computer (and on a USB hub). Key is immediately recognized, without delay.

Quote:
From there try "usb-devices". It gives you a lot of informations about your usb devices, including the module loaded.


Here is what I get when from usb-devices on the liveCD (data relevant to the key only) :
Code:
T:  Bus=03 Lev=02 Prnt=13 Port=02 Cnt=03 Dev#= 16 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=2581 ProdID=f1d0 Rev=00.01
S:  Manufacturer=Plug-up
S:  Product=Plug-up
S:  SerialNumber=Plug-up
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid


When using my regular kernel and when the key is properly detected, I get the same data (except bus and port number) from usb-devices :

Code:
T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=03 Dev#=  9 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=2581 ProdID=f1d0 Rev=00.01
S:  Manufacturer=Plug-up
S:  Product=Plug-up
S:  SerialNumber=Plug-up
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid


And, when it fails to detect the key, after the 20-second delay, here is what usb-devices says
Code:
T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=03 Dev#=  8 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=2581 ProdID=f1d0 Rev=00.01
S:  Manufacturer=Plug-up
S:  Product=Plug-up
S:  SerialNumber=Plug-up
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=(none)


The "driver" is set to "(none)". This smells bad.

Now, how can I go one step further to understand what's preventing the driver to attach the key ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum