Page MenuHome GnuPG

scdProject
ActivePublic

Recent Activity

Mon, Nov 18

gniibe updated the task description for T7396: Windows: hard lockup of scdaemon.
Mon, Nov 18, 10:11 AM · Windows, scd
gniibe triaged T7400: Netkey 3.0 card slow detection as Normal priority.
Mon, Nov 18, 6:44 AM · Bug Report, scd
gniibe changed the status of T7402: No hard lockup when SCardConnect never returns, a subtask of T7396: Windows: hard lockup of scdaemon, from Open to Testing.
Mon, Nov 18, 6:30 AM · Windows, scd
gniibe changed the status of T7402: No hard lockup when SCardConnect never returns from Open to Testing.

In select_application function, we can minimize the holding W-lock.

Mon, Nov 18, 6:30 AM · Windows, scd
gniibe added a comment to T7401: PC/SC: Cancel SCardConnect with timeout.

This may requires major changes for scdaemon.

Mon, Nov 18, 5:35 AM · Windows, scd
gniibe lowered the priority of T7401: PC/SC: Cancel SCardConnect with timeout from High to Wishlist.
Mon, Nov 18, 5:35 AM · Windows, scd
gniibe triaged T7402: No hard lockup when SCardConnect never returns as High priority.
Mon, Nov 18, 5:33 AM · Windows, scd
gniibe added a comment to T7401: PC/SC: Cancel SCardConnect with timeout.

For the cancelling operation, each card reader access should have an independent resource manager context.
Currently, a single pcsc.contex is shared by all reader accesses.

Mon, Nov 18, 5:24 AM · Windows, scd
gniibe triaged T7401: PC/SC: Cancel SCardConnect with timeout as High priority.
Mon, Nov 18, 5:21 AM · Windows, scd
gniibe added a comment to T7396: Windows: hard lockup of scdaemon.

Hard lockup should be avoided. In particular, following conditions should meet:

  • gpgconf --kill scdaemon can kill scdaemon
  • KEYINFO requests can be answered for other connections of scdaemon
Mon, Nov 18, 3:49 AM · Windows, scd
gniibe updated subscribers of T7396: Windows: hard lockup of scdaemon.

As of 2024-11-18, my hypothesis is:

  • there are some sort of race conditions between PC/SC + card reader (or its driver) + smartcard + scdaemon on Windows, at least at initial use after boot
  • because of this, SCardConnect of PC/SC call wrongly fails (somehow confirmed by @ebo's experiments + @gniibe's speculation), or wrongly never returns (@gniibe's guess, side info: its slowness is observed in T7400).
Mon, Nov 18, 3:40 AM · Windows, scd
gniibe added a parent task for T7400: Netkey 3.0 card slow detection: T7396: Windows: hard lockup of scdaemon.
Mon, Nov 18, 3:10 AM · Bug Report, scd
gniibe added a subtask for T7396: Windows: hard lockup of scdaemon: T7400: Netkey 3.0 card slow detection.
Mon, Nov 18, 3:10 AM · Windows, scd
gniibe lowered the priority of T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent) from High to Normal.

@ebo Thank you for your testing.

Mon, Nov 18, 3:09 AM · Windows, Bug Report, scd
gniibe added projects to T7400: Netkey 3.0 card slow detection: scd, Bug Report.
Mon, Nov 18, 2:49 AM · Bug Report, scd

Sat, Nov 16

werner added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

@ikloecker indeed we try only for 5 seconds:

Sat, Nov 16, 2:59 PM · Windows, Bug Report, scd

Fri, Nov 15

ebo added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

I think that the card reader is not connected and there is no Scardsvr at this time.
And the card reader connection to USB port results invoking Scardsvr. Then, "SCD SERIALNO --all" gets success.

Fri, Nov 15, 4:07 PM · Windows, Bug Report, scd
ikloecker added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

For T6567 I changed the way that Kleopatra runs "gpgconf --launch gpg-agent". This change is not yet in Eva's test build. It seems my change is not good because running "gpgconf --launch gpg-agent" timed out after 5 seconds in 3 of 3 tests starting Kleopatra after a reboot of the VM. To check if "gpgconf --launch gpg-agent" really takes that long I measured the time in PowerShell after another reboot of the VM. The result is shocking.

Fri, Nov 15, 2:41 PM · Windows, Bug Report, scd
gniibe added a project to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent): Windows.

Please note that a card insertion to a card reader and a card reader connection to PC are different things.
It may cause different results.

Fri, Nov 15, 8:40 AM · Windows, Bug Report, scd
gniibe added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

ebo: Thank you for your testing.

Fri, Nov 15, 6:36 AM · Windows, Bug Report, scd
gniibe added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

I found an issue in libassuan, which might be related possibly, it is described in T7399.
When the response is not consumed like the case in T7399, if repeatedly, it may fill up the buffer eventually.

Fri, Nov 15, 5:20 AM · Windows, Bug Report, scd

Thu, Nov 14

ebo added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

I believe this is a case of non-consumption of client, I had two cards connected, one Yubikey and one Netkey3.0 card.
Setup: I rebooted windows and started Kleopatra. Nothing else.

Thu, Nov 14, 3:01 PM · Windows, Bug Report, scd
gniibe added projects to T7396: Windows: hard lockup of scdaemon: scd, Windows.
Thu, Nov 14, 7:45 AM · Windows, scd
gniibe claimed T7044: Deadlock on Windows in sdaemon.

I put "scd" tag and let me claim this ticket.

Thu, Nov 14, 7:31 AM · scd, Bug Report, Windows, gnupg24

Wed, Nov 13

werner added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

FWIW, we should eventually get rid of the pipe + socket style connection model. It is just to complex with no real benefit.

Wed, Nov 13, 8:35 AM · Windows, Bug Report, scd
gniibe added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

After fixing two bugs, I changed the title to express the scope of this ticket.

Wed, Nov 13, 7:50 AM · Windows, Bug Report, scd
gniibe renamed T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent) from scdaemon hangs up (when output from scdaemon is not consumed gpg-agent) to scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).
Wed, Nov 13, 5:31 AM · Windows, Bug Report, scd
gniibe renamed T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent) from scdaemon hangs up (when output from scdaemon is not consumed any more) to scdaemon hangs up (when output from scdaemon is not consumed gpg-agent).
Wed, Nov 13, 5:31 AM · Windows, Bug Report, scd
gniibe renamed T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent) from scdaemon hangs up to scdaemon hangs up (when output from scdaemon is not consumed any more).
Wed, Nov 13, 3:49 AM · Windows, Bug Report, scd

Wed, Nov 6

gniibe added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

I found a problem of possible duplicate registration of another APP, due to no serialization for CARD access.

Wed, Nov 6, 3:38 AM · Windows, Bug Report, scd
gniibe added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

The resource leak was fixed in: rG40707c8bff49: agent: Fix resource leak for PRIMARY_CTX.

Wed, Nov 6, 3:25 AM · Windows, Bug Report, scd

Tue, Nov 5

yescallop added a comment to T5942: scdaemon is blocking system shutdown.

This seems to have been resolved in 2.4.6 by T7151 or T7160. I don't really remember the details, but at least I don't see anything blocking system shutdown now.

Tue, Nov 5, 5:45 AM · Support, scd, gpgagent

Tue, Oct 29

werner moved T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close from Backlog to QA on the gnupg24 board.
Tue, Oct 29, 1:39 PM · gpgagent, scd, gnupg24, Bug Report
werner edited projects for T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time, added: gnupg26; removed gnupg24.

You should use gpg-agent's integrated ssh-agent. It is anyway much more convenient. I'll move this task to gnupg26, though.

Tue, Oct 29, 1:16 PM · gnupg26, yubikey, scd, Bug Report
werner edited projects for T7099: Disable the import of certain card objects, added: gnupg26; removed gnupg24.
Tue, Oct 29, 1:13 PM · gnupg26, scd, Restricted Project, Feature Request

