Bug 556176 - Kernel Reports Hung Task on USB Device
Summary: Kernel Reports Hung Task on USB Device
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 11
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-16 23:16 UTC by Lcstyle
Modified: 2013-01-13 11:55 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-06-28 15:37:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lcstyle 2010-01-16 23:16:50 UTC
Description of problem:
I am running Fedora 11
The PCSC Daemon provides PC/SC infrastructure for Smart Card Readers.
More here: http://pcsclite.alioth.debian.org/ccid.html

I have been in touch with the driver maintainer : Dr. Ludovic Rousseau.
After some Email Conversations found here: http://pastebin.com/fc0c09b0

We have determined that it is either the kernel or some other hardware problem.
The Reader is an ACS ACR38U USB Smart Card Reader.

The Full Stack Trace can be found here:
http://pastebin.com/f79f1c816

Kernel 2.6.30.10-105.fc11.x86_64 #1 SMP
uname -a output:
http://pastebin.com/f747494e4

Version-Release number of selected component (if applicable):

How reproducible:

The problem occurs anytime you use JSmartCardExplorer
http://www.primianotucci.com/default.php?view=112

Steps to Reproduce:
For Specific Package Details and versions of libusb, pcsc, and ccid driver:
http://pastebin.com/fffed5ba

For LSUSB -v Output on USB Device (Before running test below (while lsusb still works)) can be found here: http://pastebin.com/f69f9a035

1. Install F11 Default pcsc pkgs
2. Follow pcsc instructions for debugging here: http://pastebin.com/m1e6499fa
2. Run pcscd using -d -f -a flags as shown in trace in step 2
3. Plug ACS ACR38U reader into USB Port.
4. Use JsmartcardExplorer and hit connect using protocol T=0 (must have smartcard inserted). In My case I have a Gemalto GemClub Memo Smart Card which is a ISO 7816-3 APDU Compliant card.
  
Actual results:
pcscd Hangs. Kernel Stack Trace shows in /var/log/messages
http://pastebin.com/m43289dc4

Attempting to run lsusb hangs.

Strace on Lsusb command shows:
#strace lsusb
.......redacted......
.........
open("/dev/bus/usb/003", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 4 entries */, 32768)     = 96
open("/dev/bus/usb/003/002", O_RDWR)    = 4
ioctl(4, USBDEVFS_CONNECTINFO

Expected results:
Same Smartcard Reader, using Same Smart Card, on a windows XP laptop using the same software (JSmartCardExplorer) is able to connect and communicate with smartcard reader and ultimately send and recieve data from smartcard.

Additional info:
The entire Message thread with the CCID smartcard Driver Maintainer found here:
http://archives.neohapsis.com/archives/dev/muscle/2010-q1/0033.html

Comment 1 Pete Zaitcev 2010-01-16 23:51:37 UTC
Thank you for the pastebin, very informative (esp. the stack with
the dequeue). It is the usual lost interrupt problem with OHCI that
comes and goes from time to time. I looked my eyes out trying to find
what's up with that, but it looks like ohci_hcd is correct. So, in most
cases it's the interrupt infrastructure somehow losing them, and the
rest is the hardware issues (although, it should no matter in case of
level-driven interrupts, but now we have a new crop with MSI and other
packet-driven interrupts).

The annoying part is, on OHCI it's impossible to end I/O without getting
and interrupt one way or the other.

OK, that was too long. In short, I do not have a quick fix. Something
that fixes in interrupt delivery machinery may help in your case, but
perhaps not overall. I'm going to continue to think about band-aids,
such as an ohci-specific watchdog.

Comment 2 Pete Zaitcev 2010-01-17 00:00:16 UTC
By the way, please consider upgrading to F12 on the affected system.
I do not promise it would fix pcscd (e.g. the unlink hung), but it would
give me an extra data point at least.

Comment 3 Lcstyle 2010-01-17 00:30:57 UTC
I can provide SSH access to this machine for debugging purposes, I have gdb/debuginfo symbols, etc. so on and so forth.

If you would like me to provide any other information please let me know.  I will carefully consider upgrade to F12 since preupgrade does not work due to the fact that the GUI installer does not load due to me having an onboard NVIDIA graphics controller on the Motherboard.

Thanks again for the quick response.

Comment 4 Bug Zapper 2010-04-28 11:43:41 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Lcstyle 2010-04-28 14:17:47 UTC
I have upgraded to F12, I will provide updates shortly.

Has there been any other progress on this issue?

Comment 6 Bug Zapper 2010-06-28 15:37:37 UTC
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.