From c3b9083854f9c86730a3287d0bf5b03877085d26 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 7 Nov 2022 16:34:14 +0100 Subject: [PATCH] 4.9-stable patches added patches: fuse-add-file_modified-to-fallocate.patch --- .../fuse-add-file_modified-to-fallocate.patch | 33 +++++++++++++++++++ queue-4.9/series | 1 + 2 files changed, 34 insertions(+) create mode 100644 queue-4.9/fuse-add-file_modified-to-fallocate.patch 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 index 00000000000..c5fce1e7d27 --- /dev/null +++ b/queue-4.9/fuse-add-file_modified-to-fallocate.patch @@ -0,0 +1,33 @@ +From 4a6f278d4827b59ba26ceae0ff4529ee826aa258 Mon Sep 17 00:00:00 2001 +From: Miklos Szeredi +Date: Fri, 28 Oct 2022 14:25:20 +0200 +Subject: fuse: add file_modified() to fallocate + +From: Miklos Szeredi + +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: +Signed-off-by: Miklos Szeredi +Signed-off-by: Greg Kroah-Hartman +--- + 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); + diff --git a/queue-4.9/series b/queue-4.9/series index a2ef289a52e..bc2c6212c50 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -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 -- 2.47.3