Oct 21 2024

gniibe added a comment to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent).

I found fd resource leak in gpg-agent.

  • gpg-connect-agent "scd killscd" /bye seems not release a file descriptor somewhere
Oct 21 2024, 7:35 AM · Windows, Bug Report, scd

Oct 10 2024

werner triaged T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent) as High priority.
Oct 10 2024, 9:45 AM · Windows, Bug Report, scd

Oct 9 2024

werner added projects to T7323: scdaemon hangs up (when output from scdaemon is not consumed by gpg-agent): scd, Bug Report.

But the DEVINFO --watch is required to trigger this hang? Kleopatra does not use this but we see simlar hangs from time to time in the current version.

Oct 9 2024, 6:18 PM · Windows, Bug Report, scd

Oct 4 2024

werner closed T6843: after enable kdf-setup impossible change user/admin pin as Resolved.
Oct 4 2024, 11:45 AM · gnupg22 (gnupg-2.2.43), scd, yubikey
werner moved T6843: after enable kdf-setup impossible change user/admin pin from QA to gnupg-2.2.43 on the gnupg22 board.
Oct 4 2024, 11:45 AM · gnupg22 (gnupg-2.2.43), scd, yubikey
werner changed the status of T6843: after enable kdf-setup impossible change user/admin pin from Resolved to Duplicate.
Oct 4 2024, 11:45 AM · gnupg22 (gnupg-2.2.43), scd, yubikey
werner closed T6843: after enable kdf-setup impossible change user/admin pin as Resolved.

Porting to 2.2 was straightforward - we won't give it an extra QA run.

Oct 4 2024, 11:45 AM · gnupg22 (gnupg-2.2.43), scd, yubikey

Oct 1 2024

gniibe changed the status of T7309: gpg should not proceed with the key import from the smartcard if no valid SCD READKEY information is received from Open to Testing.

Fixed in master: rGe7891225788a: gpg: Robust error handling for SCD READKEY.

Oct 1 2024, 3:58 AM · Info Needed, scd, gpgagent, Bug Report

Sep 30 2024

werner triaged T7309: gpg should not proceed with the key import from the smartcard if no valid SCD READKEY information is received as Normal priority.

Some would say it is a bug if keys are not shown - even if the algo is not known ;-)

Sep 30 2024, 4:06 PM · Info Needed, scd, gpgagent, Bug Report
saper renamed T7309: gpg should not proceed with the key import from the smartcard if no valid SCD READKEY information is received from gpg should notice if scdaemon crashes to gpg should not proceed with the key import from the smartcard if no valid SCD READKEY information is received.
Sep 30 2024, 11:54 AM · Info Needed, scd, gpgagent, Bug Report
saper added a comment to T7309: gpg should not proceed with the key import from the smartcard if no valid SCD READKEY information is received.

scdaemon in this case was a broken experiment of mine (trying to see if I can get SoftHSM to work as the OpenPGP card). So this was not a normal, released scdaemon code.

Sep 30 2024, 10:46 AM · Info Needed, scd, gpgagent, Bug Report
gniibe claimed T7309: gpg should not proceed with the key import from the smartcard if no valid SCD READKEY information is received.
Sep 30 2024, 3:49 AM · Info Needed, scd, gpgagent, Bug Report

Sep 28 2024

werner added a comment to T7309: gpg should not proceed with the key import from the smartcard if no valid SCD READKEY information is received.

Please send an excerpt from the scdaemon debug output to evaluate why you get somewhat strange looking data. Is this an experimental card? 0xa5 is a common test pattern.

Sep 28 2024, 7:38 PM · Info Needed, scd, gpgagent, Bug Report
saper created T7309: gpg should not proceed with the key import from the smartcard if no valid SCD READKEY information is received.
Sep 28 2024, 3:10 AM · Info Needed, scd, gpgagent, Bug Report

Sep 27 2024

gouttegd added a comment to T7291: scdaemon randomly hangs when trying to access a token.

With no scd-event script, it might improve the situation

Sep 27 2024, 1:21 PM · scd