Bug 1885553
Summary: | "systemd --user" can dump core upon session closing | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Renaud Métrich <rmetrich> |
Component: | systemd | Assignee: | David Tardon <dtardon> |
Status: | CLOSED ERRATA | QA Contact: | Frantisek Sumsal <fsumsal> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.1 | CC: | chorn, dtardon, hmatsumo, jamacku, pkhedeka, qguo, sbroz, systemd-maint-list |
Target Milestone: | rc | ||
Target Release: | 8.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | systemd-239-42.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-05-18 14:54:22 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Renaud Métrich
2020-10-06 11:44:38 UTC
At the immediate level: the crash should be solved. Looking that from a higher level, - why is pulseaudio triggered when someone logs in via SSH? - why is pulseaudio trying to activate bluetooth? If all of this is happening on a desktop, a user logging into wayland/xorg makes sense to trigger pulseaudio/bluetooth. Here in this case also these packages make sense: customer might want to run Gnome on vncserver, and that depends on pulseaudio and bluetooth. But at least bluetooth hardware is not in this server, maybe bluetooth rpms should detect that upon package installation and properly disable bluetooth daemons? Hi Christian, Below is what happens when a user logs in through SSH or Xorg/Wayland 1. user@<uid>.service executes this spawns "systemd --user" 2. "systemd --user" sets up pulseaudio.socket (listening on /run/user/<uid>/pulse/native) as part of reaching sockets.target this is because pulseaudio.socket is installed (/usr/lib/systemd/user/sockets.target.wants/pulseaudio.socket) 3. "systemd --user" sets up pulseaudio.service as part of reaching default.target this is because pulseaudio.service is installed (/etc/systemd/user/default.target.wants/pulseaudio.service) To avoid step 3 which is the root cause, we could just modify the pulseaudio.service and preset to not have it enabled automatically. This should not be required since there is the pulseaudio socket installed, so if someone requires sounds, it will start it. Regarding pulseaudio and bluetooth, I guess this happens because there may be bluetooth backends for pulseaudio. Thanks, Renaud. I was just wondering if this whole "let's just start this and that in case it's needed" stack here can be made more bullet proof. When customers log in via SSH, they would not expect pulseaudio triggering bluetooth, as that hardware does not even exist in their server. Also having no pulseaudio spawned would go unnoticed by at least 99% of the users logging in via ssh. fix merged to github master branch -> https://github.com/systemd-rhel/rhel-8/pull/122 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: systemd security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:1611 |