diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-22 23:40:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-22 23:40:36 +0000 |
commit | 1e153f5e3ce504af9cf586c9b819e4f0bc919f3b (patch) | |
tree | d6462e2ccef3a7c2e6e824e69212811a4bd727cd /sys-fs/multipath-tools/files | |
parent | c794e18e3eef5414856f70733e3a62479ce78c33 (diff) |
gentoo auto-resync : 22:02:2024 - 23:40:35
Diffstat (limited to 'sys-fs/multipath-tools/files')
-rw-r--r-- | sys-fs/multipath-tools/files/multipath-tools-0.9.7-null-pointer-dereference-in-uev_update_path.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.9.7-null-pointer-dereference-in-uev_update_path.patch b/sys-fs/multipath-tools/files/multipath-tools-0.9.7-null-pointer-dereference-in-uev_update_path.patch new file mode 100644 index 000000000000..0210563bd7c0 --- /dev/null +++ b/sys-fs/multipath-tools/files/multipath-tools-0.9.7-null-pointer-dereference-in-uev_update_path.patch @@ -0,0 +1,28 @@ +From fc8b102c666d7fbad9242dea43a64941399a1c0d Mon Sep 17 00:00:00 2001 +From: Benjamin Marzinski <bmarzins@redhat.com> +Date: Tue, 16 Jan 2024 20:19:11 -0500 +Subject: [PATCH] multipathd: fix null pointer dereference in uev_update_path + +The Auto-resize code added a check that deferences pp->mpp without +checking that it's non-NULL. Fix it. + +Fixes: 981b83ad1 ("multipathd: Add auto_resize config option") +Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> +Reviewed-by: Martin Wilck <mwilck@suse.com> +--- + multipathd/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/multipathd/main.c b/multipathd/main.c +index 74f6cd92..fbc3f8da 100644 +--- a/multipathd/main.c ++++ b/multipathd/main.c +@@ -1630,7 +1630,7 @@ uev_update_path (struct uevent *uev, struct vectors * vecs) + } + } + } +- if (auto_resize != AUTO_RESIZE_NEVER && ++ if (auto_resize != AUTO_RESIZE_NEVER && mpp && + !mpp->wait_for_udev) { + struct pathgroup *pgp; + struct path *pp2; |