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

Reply via email to