]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2022 15:34:14 +0000 (16:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2022 15:34:14 +0000 (16:34 +0100)
added patches:
fuse-add-file_modified-to-fallocate.patch

queue-4.9/fuse-add-file_modified-to-fallocate.patch [new file with mode: 0644]
queue-4.9/series

diff --git a/queue-4.9/fuse-add-file_modified-to-fallocate.patch b/queue-4.9/fuse-add-file_modified-to-fallocate.patch
new file mode 100644 (file)
index 0000000..c5fce1e
--- /dev/null
@@ -0,0 +1,33 @@
+From 4a6f278d4827b59ba26ceae0ff4529ee826aa258 Mon Sep 17 00:00:00 2001
+From: Miklos Szeredi <mszeredi@redhat.com>
+Date: Fri, 28 Oct 2022 14:25:20 +0200
+Subject: fuse: add file_modified() to fallocate
+
+From: Miklos Szeredi <mszeredi@redhat.com>
+
+commit 4a6f278d4827b59ba26ceae0ff4529ee826aa258 upstream.
+
+Add missing file_modified() call to fuse_file_fallocate().  Without this
+fallocate on fuse failed to clear privileges.
+
+Fixes: 05ba1f082300 ("fuse: add FALLOCATE operation")
+Cc: <stable@vger.kernel.org>
+Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ fs/fuse/file.c |    4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/fs/fuse/file.c
++++ b/fs/fuse/file.c
+@@ -2995,6 +2995,10 @@ static long fuse_file_fallocate(struct f
+                       goto out;
+       }
++      err = file_modified(file);
++      if (err)
++              goto out;
++
+       if (!(mode & FALLOC_FL_KEEP_SIZE))
+               set_bit(FUSE_I_SIZE_UNSTABLE, &fi->state);
index a2ef289a52e437d656f7d5f06d421eed14473458..bc2c6212c50f98d7c94ae5b40e6b3af70b4abb72 100644 (file)
@@ -19,3 +19,4 @@ media-dvb-frontends-drxk-initialize-err-to-0.patch
 i2c-xiic-add-platform-module-alias.patch
 bluetooth-l2cap-fix-attempting-to-access-uninitialized-memory.patch
 btrfs-fix-type-of-parameter-generation-in-btrfs_get_dentry.patch
+fuse-add-file_modified-to-fallocate.patch