Description of problem: gnome-session-worker and pcscd services spike up in CPU usage close to 100% combined when a USB based PIV card is removed. Tested with Yubikey Neo. It would appear that coolkey package is the one causing the issue. Once the package is removed the behaviour is no longer there. Version-Release number of selected component (if applicable): coolkey 1.1.0-30-fc24 How reproducible: repeatable very easily. Steps to Reproduce: 1. sudo sudo -u gdm org.gnome.login-screen enable-smartcard-authentication true 2. run top | grep pcscd or run top | grep gnome-session-worker 3. insert yubikey then remove 4. see CPU usage spike. Expected results: no change in CPU usage. Additional info: The same bug was reported in red hat (https://bugzilla.redhat.com/show_bug.cgi?id=1286320) and have been patched. It seems coolkey-1.1.0-36-el7_3 version contains the pacth (https://rhn.redhat.com/errata/RHBA-2017-0094.html) but not available in Fedora repos.
(In reply to Min Tun from comment #0) > Description of problem: > gnome-session-worker and pcscd services spike up in CPU usage close to 100% > combined when a USB based PIV card is removed. Tested with Yubikey Neo. > > It would appear that coolkey package is the one causing the issue. Once the > package is removed the behaviour is no longer there. > > Version-Release number of selected component (if applicable): > coolkey 1.1.0-30-fc24 > > How reproducible: > repeatable very easily. > > Steps to Reproduce: > 1. sudo sudo -u gdm org.gnome.login-screen enable-smartcard-authentication > true > 2. run top | grep pcscd or run top | grep gnome-session-worker > 3. insert yubikey then remove > 4. see CPU usage spike. > > Expected results: > no change in CPU usage. > > > Additional info: > The same bug was reported in red hat > (https://bugzilla.redhat.com/show_bug.cgi?id=1286320) and have been patched. > It seems coolkey-1.1.0-36-el7_3 version contains the pacth > (https://rhn.redhat.com/errata/RHBA-2017-0094.html) but not available in > Fedora repos. Its gnome-settings-daemon not gnome-session-worker
I was able to reproduce similar bug #1364917 with normal reader and normal PIV cards some time ago. According to the Debian and the patch [1], it looks like it is fixed in the pcsc-lite-ccid-1.4.23 (in all Fedora releases today) [2]. The coolkey patch trying to address this issue is this patch [3], which is (most) probably the missing bit to make it working. I will try to build it together. Thanks for report. [1] https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=pcsclite/CCID.git;a=commitdiff_plain;h=3c21f452543983f3625a1965ce234074cbda6865 [2] https://anonscm.debian.org/cgit/pcsclite/CCID.git/commit/?id=3c21f452543983f3625a1965ce234074cbda6865 [3] https://git.centos.org/blob/rpms!coolkey/41c12790f3b9915ef3a1ebe2d610722180031c67/SOURCES!coolkey-1.1.0-max-cpu-bug.patch
Here is testing build with the patch discussed in the previous comment: https://koji.fedoraproject.org/koji/taskinfo?taskID=18262935 Can you verify that it solves the problem for you? If so, I will send the updates soon.
Hi Jakub, I have just tested the rpm. It has fixed the issue and no longer reproducible. How long does it normally take before this fix will be available in the repos? Thanks for your help.
jakub. there's a RHEL patch that fixes this issue I'll attach it.
Created attachment 1261412 [details] Handle loop if the full reader is removed
ah, never mind you found the equivalent.
Thank you for verification. I will submit builds today so you should be able to update today from testing or from stable a bit later.
coolkey-1.1.0-33.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-34623e007d
coolkey-1.1.0-31.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c680a6ecea
coolkey-1.1.0-33.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-34623e007d
coolkey-1.1.0-31.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c680a6ecea
coolkey-1.1.0-31.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
coolkey-1.1.0-33.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.