upgrade to 3.16.2

This commit is contained in:
SteveY4ng 2024-01-23 21:40:22 +08:00 committed by SuperSix173
parent 4b7bd3fed5
commit 68f773bc79
6 changed files with 16 additions and 91 deletions

View File

@ -1,4 +1,4 @@
From ca0eb08b7f58a6ecffc1cb13b17a7fdc2f1cd7f2 Mon Sep 17 00:00:00 2001
From 12d33952b12f3d632ef6a548f14e6452ed751de4 Mon Sep 17 00:00:00 2001
From: Shijie Luo <luoshijie1@huawei.com>
Date: Sat, 11 Jan 2020 17:14:38 +0800
Subject: [PATCH] fix chown and mknod failed
@ -10,10 +10,10 @@ Signed-off-by: Shijie Luo <luoshijie1@huawei.com>
1 file changed, 6 deletions(-)
diff --git a/util/install_helper.sh b/util/install_helper.sh
index cb649a7..a948fcc 100755
index 76f2b47..17ef4f0 100644
--- a/util/install_helper.sh
+++ b/util/install_helper.sh
@@ -27,13 +27,7 @@ install -D -m 644 "${MESON_SOURCE_ROOT}/util/fuse.conf" \
@@ -28,13 +28,7 @@ install -D -m 644 "${MESON_SOURCE_ROOT}/util/fuse.conf" \
"${DESTDIR}${sysconfdir}/fuse.conf"
if $useroot; then
@ -26,7 +26,7 @@ index cb649a7..a948fcc 100755
- fi
fi
install -D -m 644 "${MESON_SOURCE_ROOT}/util/udev.rules" \
if [ "${udevrulesdir}" != "" ]; then
--
1.8.3.1
2.38.1.windows.1

View File

@ -1,51 +0,0 @@
From f2144c6c3a0d4eda5f8384b56cdeb5193a3c06ef Mon Sep 17 00:00:00 2001
From: Matthias Goergens <matthias.goergens@gmail.com>
Date: Tue, 28 Mar 2023 13:35:56 +0800
Subject: [PATCH] Fix use-after-free warning
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
When building, I get the following warning:
```bash
$ ninja
[18/71] Compiling C object lib/libfuse3.so.3.14.1.p/modules_iconv.c.o
../lib/modules/iconv.c: In function iconv_convpath:
../lib/modules/iconv.c:85:38: warning: pointer newpath may be used after realloc [-Wuse-after-free]
85 | p = tmp + (p - newpath);
| ~~~^~~~~~~~~~
../lib/modules/iconv.c:80:31: note: call to realloc here
80 | tmp = realloc(newpath, newpathlen + 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[71/71] Linking target example/passthrough_hp
```
It's a false positive, I thinks. But it's also easy to silence this
warning with a small refactor.
---
lib/modules/iconv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/modules/iconv.c b/lib/modules/iconv.c
index 3d18a36..a0bf72b 100644
--- a/lib/modules/iconv.c
+++ b/lib/modules/iconv.c
@@ -77,12 +77,13 @@ static int iconv_convpath(struct iconv *ic, const char *path, char **newpathp,
inc = (pathlen + 1) * 4;
newpathlen += inc;
+ int dp = p - newpath;
tmp = realloc(newpath, newpathlen + 1);
err = -ENOMEM;
if (!tmp)
goto err;
- p = tmp + (p - newpath);
+ p = tmp + dp;
plen += inc;
newpath = tmp;
}
--
2.41.0

View File

@ -1,30 +0,0 @@
From 34d9d2abf1da37961d4f0a2ad55dcf11ed46a33e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20G=C3=B6rgens?= <matthias.goergens@gmail.com>
Date: Wed, 12 Apr 2023 15:40:18 +0800
Subject: [PATCH] Disable leak suppression (#773)
Conflict: they -> the
---
test/lsan_suppress.txt | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/test/lsan_suppress.txt b/test/lsan_suppress.txt
index e054e7c..44703fc 100644
--- a/test/lsan_suppress.txt
+++ b/test/lsan_suppress.txt
@@ -1,11 +1 @@
# Suppression file for address sanitizer.
-
-# There are some leaks in command line option parsing. They should be
-# fixed at some point, but are harmless since the consume just a small,
-# constant amount of memory and do not grow.
-leak:fuse_opt_parse
-
-
-# Leaks in fusermount3 are harmless as well (it's a short-lived
-# process) - but patches are welcome!
-leak:fusermount.c
--
2.41.0

Binary file not shown.

BIN
fuse-3.16.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,18 +1,16 @@
%global fuse3ver 3.13.0
%global fuse3ver 3.16.2
Name: fuse3
Version: %{fuse3ver}
Release: 2
Release: 1
Summary: User space File System of fuse3
License: GPL+ and LGPLv2+
URL: http://fuse.sf.net
Source0: https://github.com/libfuse/libfuse/releases/download/fuse-%{fuse3ver}/fuse-%{fuse3ver}.tar.xz
Source0: https://github.com/libfuse/libfuse/releases/download/fuse-%{fuse3ver}/fuse-%{fuse3ver}.tar.gz
Source1: fuse.conf
Patch1: 0001-fix-chown-and-mknod-failed.patch
Patch2: 0002-revert-fuse_daemonize-chdir-to-even-if-not-run.patch
Patch3: 0003-Fix-use-after-free-warning.patch
Patch4: 0004-Disable-leak-suppression-773.patch
BuildRequires: libselinux-devel, pkgconfig, systemd-udev, meson, fdupes
BuildRequires: autoconf, automake, libtool, gettext-devel, ninja-build
@ -103,6 +101,14 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}
%{_mandir}/man8/*
%changelog
* Tue Jan 30 2024 yangyun <yangyun50@huawei.com> -3.16.2-1
- upgrade to 3.16.2
- fix some issues (see: https://github.com/libfuse/libfuse/releases)
- improved support for some less common systems (32bit, alternative libcs)
- unsupported mount options are no longer silently accepted
- auto_unmount is now compatible with allow_other
- readdir kernel cache can be enabled from high-level API
* Tue Jul 11 2023 zhanchengbin <zhanchengbin1@huawei.com> -3.13.0-2
- backport upstream patches