Bug 2141860
Summary: | Race condition causes kpartx to create a dm device which uses itself as part of the target, creating an infinite recursion | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Ben Marzinski <bmarzins> |
Component: | device-mapper-multipath | Assignee: | Ben Marzinski <bmarzins> |
Status: | CLOSED ERRATA | QA Contact: | Lin Li <lilin> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 9.2 | CC: | agk, bmarzins, cwei, djeffery, heinzm, jpittman, lilin, msnitzer, prajnoha, zkabelac |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | device-mapper-multipath-0.8.7-15.el9 | Doc Type: | Bug Fix |
Doc Text: |
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.
|
Story Points: | --- |
Clone Of: | 2128885 | Environment: | |
Last Closed: | 2023-05-09 08:14:07 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: | |||
Bug Depends On: | 2128885 | ||
Bug Blocks: |
Description
Ben Marzinski
2022-11-10 22:08:15 UTC
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: device-mapper-multipath security and bug fix 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-2023:2459 |