Skip to content

Commit d36a6a7

Browse files
committed
Merge branch 'queue' into next
2 parents cdcde84 + b1d2861 commit d36a6a7

7 files changed

Lines changed: 153 additions & 796 deletions

File tree

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ See [README.md](README.md) for additional information.
4949
Fixes [#145](https://github.com/opensvc/multipath-tools/issues/145).
5050
* An overlong partition delimiter (-p option) could cause kpartx to crash.
5151
Fix it. Commit a2f344a.
52+
* Even with the libudev wrapper code introduced in 0.14.0, multipathd ran into
53+
use-after-free errors in tests where multipathd was restarted frequently.
54+
Fix this by preventing thread cancellation during libudev calls.
55+
Fixes [#152](https://github.com/opensvc/multipath-tools/issues/152).
56+
Commit b424465.
5257

5358
### Other changes
5459

kpartx/kpartx.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,10 +577,11 @@ main(int argc, char **argv){
577577

578578
for (j = MAXSLICES-1; j >= 0; j--) {
579579
char *part_uuid = NULL, *reason;
580-
int res = dm_find_part(mapname, delim, j + 1, uuid,
581-
partname, sizeof(partname),
582-
&part_uuid, verbose);
583-
if (slices[j].size || res != DFP_DEVICE_RELOAD)
580+
581+
if (slices[j].size ||
582+
dm_find_part(mapname, delim, j + 1, uuid, partname,
583+
sizeof(partname), &part_uuid,
584+
verbose) != DFP_DEVICE_RELOAD)
584585
continue;
585586

586587
if (part_uuid && uuid) {

0 commit comments

Comments
 (0)