Page MenuHome GnuPG
Feed Advanced Search

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

Mon, Oct 21

gniibe added a comment to T7323: scdaemon hangs up.

I found fd resource leak in gpg-agent.

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

Thu, Oct 10

werner triaged T7323: scdaemon hangs up as High priority.
Thu, Oct 10, 9:45 AM · Bug Report, scd

Wed, Oct 9

werner added projects to T7323: scdaemon hangs up: 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.

Wed, Oct 9, 6:18 PM · Bug Report, scd

Fri, Oct 4

werner closed T6843: after enable kdf-setup impossible change user/admin pin as Resolved.
Fri, Oct 4, 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.
Fri, Oct 4, 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.
Fri, Oct 4, 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.

Fri, Oct 4, 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

Sep 25 2024

werner edited projects for T5085: Filter APDUs in log output, added: gnupg; removed gnupg24, gnupg22.
Sep 25 2024, 4:23 PM · gnupg, Feature Request, scd
werner moved T7121: gnupg 2.2.43: scdaemon fails with KDF from Backlog to gnupg-2.2.44 on the gnupg22 board.
Sep 25 2024, 4:19 PM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report

Sep 20 2024

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

The change of spawn functions (basically, it was factored out to libgpg-error) results more possibilities to have blocked scdaemon, since the implementation in libgpg-error introduced context switch points when it spawns a child process.

Sep 20 2024, 4:02 AM · scd
gniibe added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

Found another thinko; When there is no clients with DEVINFO --watch, the pipe to be notified is not consumed at all (no read). It eventually results blocked by write(2), when the pipe is filled.

Sep 20 2024, 3:51 AM · gpgagent, scd, gnupg24, Bug Report

Sep 19 2024

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

I don’t think I have any other client that would invoke SCD DEVINFO --watch.

Sep 19 2024, 10:44 AM · scd
gniibe added a comment to T7291: scdaemon randomly hangs when trying to access a token.

Do you have scd-event script in your GNUPGHOME?

Sep 19 2024, 9:13 AM · scd
werner added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

I see. the systemd race of having two gpg-agent processes. The second gpg-agent should eventually go away but than it is already too late.

Sep 19 2024, 8:56 AM · gpgagent, scd, gnupg24, Bug Report
gniibe added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

I mean: two gpg-agent requests simultaneously running DEVINFO --watch.
Single scdaemon, two threads handling DEVINFO --watch simultaneously, by pselect + read.
Two threads waken up, but it was only one thread which can read(2), another was blocked (before the fix).

Sep 19 2024, 1:43 AM · gpgagent, scd, gnupg24, Bug Report

Sep 18 2024

werner added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

You mean it is possible that the initialization function is called by several threads - or that two scdaemon's are running before they realize that one of them is in the way?

Sep 18 2024, 6:30 PM · gpgagent, scd, gnupg24, Bug Report
gniibe lowered the priority of T7291: scdaemon randomly hangs when trying to access a token from Unbreak Now! to High.

For POSIX, I found an issue of T7151.
If you are using multiple clients which invoke SCD DEVINFO --watch, the problem should be fixed.
If it's not the case, let us locate a bug (or two).

Sep 18 2024, 6:55 AM · scd
gniibe added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

Fixed in rGfc30f7059650: scd: Fix DEVINFO to allow multiple clients.

Sep 18 2024, 6:52 AM · gpgagent, scd, gnupg24, Bug Report
gniibe added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

I realized that I put a bug on POSIX; When multiple clients do DEVINFO --watch, it is possible for scdaemon to hang (waiting pselect and read, read by one, read by another is blocked).

Sep 18 2024, 4:57 AM · gpgagent, scd, gnupg24, Bug Report

Sep 16 2024

gniibe claimed T7291: scdaemon randomly hangs when trying to access a token.
Sep 16 2024, 8:30 AM · scd

Sep 15 2024

werner triaged T7291: scdaemon randomly hangs when trying to access a token as Unbreak Now! priority.

Actually we have similar problems with the 2.4 branch - in particular on Windows. We can quite easy reproduce this when using Kleopatra. Thus the working hypothesis is a locking problem because Kleopatra uses several threads and the order of actions recently changed.

Sep 15 2024, 10:22 AM · scd

Sep 14 2024

gouttegd created T7291: scdaemon randomly hangs when trying to access a token.
Sep 14 2024, 1:17 PM · scd

Sep 3 2024

gniibe closed T7121: gnupg 2.2.43: scdaemon fails with KDF as Resolved.
Sep 3 2024, 3:35 AM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report

Aug 28 2024

werner added a project to T6690: Allow scdaemon to run as a system service: AppImage.

So we need a way to launch scdaemon via userv and make sure that the scdaemon user gives proper permissions to its socket file. gpg-agent also nees to check for a proper version of scdaemon and gpgme needs to be aware of this as well (if it want to directly connect to scdaemon).

Aug 28 2024, 4:41 PM · AppImage, Feature Request, scd, gnupg26

Jul 5 2024

gniibe claimed T7058: KDF-DO is not properly implemented.
Jul 5 2024, 2:40 AM · scd, gnupg, Bug Report

Jul 1 2024

gniibe changed the status of T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close from Open to Testing.
Jul 1 2024, 4:25 AM · gpgagent, scd, gnupg24, Bug Report
gniibe changed the status of T7160: scd: pipe server shutdown, a subtask of T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close, from Open to Testing.
Jul 1 2024, 4:25 AM · gpgagent, scd, gnupg24, Bug Report
gniibe changed the status of T7160: scd: pipe server shutdown from Open to Testing.

Fixed in rG01fa318be0f8: scd: Fix how scdaemon pipe server finishes.

Jul 1 2024, 4:25 AM · scd, gpgagent, Bug Report

Jun 27 2024

gniibe added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

Asking a change of gpgme would need more time... So, I decided to change gpg-agent side.
gpg-agent part was done in: rGb3f1f2cd192b: agent: Handle SCD DEVINFO --watch command in a special way.

Jun 27 2024, 8:38 AM · gpgagent, scd, gnupg24, Bug Report

Jun 25 2024

gniibe added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

scdaemon part was done in: rG36d8cffc6cd2: scd: Finish DEVINFO --watch command on input close.

Jun 25 2024, 10:56 AM · gpgagent, scd, gnupg24, Bug Report

Jun 24 2024

werner added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

Maybe we can support this directly in gpgme's assuan API.

Jun 24 2024, 9:05 AM · gpgagent, scd, gnupg24, Bug Report
gniibe added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

Did some experiment and I concluded (for now) that new command for gpg-agent would not be needed.
Instead, it might be better doing following in GPGME.

Jun 24 2024, 4:24 AM · gpgagent, scd, gnupg24, Bug Report

Jun 21 2024

werner raised the priority of T7121: gnupg 2.2.43: scdaemon fails with KDF from Normal to High.
Jun 21 2024, 1:21 PM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report

Jun 17 2024

gniibe added projects to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close: scd, gpgagent.
Jun 17 2024, 4:49 AM · gpgagent, scd, gnupg24, Bug Report
gniibe triaged T7160: scd: pipe server shutdown as Normal priority.
Jun 17 2024, 4:48 AM · scd, gpgagent, Bug Report

May 31 2024

whites11 added a comment to T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time.

Thanks for your answer, @werner

May 31 2024, 2:33 PM · gnupg26, yubikey, scd, Bug Report
werner added a comment to T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time.

Do not use the pcscd but the integrated CCID driver. This is actually the default form Unix. Or are you on Windows?

May 31 2024, 12:36 PM · gnupg26, yubikey, scd, Bug Report
whites11 added a comment to T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time.

Hello all. I think I am affected by this problem (I get asked for the yubikey PIV pin every time I make a git commit).
Is there a known workaround?

May 31 2024, 10:45 AM · gnupg26, yubikey, scd, Bug Report

May 17 2024

gniibe updated the task description for T7121: gnupg 2.2.43: scdaemon fails with KDF.
May 17 2024, 7:02 AM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report

May 16 2024

gniibe claimed T7121: gnupg 2.2.43: scdaemon fails with KDF.

Pushed the fix: rGbb57c808b2ad: scd:openpgp: Fix PIN pin2hash_if_kdf.

May 16 2024, 3:32 AM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report
gniibe created T7121: gnupg 2.2.43: scdaemon fails with KDF.
May 16 2024, 3:28 AM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report

Apr 23 2024

werner triaged T7099: Disable the import of certain card objects as Normal priority.
Apr 23 2024, 2:54 PM · gnupg26, scd, Restricted Project, Feature Request

Apr 22 2024

gniibe changed the status of T7058: KDF-DO is not properly implemented from Open to Testing.

Applied to 2.4 branch.

Apr 22 2024, 8:07 AM · scd, gnupg, Bug Report

Apr 15 2024

gniibe added a comment to T7058: KDF-DO is not properly implemented.

@mwalle Thank you for your testing.
Applied to master.
After testing, I'll also apply to 2.4 branch.

Apr 15 2024, 4:14 AM · scd, gnupg, Bug Report

Apr 12 2024

mwalle added a comment to T7058: KDF-DO is not properly implemented.

FWIW, I've tested this patch and it works fine with both KDF as a constructed tag and as a primitive tag.

Apr 12 2024, 2:30 PM · scd, gnupg, Bug Report
gniibe added a comment to T7058: KDF-DO is not properly implemented.

I'm considering applying the following patch. With this change, scdaemon will works well with a card implementation which consider F9 (wrongly) as primitive data object, as well as correct card implementation.

diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 26ac91ea2..09223ce33 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -410,6 +410,10 @@ get_cached_data (app_t app, int tag,
   size_t len;
   struct cache_s *c;
   int exmode;
+  int do_constructed = 0;
+
+  if ((tag < 0x0100 && (tag & 0x20)) || (tag >= 0x0100 && (tag & 0x2000)))
+    do_constructed = 1;
Apr 12 2024, 9:01 AM · scd, gnupg, Bug Report

Apr 9 2024

werner triaged T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time as Normal priority.
Apr 9 2024, 1:42 PM · gnupg26, yubikey, scd, Bug Report