Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-94912

Opening sessions hangs for 120 seconds after restarting dbus service

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • rhel-9.6, rhel-10.0
    • systemd
    • None
    • Yes
    • Important
    • TestCaseProvided
    • rhel-systemd
    • ssg_core_services
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      With RHEL7 it was known that restarting dbus service was causing delays in logins, because pam_systemd was timing out after 25 seconds.
      With RHEL8 this was fixed, because systemd-logind was restarting automatically.

      I thought such issue was fixed with RHEL9 but apparently not. It's even worse: pam_systemd now hangs for 120 seconds!

      The root cause for this is, when restarting dbus, systemd-logind disconnects from DBus but never reconnects, causing DBus service to remain activatable forever:

      # busctl | grep login1
      org.freedesktop.login1                    - -               -       (activatable) -                      -       -
      

      Please harden systemd-logind behavior, it's really important to have something robust here.

      Reproducer

      # systemctl restart dbus
      # time ssh localhost true
      real	2m1.819s
      user	0m0.021s
      sys	0m0.026s
      

              lnykryn@redhat.com Lukáš Nykrýn
              rhn-support-rmetrich Renaud Métrich
              systemd maint mailing list systemd maint mailing list
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: