** Description changed: + Impact + ------ + A smartcard reader attached to the computer on startup, containing a non-standard smartcard (in this case an NXP AV3 SAM card) causes gsd- smartcard to segfault and restart 200 times after login. + Test plan + --------- + + 0.1. apt install pcscd. + 0.2. Log out. + + Reproduce the issue: + + 1.1. Insert a non-standard smartcard into your computer (if it has a slot for it) or into a smart card reader attached to your computer. + 1.2. Log in. + * Verify that a couple of automatic error reporter windows appear and the crash is of gsd_smartcard. + + Verify the fix: + + 2.1. Enable proposed: https://wiki.ubuntu.com/Testing/EnableProposed. + 2.2. apt install gnome-settings-daemon/noble-proposed. + 2.3. Log out. + 2.4. Insert a non-standard smartcard into your computer (if it has a slot for it) or into a smart card reader attached to your computer. + 2.5. Log in. + * Verify that no more error reporter windows appear for gsd_smartcard crashes. + + Where things could go wrong + --------------------------- + + As the code changes are restricted to the smart card module, which is + packed in the gsd-smartcard binary, it is very unlikely to accept other + parts of the daemon. So possible regressions are mainly during + authentication phase in Gnome using a smart card. + + More information + ---------------- System Info: This is Ubuntu 22.04.2 LTS at Kernel 5.19.0-38-generic The Smart Card reader is an Identiv uTrust 4711 F with both SAM and Contactless slots The system is an HP ZBook Firefly 14 G7 Detailed issue: When the smartcard reader is plugged into the system, and an NXP SAM AV3 card is inserted into the physical smartcard slot, upon login several (5) Ubuntu Error report windows will open asking to report a crash. The reader lights will flicker for about 5 minutes until they finally stop. No other issues are seen with the system during this time. Upon looking at /var/log/syslog, the errors listed in the attachment are visible as it appears gsd-smartcard is in a loop of restarting and crashing following an error. /var/crash contains two files from the crash loop, _usr_libexec_gsd_smartcard.1000.crash and _usr_libexec_gsd_smartcard_127.crash Eventually the crashes seem to stop and the light stops flickering, but a logout and log back in will restart the issue again, as will rebooting the machine. Re-plugging the device while logged in does not seem to cause it to start the crash loop again. To complete the standard questions: 1. I logged into my computer and saw error messages 2. I expected the smart card to be ignored if there was a card inserted that was unexpected or incompatible with the gnome settings daemon 3. I encountered several crash reporter messages upon logging in, which seem to have come from the gsd-smartcard program
-- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/2016914 Title: [SRU] gsd-smartcard: segfault on startup Status in GNOME Settings Daemon: Fix Released Status in gnome-settings-daemon package in Ubuntu: Fix Released Status in gnome-settings-daemon source package in Jammy: New Status in gnome-settings-daemon source package in Noble: New Status in gnome-settings-daemon source package in Oracular: Won't Fix Status in gnome-settings-daemon source package in Plucky: Fix Released Bug description: Impact ------ A smartcard reader attached to the computer on startup, containing a non-standard smartcard (in this case an NXP AV3 SAM card) causes gsd- smartcard to segfault and restart 200 times after login. Test plan --------- 0.1. apt install pcscd. 0.2. Log out. Reproduce the issue: 1.1. Insert a non-standard smartcard into your computer (if it has a slot for it) or into a smart card reader attached to your computer. 1.2. Log in. * Verify that a couple of automatic error reporter windows appear and the crash is of gsd_smartcard. Verify the fix: 2.1. Enable proposed: https://wiki.ubuntu.com/Testing/EnableProposed. 2.2. apt install gnome-settings-daemon/noble-proposed. 2.3. Log out. 2.4. Insert a non-standard smartcard into your computer (if it has a slot for it) or into a smart card reader attached to your computer. 2.5. Log in. * Verify that no more error reporter windows appear for gsd_smartcard crashes. Where things could go wrong --------------------------- As the code changes are restricted to the smart card module, which is packed in the gsd-smartcard binary, it is very unlikely to accept other parts of the daemon. So possible regressions are mainly during authentication phase in Gnome using a smart card. More information ---------------- System Info: This is Ubuntu 22.04.2 LTS at Kernel 5.19.0-38-generic The Smart Card reader is an Identiv uTrust 4711 F with both SAM and Contactless slots The system is an HP ZBook Firefly 14 G7 Detailed issue: When the smartcard reader is plugged into the system, and an NXP SAM AV3 card is inserted into the physical smartcard slot, upon login several (5) Ubuntu Error report windows will open asking to report a crash. The reader lights will flicker for about 5 minutes until they finally stop. No other issues are seen with the system during this time. Upon looking at /var/log/syslog, the errors listed in the attachment are visible as it appears gsd-smartcard is in a loop of restarting and crashing following an error. /var/crash contains two files from the crash loop, _usr_libexec_gsd_smartcard.1000.crash and _usr_libexec_gsd_smartcard_127.crash Eventually the crashes seem to stop and the light stops flickering, but a logout and log back in will restart the issue again, as will rebooting the machine. Re-plugging the device while logged in does not seem to cause it to start the crash loop again. To complete the standard questions: 1. I logged into my computer and saw error messages 2. I expected the smart card to be ignored if there was a card inserted that was unexpected or incompatible with the gnome settings daemon 3. I encountered several crash reporter messages upon logging in, which seem to have come from the gsd-smartcard program To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/2016914/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp