projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f0f1ea
)
splice: fsnotify_access(in), fsnotify_modify(out) on success in tee
author
Ahelenia Ziemiańska
<nabijaczleweli@nabijaczleweli.xyz>
Mon, 3 Jul 2023 14:42:21 +0000
(16:42 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Mon, 10 Jul 2023 12:36:11 +0000
(14:36 +0200)
Same logic applies here: this can fill up the pipe, and pollers that rely
on getting IN_MODIFY notifications never wake up.
Fixes: 983652c69199 ("splice: report related fsnotify events")
Link:
https://lore.kernel.org/linux-fsdevel/jbyihkyk5dtaohdwjyivambb2gffyjs3dodpofafnkkunxq7bu@jngkdxx65pux/t/#u
Link:
https://bugs.debian.org/1039488
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Acked-by: Jan Kara <jack@suse.cz>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Message-Id: <
10d76dd8c85017ae3cd047c9b9a32e26daefdaa2
.
1688393619
.git.nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/splice.c
patch
|
blob
|
history
diff --git
a/fs/splice.c
b/fs/splice.c
index 2cb89f5f9a8a03513a91719faad4dbfa3e6a1a9e..378fedb392ae3c20568595acd0f93197dd739972 100644
(file)
--- a/
fs/splice.c
+++ b/
fs/splice.c
@@
-1929,6
+1929,11
@@
long do_tee(struct file *in, struct file *out, size_t len, unsigned int flags)
}
}
+ if (ret > 0) {
+ fsnotify_access(in);
+ fsnotify_modify(out);
+ }
+
return ret;
}