Skip to content

Commit 5ce2a3e

Browse files
committed
fuse: fix possibly missing fuse_copy_finish() call in fuse_notify()
jira SECO-478 BUGFIX: FUSE commit-author Miklos Szeredi <mszeredi@redhat.com> commit 0b563aa In case of FUSE_NOTIFY_RESEND and FUSE_NOTIFY_INC_EPOCH fuse_copy_finish() isn't called. Fix by always calling fuse_copy_finish() after fuse_notify(). It's a no-op if called a second time. Fixes: 760eac7 ("fuse: Introduce a new notification type for resend pending requests") Fixes: 2396356 ("fuse: add more control over cache invalidation behaviour") Cc: <stable@vger.kernel.org> # v6.9 Reviewed-by: Joanne Koong <joannelkoong@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> (cherry picked from commit 0b563aa) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 89c55dc commit 5ce2a3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/fuse/dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,7 @@ static ssize_t fuse_dev_do_write(struct fuse_dev *fud,
20052005
*/
20062006
if (!oh.unique) {
20072007
err = fuse_notify(fc, oh.error, nbytes - sizeof(oh), cs);
2008-
goto out;
2008+
goto copy_finish;
20092009
}
20102010

20112011
err = -EINVAL;

0 commit comments

Comments
 (0)