[pkg-opensc-maint] Bug#1013634: opensc: infinite loop in card_detect when unplugging yubikey
Julien Cristau
jcristau at debian.org
Fri Jun 24 13:38:24 BST 2022
Package: opensc
Version: 0.22.0-2+b1
Severity: important
Hi,
I recently started seeing firefox's socket thread go in an infinite loop
after unplugging my yubikey (not all the time, maybe once a week or so).
I initially reported the bug to Mozilla at
https://bugzilla.mozilla.org/show_bug.cgi?id=1769942 but AFAICT from
more debugging it actually comes from opensc: card_detect never
finishes, it keeps calling sc_detect_card_presence in a loop here:
https://github.com/OpenSC/OpenSC/blob/0.22.0/src/pkcs11/slot.c#L220
Per https://bugzilla.mozilla.org/show_bug.cgi?id=1769942#c6, this commit
may be relevant:
https://github.com/OpenSC/OpenSC/commit/738588fd2b1c69794ba9ebe7bdb898486e001ecb
Cheers,
Julien
-- System Information:
Debian Release: bookworm/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing'), (101, 'unstable-debug'), (101, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.17.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages opensc depends on:
ii libc6 2.33-7
ii libreadline8 8.1.2-1.2
ii libssl3 3.0.3-7
ii opensc-pkcs11 0.22.0-2+b1
ii zlib1g 1:1.2.11.dfsg-4
Versions of packages opensc recommends:
ii pcscd 1.9.8-1
opensc suggests no packages.
-- no debconf information
More information about the pkg-opensc-maint
mailing list