8d4916400c
0012-RH-update-on-show-topology.patch 0013-RH-manpage-update.patch 0014-RH-RHEL5-style-partitions.patch 0015-RH-add-followover.patch 0016-RH-dont-remove-map-on-enomem.patch 0017-RH-fix-shutdown-crash.patch 0018-RH-warn-on-bad-dev-loss-tmo.patch 0019-RH-deprecate-uid-gid-mode.patch 0020-RH-dont-remove-map-twice.patch 0021-RH-validate-guid-partitions.patch 0022-RH-adjust-messages.patch 0023-RH-manpage-update.patch
25 lines
664 B
Diff
25 lines
664 B
Diff
---
|
|
kpartx/gpt.c | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
Index: multipath-tools-120123/kpartx/gpt.c
|
|
===================================================================
|
|
--- multipath-tools-120123.orig/kpartx/gpt.c
|
|
+++ multipath-tools-120123/kpartx/gpt.c
|
|
@@ -367,6 +367,15 @@ is_gpt_valid(int fd, uint64_t lba,
|
|
}
|
|
|
|
|
|
+ /* Check that sizeof_partition_entry has the correct value */
|
|
+ if (__le32_to_cpu((*gpt)->sizeof_partition_entry) != sizeof(gpt_entry)) {
|
|
+ // printf("GUID partition entry size check failed.\n");
|
|
+ free(*gpt);
|
|
+ *gpt = NULL;
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+
|
|
if (!(*ptes = alloc_read_gpt_entries(fd, *gpt))) {
|
|
free(*gpt);
|
|
*gpt = NULL;
|