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

Backport systemd PR #38677: Fix dependency loop handling in core/unit

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

    • systemd-257-15.el10
    • No
    • Moderate
    • rhel-systemd
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Request to backport systemd upstream fix

      Upstream PR: https://github.com/systemd/systemd/pull/38677
      Title: core/unit: use UNIT_FOREACH_DEPENDENCY_SAFE() at several more places

      Description

      This PR fixes a dependency loop issue in systemd's core unit management. The fix addresses an assertion error that can occur when manager_add_job() -> transaction_add_job_and_dependencies() updates dependencies while a unit is not yet loaded.

      Technical Details

      • The fix uses UNIT_FOREACH_DEPENDENCY_SAFE() in additional places to properly handle dependency loops
      • This is a follow-up to commit b7777d0 from PR #37465
      • Addresses GitHub issue #38676
      • Milestone: v258 (already merged upstream)

      Impact

      • Improves handling of unit dependencies
      • Prevents potential assertion errors during dependency generation
      • Enhances systemd's dependency management logic

      Request

      Please backport this fix to RHEL 10's systemd component to prevent potential dependency-related assertion failures.

              jamacku@redhat.com Jan Macku
              lnykryn@redhat.com Lukáš Nykrýn
              Jan Macku Jan Macku
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: