diff -Nru udisks2-2.10.1/debian/changelog udisks2-2.10.1/debian/changelog --- udisks2-2.10.1/debian/changelog 2023-09-12 06:47:10.000000000 -0600 +++ udisks2-2.10.1/debian/changelog 2023-10-02 11:26:55.000000000 -0600 @@ -1,3 +1,10 @@ +udisks2 (2.10.1-1ubuntu1) mantic; urgency=medium + + * Fix an event loop that can occur when ID_PART_TABLE_TYPE is not set for a + device and that device has partitions. (LP: #2037569) + + -- Dan Bungert Mon, 02 Oct 2023 11:26:55 -0600 + udisks2 (2.10.1-1) unstable; urgency=medium * New upstream version 2.10.1 diff -Nru udisks2-2.10.1/debian/control udisks2-2.10.1/debian/control --- udisks2-2.10.1/debian/control 2023-09-12 06:47:10.000000000 -0600 +++ udisks2-2.10.1/debian/control 2023-10-02 11:26:55.000000000 -0600 @@ -1,7 +1,8 @@ Source: udisks2 Section: admin Priority: optional -Maintainer: Utopia Maintenance Team +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Utopia Maintenance Team Uploaders: Michael Biebl , Martin Pitt , Build-Depends: debhelper-compat (= 13), diff -Nru udisks2-2.10.1/debian/patches/lp-2037569-skip-bd_part_get_disk_spec.patch udisks2-2.10.1/debian/patches/lp-2037569-skip-bd_part_get_disk_spec.patch --- udisks2-2.10.1/debian/patches/lp-2037569-skip-bd_part_get_disk_spec.patch 1969-12-31 17:00:00.000000000 -0700 +++ udisks2-2.10.1/debian/patches/lp-2037569-skip-bd_part_get_disk_spec.patch 2023-10-02 11:26:55.000000000 -0600 @@ -0,0 +1,25 @@ +Description: Disable call to bd_part_get_disk_spec to fix event storm +Bug-Ubuntu: https://bugs.launchpad.net/bugs/2037569 +Bug: https://github.com/storaged-project/udisks/issues/1196 +Last-Update: 2023-10-02 +--- a/src/udiskslinuxpartitiontable.c ++++ b/src/udiskslinuxpartitiontable.c +@@ -148,6 +148,10 @@ + if (device) + { + part_type = g_udev_device_get_property (device->udev_device, "ID_PART_TABLE_TYPE"); ++#if 0 ++ /* The call sequence below results in an event loop. ++ * bd_part_get_disk_spec currently does a read-write open of the device, ++ * which triggers udev events. LP: #2037569 */ + if (!part_type && num_parts > 0) + { + /* probe the device in case no cached udev property is available */ +@@ -168,6 +172,7 @@ + } + } + } ++#endif + } + udisks_partition_table_set_type_ (UDISKS_PARTITION_TABLE (table), part_type); + diff -Nru udisks2-2.10.1/debian/patches/series udisks2-2.10.1/debian/patches/series --- udisks2-2.10.1/debian/patches/series 1969-12-31 17:00:00.000000000 -0700 +++ udisks2-2.10.1/debian/patches/series 2023-10-02 11:26:55.000000000 -0600 @@ -0,0 +1 @@ +lp-2037569-skip-bd_part_get_disk_spec.patch