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

Race condition causes kpartx to create a dm device which uses itself as part of the target, creating an infinite recursion [rhel-8.6.0.z]

    • device-mapper-multipath-0.8.4-22.el8_6.4
    • None
    • Important
    • ZStream
    • rhel-sst-logical-storage
    • ssg_filesystems_storage_and_HA
    • None
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      Cause: kpartx doesn't hold a disk device open while it creates partition devices from it. This means that the disk device can be removed while creating the partition devices. When this happens the disk device that the partition devices reference my end up pointing to another device, including the partition device itself.

      Consequence: If the partition device ends up pointing to itself, the kernel can enter an infinite loop trying to set the device up.

      Fix: kpartx holds the disk device open while creating the partition devices, so that it cannot be removed.

      Result: partition devices will end up pointing to the disk the device, and the kernel will not lock up in an infinite loop while trying to create the partition device.
      Show
      Cause: kpartx doesn't hold a disk device open while it creates partition devices from it. This means that the disk device can be removed while creating the partition devices. When this happens the disk device that the partition devices reference my end up pointing to another device, including the partition device itself. Consequence: If the partition device ends up pointing to itself, the kernel can enter an infinite loop trying to set the device up. Fix: kpartx holds the disk device open while creating the partition devices, so that it cannot be removed. Result: partition devices will end up pointing to the disk the device, and the kernel will not lock up in an infinite loop while trying to create the partition device.
    • None

      This bug has been copied from bug#2128885 and will be backported to the 8.6.0 Z-stream.

              rhn-engineering-bmarzins Benjamin Marzinski
              pgm-rhel-tools_redhat pgm-rhel-tools@redhat.com (Inactive)
              Lin Li Lin Li
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: