Рутокен ЭЦП. Проблема с xhci?
Вчера получил новый Рутокен ЭЦП, на второй инициализации (pkcs15-init --erase-card) токен отвалился – я счел это случайностью, переткнул его и перезапустил покрошившийся pcscd. Но сегодня ситуация повторилась: при генерации ключей (pkcs15-init -G rsa) я увидел:
Using reader with a card: Aktiv Rutoken ECP 00 00
User PIN [...] required.
Please enter User PIN [...]:
Failed to generate key: Card removed
для разрешения ситуации потребовалось снова переткнуть токен и перезапустить pcscd.
В сислоге я увидел следующее:
Oct 3 02:07:11 myhost kernel: [482662.588243] xhci_hcd 0000:02:00.0: ERROR Transfer event TRB DMA ptr not part of current TD
Oct 3 02:07:14 myhost pcscd: /var/tmp/portage/app-crypt/ccid-1.4.18/work/ccid-1.4.18/src/ccid_usb.c:798:ReadUSB() read failed (5/29): -7 Resource temporarily unavailable
Oct 3 02:07:14 myhost pcscd: ifdwrapper.c:553:IFDTransmit() Card not transacted: 612
Oct 3 02:07:14 myhost pcscd: winscard.c:1638:SCardTransmit() Card not transacted: 0x80100016
Oct 3 02:07:17 myhost pcscd: /var/tmp/portage/app-crypt/ccid-1.4.18/work/ccid-1.4.18/src/ccid_usb.c:798:ReadUSB() read failed (5/29): -7 Resource temporarily unavailable
Oct 3 02:07:17 myhost pcscd: ifdwrapper.c:374:IFDStatusICC() Card not transacted: 612
Oct 3 02:07:17 myhost pcscd: eventhandler.c:339:EHStatusHandlerThread() Error communicating to: Aktiv Rutoken ECP 00 00
Oct 3 02:07:20 myhost pcscd: /var/tmp/portage/app-crypt/ccid-1.4.18/work/ccid-1.4.18/src/ccid_usb.c:798:ReadUSB() read failed (5/29): -7 Resource temporarily unavailable
Oct 3 02:07:20 myhost pcscd: ifdwrapper.c:553:IFDTransmit() Card not transacted: 612
Oct 3 02:07:20 myhost pcscd: winscard.c:1638:SCardTransmit() Card not transacted: 0x80100016
Oct 3 02:07:25 myhost pcscd: /var/tmp/portage/app-crypt/ccid-1.4.18/work/ccid-1.4.18/src/ccid_usb.c:759:WriteUSB() write failed (5/29): -7 Resource temporarily unavailable
Oct 3 02:07:25 myhost pcscd: ifdwrapper.c:374:IFDStatusICC() Card not transacted: 612
Oct 3 02:07:25 myhost pcscd: eventhandler.c:339:EHStatusHandlerThread() Error communicating to: Aktiv Rutoken ECP 00 00
Oct 3 02:07:31 myhost pcscd: /var/tmp/portage/app-crypt/ccid-1.4.18/work/ccid-1.4.18/src/ccid_usb.c:759:WriteUSB() write failed (5/29): -7 Resource temporarily unavailable
Oct 3 02:07:31 myhost pcscd: ifdwrapper.c:374:IFDStatusICC() Card not transacted: 612
Oct 3 02:07:31 myhost pcscd: eventhandler.c:339:EHStatusHandlerThread() Error communicating to: Aktiv Rutoken ECP 00 00
Oct 3 02:07:36 myhost pcscd: /var/tmp/portage/app-crypt/ccid-1.4.18/work/ccid-1.4.18/src/ccid_usb.c:759:WriteUSB() write failed (5/29): -7 Resource temporarily unavailable
Oct 3 02:07:36 myhost pcscd: ifdwrapper.c:374:IFDStatusICC() Card not transacted: 612
Oct 3 02:07:36 myhost pcscd: winscard.c:951:SCardDisconnect() Error resetting card.
Oct 3 02:07:41 myhost pcscd: /var/tmp/portage/app-crypt/ccid-1.4.18/work/ccid-1.4.18/src/ccid_usb.c:759:WriteUSB() write failed (5/29): -7 Resource temporarily unavailable
Oct 3 02:07:41 myhost pcscd: ifdwrapper.c:374:IFDStatusICC() Card not transacted: 612
Oct 3 02:07:41 myhost pcscd: winscard.c:951:SCardDisconnect() Error resetting card.
Oct 3 02:07:41 myhost pcscd: winscard.c:348:SCardConnect() Card Not Powered
Oct 3 02:07:42 myhost pcscd: winscard.c:348:SCardConnect() Card Not Powered
Oct 3 02:07:42 myhost pcscd: winscard.c:348:SCardConnect() Card Not Powered
Я пока не исключил окончательно проблему с портом/xhci_hcd, однако перед рутокеном именно в этом порту несколько месяцев стоял етокен другого производителя и подобных проблем не замечалось.