[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#958490: buster-pu: package fuse3/3.4.1-1+deb10u1



Package: release.debian.org
Severity: normal
Tags: buster
User: release.debian.org@packages.debian.org
Usertags: pu

Hi SRMs,

There are two RC bugs fixed in fuse3 for Bullseye but not yet for Buster.
First one[1] is caused by a leftover in postinst - udev has rules now
to handle such things in its 50-udev-default.rules and
99-systemd.rules files.
Then it shouldn't explicitly remove fuse.conf [2] as it should be done
by dpkg and fuse might still need it.
Last but not least there's a small memory leak fix[3] due to
free()-ing the stuct pointer of *mo but not its content with
destroy_mount_opts().
Proposed update is attached.

Thanks for consideration,
Laszlo/GCS
[1] https://bugs.debian.org/934293
[2] https://bugs.debian.org/953223
[3] https://github.com/libfuse/libfuse/commit/50fe9f7c818628dc5dd69218c851a48fa1f07987
diff -Nru fuse3-3.4.1/debian/changelog fuse3-3.4.1/debian/changelog
--- fuse3-3.4.1/debian/changelog	2018-12-25 16:57:44.000000000 +0000
+++ fuse3-3.4.1/debian/changelog	2020-04-22 19:38:49.000000000 +0000
@@ -1,3 +1,11 @@
+fuse3 (3.4.1-1+deb10u1) buster; urgency=medium
+
+  * Drop outdated udevadm commands from postinst (closes: #934293).
+  * Don't explicitly remove fuse.conf on purge (closes: #953223).
+  * Backport fix of memory leak in fuse_session_new() .
+
+ -- Laszlo Boszormenyi (GCS) <gcs@debian.org>  Wed, 22 Apr 2020 19:38:49 +0000
+
 fuse3 (3.4.1-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru fuse3-3.4.1/debian/fuse3.postinst fuse3-3.4.1/debian/fuse3.postinst
--- fuse3-3.4.1/debian/fuse3.postinst	2018-07-21 14:11:44.000000000 +0000
+++ fuse3-3.4.1/debian/fuse3.postinst	2020-04-22 19:38:49.000000000 +0000
@@ -25,17 +25,6 @@
 
 		modprobe fuse > /dev/null 2>&1 || true
 
-		if [ -x /sbin/lsmod ] && lsmod | grep -qs fuse
-		then
-			if udevadm control --reload-rules > /dev/null 2>&1
-			then
-				if [ -e /dev/fuse ]
-				then
-					udevadm test --action -p  $(udevadm info -q path -n /dev/fuse) > /dev/null 2>&1
-				fi
-			fi
-		fi
-
 		if [ -x /usr/sbin/update-initramfs ]
 		then
 			update-initramfs -u
diff -Nru fuse3-3.4.1/debian/fuse3.postrm fuse3-3.4.1/debian/fuse3.postrm
--- fuse3-3.4.1/debian/fuse3.postrm	2014-06-20 06:23:50.000000000 +0000
+++ fuse3-3.4.1/debian/fuse3.postrm	2020-04-22 19:38:49.000000000 +0000
@@ -11,7 +11,6 @@
 		;;
 
 	purge)
-		rm -f /etc/fuse.conf
 		;;
 
 	upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
diff -Nru fuse3-3.4.1/debian/patches/0009-Fixed-memory-leak-in-fuse_session_new.patch fuse3-3.4.1/debian/patches/0009-Fixed-memory-leak-in-fuse_session_new.patch
--- fuse3-3.4.1/debian/patches/0009-Fixed-memory-leak-in-fuse_session_new.patch	1970-01-01 00:00:00.000000000 +0000
+++ fuse3-3.4.1/debian/patches/0009-Fixed-memory-leak-in-fuse_session_new.patch	2020-04-22 19:38:49.000000000 +0000
@@ -0,0 +1,23 @@
+From 50fe9f7c818628dc5dd69218c851a48fa1f07987 Mon Sep 17 00:00:00 2001
+From: Bill Zissimopoulos <billziss@navimatics.com>
+Date: Thu, 2 Jan 2020 03:08:03 -0800
+Subject: [PATCH] Fixed memory leak in fuse_session_new()
+
+---
+ lib/fuse_lowlevel.c | 3 ++-
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
+index 36713854..d8112f58 100644
+--- a/lib/fuse_lowlevel.c
++++ b/lib/fuse_lowlevel.c
+@@ -2893,7 +2893,8 @@ struct fuse_session *fuse_session_new(struct fuse_args *args,
+ out4:
+ 	fuse_opt_free_args(args);
+ out3:
+-	free(mo);
++	if (mo != NULL)
++		destroy_mount_opts(mo);
+ out2:
+ 	free(se);
+ out1:
diff -Nru fuse3-3.4.1/debian/patches/series fuse3-3.4.1/debian/patches/series
--- fuse3-3.4.1/debian/patches/series	2018-07-21 14:11:44.000000000 +0000
+++ fuse3-3.4.1/debian/patches/series	2020-04-22 19:38:49.000000000 +0000
@@ -6,3 +6,4 @@
 #0006-arm64.patch
 #0007-manpage.patch
 #0008-init-include-lsb.patch
+0009-Fixed-memory-leak-in-fuse_session_new.patch

Reply to: