Bug 2150985 - [abrt] gnome-keyring: _gcry_logv(): gnome-keyring-daemon killed by SIGABRT
Summary: [abrt] gnome-keyring: _gcry_logv(): gnome-keyring-daemon killed by SIGABRT
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-keyring
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:4c81d8f46907d27d3eb14c4318f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-05 18:59 UTC by Clemens Lang
Modified: 2023-01-17 20:33 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---


Attachments (Terms of Use)
File: backtrace (25.06 KB, text/plain)
2022-12-05 18:59 UTC, Clemens Lang
no flags Details
File: core_backtrace (14.37 KB, text/plain)
2022-12-05 18:59 UTC, Clemens Lang
no flags Details
File: cpuinfo (1.95 KB, text/plain)
2022-12-05 18:59 UTC, Clemens Lang
no flags Details
File: dso_list (622 bytes, text/plain)
2022-12-05 18:59 UTC, Clemens Lang
no flags Details
File: environ (315 bytes, text/plain)
2022-12-05 18:59 UTC, Clemens Lang
no flags Details
File: limits (1.29 KB, text/plain)
2022-12-05 18:59 UTC, Clemens Lang
no flags Details
File: maps (3.93 KB, text/plain)
2022-12-05 18:59 UTC, Clemens Lang
no flags Details
File: mountinfo (3.10 KB, text/plain)
2022-12-05 18:59 UTC, Clemens Lang
no flags Details
File: open_fds (845 bytes, text/plain)
2022-12-05 18:59 UTC, Clemens Lang
no flags Details
File: proc_pid_status (1.37 KB, text/plain)
2022-12-05 18:59 UTC, Clemens Lang
no flags Details

Description Clemens Lang 2022-12-05 18:59:29 UTC
Description of problem:
Install using the Anaconda Web UI Preview ISO, but do it with fips=1 on the command line, then start Fedora with fips=1, and set a short (3 character) password. On startup, gnome-keyring-daemon aborts. This may be due to the short password, and maybe we do not need to fix this, since nobody should use short passwords in FIPS mode.

Version-Release number of selected component:
gnome-keyring-42.1-2.fc37

Additional info:
reporter:       libreport-2.17.4
backtrace_rating: 4
cgroup:         0::/user.slice/user-1000.slice/session-2.scope
cmdline:        /usr/bin/gnome-keyring-daemon --daemonize --login
crash_function: _gcry_logv
executable:     /usr/bin/gnome-keyring-daemon
journald_cursor: s=bd425fc93ebd4fe1b93a267002ccd966;i=867;b=5346a975f80b4580b561f8715c31d61d;m=390f5a4;t=5ef19266a3e65;x=fb416e344150f3c8
kernel:         6.0.9-300.fc37.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Potential duplicate: Confidentialbug 2093705

Comment 1 Clemens Lang 2022-12-05 18:59:33 UTC
Created attachment 1930163 [details]
File: backtrace

Comment 2 Clemens Lang 2022-12-05 18:59:35 UTC
Created attachment 1930164 [details]
File: core_backtrace

Comment 3 Clemens Lang 2022-12-05 18:59:36 UTC
Created attachment 1930165 [details]
File: cpuinfo

Comment 4 Clemens Lang 2022-12-05 18:59:38 UTC
Created attachment 1930166 [details]
File: dso_list

Comment 5 Clemens Lang 2022-12-05 18:59:39 UTC
Created attachment 1930167 [details]
File: environ

Comment 6 Clemens Lang 2022-12-05 18:59:41 UTC
Created attachment 1930168 [details]
File: limits

Comment 7 Clemens Lang 2022-12-05 18:59:42 UTC
Created attachment 1930169 [details]
File: maps

Comment 8 Clemens Lang 2022-12-05 18:59:44 UTC
Created attachment 1930170 [details]
File: mountinfo

Comment 9 Clemens Lang 2022-12-05 18:59:46 UTC
Created attachment 1930171 [details]
File: open_fds

Comment 10 Clemens Lang 2022-12-05 18:59:47 UTC
Created attachment 1930172 [details]
File: proc_pid_status

Comment 11 Clemens Lang 2022-12-05 19:06:08 UTC
Actually, the problem is likely that https://github.com/GNOME/gnome-keyring/blob/master/pkcs11/secret-store/gkm-secret-binary.c#L639-L640 uses GCRY_MD_MD5, which it shouldn't, and which will not work in FIPS mode.

Comment 12 Daiki Ueno 2022-12-06 02:27:44 UTC
It would require updating the keyring format to fix this properly. We made some effort in libsecret to define the format version 1, and the plan was to replace the gnome-keyring-daemon with a secret-service daemon provided by libsecret (bug 1899998), though the work has been stalled for quite some time for lack of resources.

One of the tricky parts is migration of the existing data, but if this bug only affects Anaconda for new user, there might be an option to bypass gnome-keyring-daemon, e.g., using the local file storage provided by libsecret, or some other means.

Comment 13 Clemens Lang 2022-12-06 10:19:03 UTC
This does not affect anaconda, this happens after installation on first startup (and probably every startup after that).
Since this code is probably also on RHEL 9, this would mean that gnome-keyring cannot be used on systems in FIPS mode on RHEL 9.

Comment 14 Fhiss 2023-01-17 20:33:20 UTC
Similar problem has been detected:

Vyt 

reporter:       libreport-2.17.4
backtrace_rating: 4
cgroup:         0::/user.slice/user-1000.slice/session-2.scope
cmdline:        /usr/bin/gnome-keyring-daemon --daemonize --login
crash_function: _gcry_logv
executable:     /usr/bin/gnome-keyring-daemon
journald_cursor: s=ef4e23ffd9bf4938b7231ffe62a22198;i=2c733;b=828a9ca124df4dae824b8392b59d2f10;m=2a8af94;t=5f2648de64335;x=3e5e76ac4c9f114d
kernel:         6.0.17-300.fc37.x86_64
package:        gnome-keyring-42.1-2.fc37
reason:         gnome-keyring-daemon killed by SIGABRT
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000


Note You need to log in before you can comment on or make changes to this bug.