desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #77250
[Bug 787451] Re: pcscd spams to syslog and kern.log after enabling smartcard reader in VMWare Workstation
Ludovic Rousseau,
Hello. I am a VMware USb developer and I am trying to deal with this
issue. What we when an user wants to connect a physical device to the
guest aka passthrogh is to knock off the current driver loaded for the
device and claim the interfaces. While this approach works if a kernel
driver is loaded against the device, it does not if pcscd/libccid is the
driver.
I do not get an error from usbfs but my demsg buffer is filled with vmx-
tried to use interface 0 before claiming.
Any suggestions how else we could address this problem?
I do not have examples of knocking off other user space drivers working
well., since other USB device (mass storage, audio, video) use kernel
drivers.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pcsc-lite in Ubuntu.
https://bugs.launchpad.net/bugs/787451
Title:
pcscd spams to syslog and kern.log after enabling smartcard reader in
VMWare Workstation
Status in “pcsc-lite” package in Ubuntu:
Confirmed
Bug description:
Info:
Ubuntu 11.04 amd64
pcscd:
Installed: 1.7.0-2ubuntu2
Candidate: 1.7.0-2ubuntu2
Version table:
*** 1.7.0-2ubuntu2 0
500 http://ru.archive.ubuntu.com/ubuntu/ natty/universe amd64 Packages
100 /var/lib/dpkg/status
libccid:
Installed: 1.4.2-2
Candidate: 1.4.2-2
Version table:
*** 1.4.2-2 0
500 http://ru.archive.ubuntu.com/ubuntu/ natty/universe amd64 Packages
100 /var/lib/dpkg/status
libpcsclite1:
Installed: 1.7.0-2ubuntu2
Candidate: 1.7.0-2ubuntu2
Version table:
*** 1.7.0-2ubuntu2 0
500 http://ru.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
100 /var/lib/dpkg/status
pcscd --version
pcsc-lite version 1.7.0.
Copyright (C) 1999-2002 by David Corcoran <corcoran@xxxxxxxxxxxx>.
Copyright (C) 2001-2010 by Ludovic Rousseau <ludovic.rousseau@xxxxxxx>.
Copyright (C) 2003-2004 by Damien Sauveron <sauveron@xxxxxxxx>.
Report bugs to <muscle@xxxxxxxxxxxxxxxxxxxx>.
Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/etc/reader.conf.d
smart card is JCOP 31.
VMWare Workstation version is 7.1.4 build-385536
Steps for bug reproducing:
1) Launch VMWare OS. In my case this is Windows 7 but I guess it doesn't matter.
2) Connect SmartCard reader to VMWare OS. Reader's model is SCM
SCR3110. This is supported by libccid 1.4.2.
3) At this moment, syslog is spamed by pcscd process. The following strings can be found in syslog:
May 24 13:10:02 computer-name pcscd: ccid_usb.c:618:WriteUSB() write failed (8/2): -1 Device or resource busy
May 24 13:10:02 computer-name pcscd: ifdwrapper.c:346:IFDStatusICC() Card not transacted: 612
May 24 13:10:02 computer-name pcscd: eventhandler.c:303:EHStatusHandlerThread() Error communicating to: SCM SCR 3310 [CCID Interface] (21120818206778) 00 00
May 24 13:10:02 computer-name pcscd: ccid_usb.c:618:WriteUSB() write failed (8/2): -1 Device or resource busy
May 24 13:10:02 computer-name pcscd: ifdwrapper.c:346:IFDStatusICC() Card not transacted: 612
May 24 13:10:02 computer-name pcscd: eventhandler.c:303:EHStatusHandlerThread() Error communicating to: SCM SCR 3310 [CCID Interface] (21120818206778) 00 00
May 24 13:10:02 computer-name pcscd: ccid_usb.c:618:WriteUSB() write failed (8/2): -1 Device or resource busy
May 24 13:10:02 computer-name pcscd: ifdwrapper.c:346:IFDStatusICC() Card not transacted: 612
May 24 13:10:02 computer-name pcscd: eventhandler.c:303:EHStatusHandlerThread() Error communicating to: SCM SCR 3310 [CCID Interface] (21120818206778) 00 00
May 24 13:10:02 computer-name pcscd: ccid_usb.c:618:WriteUSB() write failed (8/2): -1 Device or resource busy
May 24 13:10:02 computer-name pcscd: ifdwrapper.c:346:IFDStatusICC() Card not transacted: 612
May 24 13:10:02 computer-name pcscd: eventhandler.c:303:EHStatusHandlerThread() Error communicating to: SCM SCR 3310 [CCID Interface] (21120818206778) 00 00
May 24 13:10:02 computer-name pcscd: ccid_usb.c:618:WriteUSB() write failed (8/2): -1 Device or resource busy
....
4) The log size rapidly increases. It takes several minutes to reach
20 Gb.
5) After disconnecting smartcard reader, the following string can be found in syslog:
...
May 24 13:12:41 computer-name kernel: [75680.065939] usb 8-2: usbfs: process 2956 (pcscd) did not claim interface 0 before use
May 24 13:12:41 computer-name kernel: [75680.065996] usb 8-2: usbfs: process 2956 (pcscd) did not claim interface 0 before use
May 24 13:12:41 computer-name kernel: [75680.066000] usb 8-2: usbfs: process 2956 (pcscd) did not claim interface 0 before use
May 24 13:12:41 computer-name kernel: [75680.066057] usb 8-2: usbfs: process 2956 (pcscd) did not claim interface 0 before use
May 24 13:12:41 computer-name kernel: [75680.066211] usb 8-2: usbfs: process 2956 (pcscd) did not claim interface 0 before use
Also this messages are written in kern.log
6) The problem is solved by restarting of computer.
I cannot attach syslog and kern.log due to huge size.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/787451/+subscriptions