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

POSIX message queue socket unit with messages in the queue at reboot/shutdown time can result in a hang

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

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhel-9.7
    • rhel-9.5
    • systemd
    • rhel-systemd
    • ssg_core_services
    • 18
    • 26
    • 3
    • False
    • False
    • Hide

      None

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

      What were you trying to do that didn't work?

      Creating a POSIX message queue-based systemd socket unit that starts a service.

      What is the impact of this issue to you?

      It results in a hang on reboot or shutdown if the POSIX message queue still has messages in it when shutting down.

      Please provide the package NVR for which the bug is seen:

      systemd-252-46.el9_5.3

      How reproducible is this bug?:

      Given the right conditions it can be reproduced at will

      Steps to reproduce

      1. Create a systemd socket unit that allocates a POSIX message queue
      2. Write a message to the message queue
      3. Reboot the system

      Expected results

      The system reboots

      Actual results

      The reboot hangs

        1. mqtest.socket
          0.2 kB
        2. mqtest.py
          0.2 kB
        3. mqtest.service
          0.1 kB

              dtardon@redhat.com David Tardon
              toddcmiller Todd Miller (Inactive)
              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:
                Resolved: