Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 568960[details]
backtrace
Description of problem:
spicec crashes (segfaults) when smartcard is plugged while guest expects smartcard auth
Version-Release number of selected component (if applicable):
spice-client-0.8.2-13.el6.x86_64
coolkey-1.1.0-19.el6.x86_64
pcsc-lite-1.5.2-6.el6.x86_64
How reproducible:
always
Steps to Reproduce:
0. unplug the reader from the client
1. boot up the RHEL guest to smartcard-enabled gdm
2. (optional: select "smartcard authentication")
3. run spicec --smartcard <other opts>
4. plug the smartcard reader
Actual results:
spicec crashes with segmentation fault
Expected results:
spicec continues running
Additional info:
* does not happen when sc reader is already plugged in at the launch of spicec
* messages in log (with DEBUG level) from reader insertion to the crash:
1331309793 INFO [23904:23916] SmartCardChannel::cac_card_events_thread_main: VEVENT_READER_INSERT
1331309793 INFO [23904:23904] SmartCardChannel::add_unallocated_reader: adding unallocated reader 0x960dc0
* log messages when reader is plugged at spicec launch and spiced does
not crash:
1331310580 INFO [2326:2338] SmartCardChannel::cac_card_events_thread_main: VEVENT_READER_INSERT
1331310580 INFO [2326:2326] SmartCardChannel::add_unallocated_reader: adding unallocated reader 0x28bae60
1331310580 INFO [2326:2338] SmartCardChannel::cac_card_events_thread_main: VEVENT_CARD_INSERT
1331310580 INFO [2326:2326] SmartCardChannel::add_reader: adding 0x28bae60->0
* log messages when user removes and re-inserts smartcard:
1331310684 INFO [2326:2338] SmartCardChannel::cac_card_events_thread_main: VEVENT_CARD_REMOVE
1331310691 INFO [2326:2338] SmartCardChannel::cac_card_events_thread_main: VEVENT_CARD_INSERT
1331310692 DEBUG [2326:2326] SmartCardChannel::send_atr: ATR:
1331310692 DEBUG [2326:2326] VSCMessageEvent::response: 31: recv APDU:
1331310692 DEBUG [2326:2326] VSCMessageEvent::response: sent APDU:
So the issue with this bug:
- there is an underlying problem that is not spicec related (even though the direct reason for a segfault of course is). See bugs:
* bug 802435 . libcacard, POST, pushed upstream (no component yet, won't help without coolkey updated)
* bug 806038, coolkey. patches attached, but ASSIGNED due to regression.
* bug 811314, nss, fix by rrelyea for a regression caused by the coolkey fix.
I'll fix the segfault, but that would still leave us with a "smartcard not working if reader plugged in after spicec started" just like the remote-viewer cloned bug, now libcacard (802435)
For an explanation of the actual problem see bug 802435 comment 5.
Alon
Closing as WONTFIX, spice-client was replaced by virt-viewer which is now supported client. This bug was not reproducible with virt-viewer, If you can reproduce with remote-viewer, please file a bug for virt-viewer. Thanks.
Created attachment 568960 [details] backtrace Description of problem: spicec crashes (segfaults) when smartcard is plugged while guest expects smartcard auth Version-Release number of selected component (if applicable): spice-client-0.8.2-13.el6.x86_64 coolkey-1.1.0-19.el6.x86_64 pcsc-lite-1.5.2-6.el6.x86_64 How reproducible: always Steps to Reproduce: 0. unplug the reader from the client 1. boot up the RHEL guest to smartcard-enabled gdm 2. (optional: select "smartcard authentication") 3. run spicec --smartcard <other opts> 4. plug the smartcard reader Actual results: spicec crashes with segmentation fault Expected results: spicec continues running Additional info: * does not happen when sc reader is already plugged in at the launch of spicec * messages in log (with DEBUG level) from reader insertion to the crash: 1331309793 INFO [23904:23916] SmartCardChannel::cac_card_events_thread_main: VEVENT_READER_INSERT 1331309793 INFO [23904:23904] SmartCardChannel::add_unallocated_reader: adding unallocated reader 0x960dc0 * log messages when reader is plugged at spicec launch and spiced does not crash: 1331310580 INFO [2326:2338] SmartCardChannel::cac_card_events_thread_main: VEVENT_READER_INSERT 1331310580 INFO [2326:2326] SmartCardChannel::add_unallocated_reader: adding unallocated reader 0x28bae60 1331310580 INFO [2326:2338] SmartCardChannel::cac_card_events_thread_main: VEVENT_CARD_INSERT 1331310580 INFO [2326:2326] SmartCardChannel::add_reader: adding 0x28bae60->0 * log messages when user removes and re-inserts smartcard: 1331310684 INFO [2326:2338] SmartCardChannel::cac_card_events_thread_main: VEVENT_CARD_REMOVE 1331310691 INFO [2326:2338] SmartCardChannel::cac_card_events_thread_main: VEVENT_CARD_INSERT 1331310692 DEBUG [2326:2326] SmartCardChannel::send_atr: ATR: 1331310692 DEBUG [2326:2326] VSCMessageEvent::response: 31: recv APDU: 1331310692 DEBUG [2326:2326] VSCMessageEvent::response: sent APDU: