Thread View: linux.debian.bugs.dist
5 messages
5 total messages
Started by Vladimir K
Wed, 18 Nov 2026 20:30
Bug#1154411: gnutls28: Fails to work with librtpkcs11ecp.so pkcs11 provider
Author: Vladimir K
Date: Wed, 18 Nov 2026 20:30
Date: Wed, 18 Nov 2026 20:30
57 lines
4211 bytes
4211 bytes
Source: gnutls28 Version: 3.8.9-3+deb13u4 Severity: normal Control: fixed -1 3.8.12-1 Dear Maintainer, gnutls tooling in trixie fails to work with librtpkcs11ecp.so pkcs11 provider It appears to be somehow related to upstream issue: https://gitlab.com/gnutls/gnutls/-/work_items/1774 Which was solved by: https://gitlab.com/gnutls/gnutls/-/merge_requests/2049 But that issue states that the bug started to happen in 3.8.11 and 3.8.10 worked. Could 48_0001-pkcs11-try-to-initialize-modules-in-thread-safe-mode.patch cause this? I see the same "Thread locking error" happening on trixie's 3.8.9: $ P11_KIT_DEBUG=all GNUTLS_DEBUG_LEVEL=5 p11tool --list-tokens --provider /usr/lib/librtpkcs11ecp.so (p11-kit:16331) p11_library_init_impl: initializing library gnutls[2]: Enabled GnuTLS 3.8.9 logging... gnutls[2]: getrandom random generator was selected gnutls[2]: Intel SSSE3 was detected gnutls[2]: Intel AES accelerator was detected gnutls[2]: Intel GCM accelerator (AVX) was detected gnutls[2]: cfg: unable to access: /etc/gnutls/config: 2 (p11-kit:16331) p11_kit_module_load: in: /usr/lib/librtpkcs11ecp.so (p11-kit:16331) load_module_from_file_inlock: loading module from path: /usr/lib/librtpkcs11ecp.so (p11-kit:16331) dlopen_and_get_function_list: C_GetInterface not available. Falling back to C_GetFunctionList() (p11-kit:16331) dlopen_and_get_function_list: opened module: /usr/lib/librtpkcs11ecp.so (p11-kit:16331) p11_kit_module_load: out: success (p11-kit:16331) managed_C_Initialize: in (p11-kit:16331) initialize_module_inlock_reentrant: C_Initialize: calling (p11-kit:16331) initialize_module_inlock_reentrant: C_Initialize: result: 9 (p11-kit:16331) managed_C_Initialize: out: 9 (p11-kit:16331) p11_kit_module_release: in (p11-kit:16331) p11_kit_module_release: out pkcs11_add_provider: Thread locking error (p11-kit:16331) uninit_common: uninitializing library Upgrading to gnutls28 3.8.13 packages from sid fixes the problem both in p11tool and other software using it: NetworkManager, openconnect. P.S: librtpkcs11ecp is of the latest version 2.22.1.0. I tried downgrading to 2.19.0.0, the oldest version I have, but it still does not work with 3.8.9. -- System Information: Debian Release: 13.7 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 7.1.13+deb13-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_CPU_OUT_OF_SPEC, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
Bug#1154411: gnutls28: Fails to work with librtpkcs11ecp.so pkcs11 provider
Author: Vladimir K
Date: Thu, 19 Nov 2026 14:00
Date: Thu, 19 Nov 2026 14:00
2 lines
1926 bytes
1926 bytes
I've rebuilt trixie gnutls28 3.8.9 without 48_0001-pkcs11-try-to-initialize-modules-in-thread-safe-mode.patch, it fixes the issue with librtpkcs11ecp.so
Bug#1154411: gnutls28: Fails to work with librtpkcs11ecp.so pkcs11 provider
Author: Andreas Metzler
Date: Sat, 21 Nov 2026 17:10
Date: Sat, 21 Nov 2026 17:10
40 lines
2988 bytes
2988 bytes
On 2026-11-18 Vladimir K <pzs-fs@yandex.ru> wrote: > Source: gnutls28 > Version: 3.8.9-3+deb13u4 > Severity: normal > Control: fixed -1 3.8.12-1 > Dear Maintainer, gnutls tooling in trixie fails to work with librtpkcs11ecp.so pkcs11 provider > It appears to be somehow related to upstream issue: > https://gitlab.com/gnutls/gnutls/-/work_items/1774 > Which was solved by: > https://gitlab.com/gnutls/gnutls/-/merge_requests/2049 Hello Vladimir, Thanks for the pointer > But that issue states that the bug started to happen in 3.8.11 and > 3.8.10 worked. Could > 48_0001-pkcs11-try-to-initialize-modules-in-thread-safe-mode.patch > cause this? Yes, the Debian trixie package contain multiple fixes from later releases 48_0001-pkcs11-try-to-initialize-modules-in-thread-safe-mode.patch was cherry-picked from 3.8.11. Could you try whether adding the two patches from https://gitlab.com/gnutls/gnutls/-/merge_requests/2049 fixes the issue for you? FWIW I have generated packages with the patchset, they are available here https://debusine.debian.net/debian/developers/work-request/1641948/#output The source can be downladed in the "Work request" tab, binary packages are in the "Output" tab. cu Andreas -- "You people are noisy," Nia said. I made the gesture of agreement.
Bug#1154411: gnutls28: Fails to work with librtpkcs11ecp.so pkcs11 provider
Author: Vladimir K
Date: Sun, 22 Nov 2026 11:10
Date: Sun, 22 Nov 2026 11:10
11 lines
2522 bytes
2522 bytes
> Could you try whether adding the two patches from > https://gitlab.com/gnutls/gnutls/-/merge_requests/2049 fixes the issue > for you? FWIW I have generated packages with the patchset, they are > available here > https://debusine.debian.net/debian/developers/work-request/1641948/#output > The source can be downladed in the "Work request" tab, binary packages > are in the "Output" tab. Hi! I've built with https://debusine.debian.net/debian/developers/artifact/5400998/file/gnutls28_3.8.9-3+deb13u4+1.debian.tar.xz It works, thank you!
Bug#1154411: gnutls28: Fails to work with librtpkcs11ecp.so pkcs11 provider
Author: Andreas Metzler
Date: Sun, 22 Nov 2026 12:20
Date: Sun, 22 Nov 2026 12:20
17 lines
2770 bytes
2770 bytes
On 2026-11-22 Vladimir K <pzs-fs@yandex.ru> wrote: > > Could you try whether adding the two patches from > > https://gitlab.com/gnutls/gnutls/-/merge_requests/2049 fixes the issue > > for you? FWIW I have generated packages with the patchset, they are > > available here > > https://debusine.debian.net/debian/developers/work-request/1641948/#output > > The source can be downladed in the "Work request" tab, binary packages > > are in the "Output" tab. > Hi! > I've built with https://debusine.debian.net/debian/developers/artifact/5400998/file/gnutls28_3.8.9-3+deb13u4+1.debian.tar.xz > It works, thank you! Thanks for the quick response. I will try to get this included in the next point release, scheduled for Jan 16. cu Andreas
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads