public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Marian Csontos <mcsontos@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/lvm2] rawhide: New upstream release v2.03.44
Date: Tue, 27 Oct 2026 19:46:36 GMT	[thread overview]
Message-ID: <179313039625.1.17540481032924186572.rpms-lvm2-0218c2b142f2@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/lvm2
Branch : rawhide
Commit : 0218c2b142f2a220af6abb644fca81b2e024028a
Author : Marian Csontos <mcsontos@redhat.com>
Date   : 2026-10-27T20:26:37+01:00
Stats  : +21/-226 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/lvm2/c/0218c2b142f2a220af6abb644fca81b2e024028a?branch=rawhide

Log:
New upstream release v2.03.44

---
diff --git a/0001-pvscan-preserve-preferred-device-name-when-importing.patch b/0001-pvscan-preserve-preferred-device-name-when-importing.patch
deleted file mode 100644
index fea7e13..0000000
--- a/0001-pvscan-preserve-preferred-device-name-when-importing.patch
+++ /dev/null
@@ -1,205 +0,0 @@
-From 4d5e75a4e27587db8a0130565e0f3c627a8f3df9 Mon Sep 17 00:00:00 2001
-From: Amin Vakil <info@aminvakil.com>
-Date: Wed, 30 Sep 2026 21:46:06 +0330
-Subject: [PATCH] pvscan: preserve preferred device name when importing
- DEVLINKS
-
-DEVLINKS may contain symlinks that udev has not created yet. Adding
-these aliases through _add_alias can promote a pending symlink over the
-usable device path, causing size detection and autoactivation to fail.
-
-Restore the original preferred alias after adding each DEVLINKS entry,
-while retaining allocation from the device-cache memory pool.
-
-Add an in-memory regression test for preferred-name preservation and
-alias retention, with a dependency on the generated command header.
-
-Fixes: 5d399b814e7a ("pvscan: fix UAF in DEVLINKS alias handling")
-(cherry picked from commit 0b1cb8bcb3bf8bd666521a63c0be1e9da51e2337)
----
- WHATS_NEW               |  4 ++
- lib/device/dev-cache.c  | 16 +++++++-
- test/unit/Makefile      |  4 ++
- test/unit/dev_cache_t.c | 88 +++++++++++++++++++++++++++++++++++++++++
- test/unit/units.h       |  2 +
- 5 files changed, 113 insertions(+), 1 deletion(-)
- create mode 100644 test/unit/dev_cache_t.c
-
-diff --git a/WHATS_NEW b/WHATS_NEW
-index f786789bb..9bdb7f4bb 100644
---- a/WHATS_NEW
-+++ b/WHATS_NEW
-@@ -1,3 +1,7 @@
-+Version 2.03.44 - 
-+==================
-+  Fix pvscan autoactivation when DEVLINKS symlinks are not yet created.
-+
- Version 2.03.43 - 30th September 2026
- =====================================
-   Wipe stale signatures before formatting a VDO data LV on thin storage.
-diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c
-index ec48d3474..8cb7a7c57 100644
---- a/lib/device/dev-cache.c
-+++ b/lib/device/dev-cache.c
-@@ -336,7 +336,21 @@ out:
- 
- int dev_cache_add_alias(struct device *dev, const char *name)
- {
--	return _add_alias(dev, name, NO_HASH);
-+	struct dm_list *preferred = dm_list_first(&dev->aliases);
-+
-+	if (!_add_alias(dev, name, NO_HASH))
-+		return 0;
-+
-+	/*
-+	 * pvscan imports DEVLINKS for regex filters before udev creates symlinks.
-+	 * Keep the existing preferred name for opening the device.
-+	 */
-+	if (preferred) {
-+		dm_list_del(preferred);
-+		dm_list_add_h(&dev->aliases, preferred);
-+	}
-+
-+	return 1;
- }
- 
- int get_sysfs_binary(const char *path, char *buf, size_t buf_size, int *retlen)
-diff --git a/test/unit/Makefile b/test/unit/Makefile
-index 40cc545fe..4ee651dd2 100644
---- a/test/unit/Makefile
-+++ b/test/unit/Makefile
-@@ -16,6 +16,7 @@
- UNIT_SOURCE=\
- 	test/unit/bcache_t.c \
- 	test/unit/daemon_stray_t.c \
-+	test/unit/dev_cache_t.c \
- 	test/unit/bcache_utils_t.c \
- 	test/unit/bitset_t.c \
- 	test/unit/config_t.c \
-@@ -49,6 +50,9 @@ CLEAN_TARGETS += $(UNIT_DEPENDS) $(UNIT_OBJECTS) \
- lib/liblvm-internal.a: lib
- libdaemon/client/libdaemonclient.a: libdaemon
- 
-+# toolcontext.h requires the generated cmds.h.
-+test/unit/dev_cache_t.o: | include
-+
- $(UNIT_TARGET): $(UNIT_OBJECTS) $(LVMINTERNAL_LIBS)
- 	$(SHOW) "    [LD] $@"
- 	$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) \
-diff --git a/test/unit/dev_cache_t.c b/test/unit/dev_cache_t.c
-new file mode 100644
-index 000000000..8e748a9fa
---- /dev/null
-+++ b/test/unit/dev_cache_t.c
-@@ -0,0 +1,88 @@
-+/*
-+ * This file is part of LVM2.
-+ *
-+ * This copyrighted material is made available to anyone wishing to use,
-+ * modify, copy, or redistribute it subject to the terms and conditions
-+ * of the GNU General Public License v.2.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software Foundation,
-+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-+ */
-+
-+#include "lib/misc/lib.h"
-+#include "lib/commands/toolcontext.h"
-+#include "units.h"
-+
-+static void *_fixture_init(void)
-+{
-+	struct cmd_context *cmd = calloc(1, sizeof(*cmd));
-+
-+	if (!cmd)
-+		goto bad;
-+
-+	dm_strncpy(cmd->dev_dir, "/dev/", sizeof(cmd->dev_dir));
-+	cmd->cft = dm_config_from_string("devices { preferred_names = [] }");
-+	if (!cmd->cft || !dev_cache_init(cmd))
-+		goto bad;
-+
-+	return cmd;
-+bad:
-+	fprintf(stderr, "could not initialize device cache test\n");
-+	exit(1);
-+}
-+
-+static void _fixture_exit(void *fixture)
-+{
-+	struct cmd_context *cmd = fixture;
-+
-+	dev_cache_exit();
-+	dm_config_destroy(cmd->cft);
-+	free(cmd);
-+}
-+
-+static void test_devlinks_preserve_preferred_name(void *fixture)
-+{
-+	struct device dev = { 0 };
-+	struct dm_str_list *sl;
-+	unsigned aliases_found = 0;
-+
-+	/* Only alias strings are used; no device nodes are opened or scanned. */
-+	dev_init(&dev);
-+	T_ASSERT(dev_cache_add_alias(&dev, "/dev/dm-0"));
-+
-+	/* DEVLINKS may advertise these names before udev creates the symlinks. */
-+	T_ASSERT(dev_cache_add_alias(&dev, "/dev/mapper/cryptlvm"));
-+	T_ASSERT(!strcmp(dev_name(&dev), "/dev/dm-0"));
-+	T_ASSERT(dev_cache_add_alias(&dev, "/dev/disk/by-id/lvm-test"));
-+	T_ASSERT(!strcmp(dev_name(&dev), "/dev/dm-0"));
-+
-+	/* Retain pending aliases for regex filters, without adding duplicates. */
-+	T_ASSERT(dev_cache_add_alias(&dev, "/dev/mapper/cryptlvm"));
-+	T_ASSERT(dev_cache_add_alias(&dev, "/dev/dm-0"));
-+	T_ASSERT(!strcmp(dev_name(&dev), "/dev/dm-0"));
-+	T_ASSERT_EQUAL(dm_list_size(&dev.aliases), 3);
-+	dm_list_iterate_items(sl, &dev.aliases) {
-+		if (!strcmp(sl->str, "/dev/mapper/cryptlvm"))
-+			aliases_found |= 1;
-+		if (!strcmp(sl->str, "/dev/disk/by-id/lvm-test"))
-+			aliases_found |= 2;
-+	}
-+	T_ASSERT_EQUAL(aliases_found, 3);
-+}
-+
-+void dev_cache_tests(struct dm_list *all_tests)
-+{
-+	struct test_suite *ts = test_suite_create(_fixture_init, _fixture_exit);
-+
-+	if (!ts) {
-+		fprintf(stderr, "out of memory\n");
-+		exit(1);
-+	}
-+
-+	register_test(ts, "/device/dev-cache/devlinks-preferred-name",
-+		      "pending DEVLINKS aliases preserve the usable device name",
-+		      test_devlinks_preserve_preferred_name);
-+
-+	dm_list_add(all_tests, &ts->list);
-+}
-diff --git a/test/unit/units.h b/test/unit/units.h
-index a66896b66..780c12a37 100644
---- a/test/unit/units.h
-+++ b/test/unit/units.h
-@@ -25,6 +25,7 @@ void bcache_utils_tests(struct dm_list *all_tests);
- void bitset_tests(struct dm_list *all_tests);
- void config_tests(struct dm_list *all_tests);
- void daemon_stray_tests(struct dm_list *all_tests);
-+void dev_cache_tests(struct dm_list *all_tests);
- void dm_list_tests(struct dm_list *all_tests);
- void dm_hash_tests(struct dm_list *all_tests);
- void dm_status_tests(struct dm_list *all_tests);
-@@ -50,6 +51,7 @@ static inline void register_all_tests(struct dm_list *all_tests)
- 	bitset_tests(all_tests);
- 	config_tests(all_tests);
- 	daemon_stray_tests(all_tests);
-+	dev_cache_tests(all_tests);
- 	dm_list_tests(all_tests);
- 	dm_hash_tests(all_tests);
- 	dm_status_tests(all_tests);
--- 
-2.56.0
-

diff --git a/LVM2.2.03.43.tgz.asc b/LVM2.2.03.43.tgz.asc
deleted file mode 100644
index 5d0809d..0000000
--- a/LVM2.2.03.43.tgz.asc
+++ /dev/null
@@ -1,16 +0,0 @@
------BEGIN PGP SIGNATURE-----
-
-iQIzBAABCgAdFiEE1QGkeEQK4v0TChvouREkMeUJA58FAmq81qoACgkQuREkMeUJ
-A58SiBAAtIAD1uLqxpy7Rm1QOE5nQKwDJwHHPW9/abYRa04mO6MNj1mu0JoGYMRJ
-FuzeBdSyKrTBVSL69a9sK2RxnsW9qTulSX67Accq8CX0Llny9szxBBVvCpGAvZKI
-HwI+ih0BRMjXSgdcx57e7T6NcaPZx8Fw92CzfOGb4FA01RXQZh7dF8VXIA5wVI/a
-Hd0bOL6pCvUusOA51ZvKDPc291dHPFOubisyau7xqBgINr8QBMawuwXUq+LRwe7h
-sNGAfA24o94+/Ql6joTgX567zu0OdBop3FqDqvU6YiBZXrnUtMPTG94db/StMOZA
-gMilLBrkf4g/MlY+/Y/jO5sS4hA3eBw+NN6JOF/m2OZhWv53G41srCaVXU8vNop6
-uRt49XGrr/A4+Cbht675kBO3DZ10chRNWCYMW/m9UnLkuABUJ2vG2pfI4eXVtfoa
-SlZijFBqqQoGQg+GO1EkcyxDBd+uoQGd3ki4w1sFxQNlRL5umLJ0toENXGIXq8lg
-dtGWuA5TWRuGYdIT3SM6s8Kuy+KummchC5uBq//UNlpg69/lCEUbYUmHS+1wTrqw
-xadVz8jirA9tpBwb7edMfvWwhqXR2WGRNP1xTeS2drW6qS9FOaYetjNgM6nz3DZA
-FLPz+2GftbkqP+iVK9RHL5QTEc5WCnDA0BZ4rQYFasejBHcbhnE=
-=Rqq1
------END PGP SIGNATURE-----

diff --git a/LVM2.2.03.44.tgz.asc b/LVM2.2.03.44.tgz.asc
new file mode 100644
index 0000000..8672640
--- /dev/null
+++ b/LVM2.2.03.44.tgz.asc
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAABCgAdFiEE1QGkeEQK4v0TChvouREkMeUJA58FAmrg89QACgkQuREkMeUJ
+A59Gmw//V2npwg7ZYm+30ZcpwX2Vpr0DQqyCk/TUP6YGOieXlsM/jYlSN3nKZCEP
+FJIO1s7J6+9j1lPj5htHIW/Q6blQB7Jzzv9WqyU9sKmHsKhP9dF27Iu1EJxRrzVE
+eCMd80ayT2Dz+vK9+ghuNhR8mXfvK10vt00Ri9/dMYn5ZsRUDvTc0g7fr0uODIod
+H1vAV5x+Y52bDWM5ytA3dtGV/I5PC+o+ZMr+TMK1SztIAbwNkm5IpbTkhRdQqBdF
+FvoLGeHKfI+ORRUUYPYCYi93un68s/QbP3+aznYTD5zNBH8qPTtwbC+slAweHvy1
++/V+QWvPPXCKQdmIIEEfvThk4ucfFGNzTacdVwhyPlGDGDzxpkokOP+1J+QziVIv
+KsGlBBVgonYmFOudi8WOVw6wZ63HPqlZPBpn8f14mOG0fGysRr9g1UtyMDpoJKoD
+TGpKtds3LShtV9yIvOTUvAVxhySK5SJjmlUlHCByATU1hqHoE7f2ODaPTQOvP+cT
+C5FYeafBDHUKDuwz8kdbBbV8SHwXQQjLqExrTMV8NJmfMAFCnUykHk0C46KJPkGJ
+MVm9Imq5R9QvTonhtopPprOIrIF9Q9fCmHF21VjG6uw3R1/T913jbNww4+MjAeaD
+claio7JtNQeP5jYq9lqZgO0Vic5c0+ALzNxTbZ8V6TFjAoYe0dk=
+=KbF2
+-----END PGP SIGNATURE-----

diff --git a/lvm2.spec b/lvm2.spec
index 36b232e..20fdbee 100644
--- a/lvm2.spec
+++ b/lvm2.spec
@@ -1,4 +1,4 @@
-%global device_mapper_version 1.02.217
+%global device_mapper_version 1.02.218
 
 %global enable_cache 1
 %global enable_lvmdbusd 1
@@ -49,12 +49,11 @@ Name: lvm2
 %if 0%{?rhel}
 Epoch: %{rhel}
 %endif
-Version: 2.03.43
+Version: 2.03.44
 Release: %autorelease
 License: GPL-2.0-only
 URL: https://sourceware.org/lvm2
 Source0: https://sourceware.org/pub/lvm2/releases/LVM2.%{version}.tgz
-Patch1: 0001-pvscan-preserve-preferred-device-name-when-importing.patch
 
 BuildRequires: make
 BuildRequires: gcc
@@ -67,6 +66,7 @@ BuildRequires: xfsprogs-devel
 BuildRequires: ncurses-devel
 BuildRequires: libedit-devel
 BuildRequires: libaio-devel
+BuildRequires: libiouring-devel
 BuildRequires: libnvme-devel
 %if %{enable_lockd_dlm}
 BuildRequires: dlm-devel >= %{dlm_version}

diff --git a/sources b/sources
index 1fd6386..749d55e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (LVM2.2.03.43.tgz) = b8670e3f11a6420f208dcfa408f60bc5bd31c560c2ced229b5cdfe27d230aea0f2cac9ad9c25c68e03dc18ec4101224be256b1a615a95410cb254fabc4681808
+SHA512 (LVM2.2.03.44.tgz) = 6dea4cb0d21fff65a8c84ac6cf00a1080547a19c88bab8b2203888c7fb9428447373e33f78566a7abdaf93778ee1d2459c74b545537f9c4a818bc128e4297013

diff --git a/upstream b/upstream
index 5957afb..c2b7342 100644
--- a/upstream
+++ b/upstream
@@ -1 +1 @@
-LVM2.2.03.43.tgz
+LVM2.2.03.44.tgz

                 reply	other threads:[~2026-10-27 19:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179313039625.1.17540481032924186572.rpms-lvm2-0218c2b142f2@fedoraproject.org \
    --to=mcsontos@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox