diff options
| author | Kiryl Shutsemau (Meta) <kas@kernel.org> | 2026-11-10 14:52:37 +0000 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-11-11 12:08:03 +0100 |
| commit | 80beb226de50b859913a55be0d6bff9046662294 (patch) | |
| tree | b3edd5ff4ead2f514ad8dabcc86a0dcb82bac6f5 /include/linux/stackprotector.h | |
| parent | 59349279e260fe09b40a4dab04a320d355b68eaa (diff) | |
fuse: don't move pipe buffers into the page cache
A splice() into /dev/fuse with SPLICE_F_MOVE lets the reply to a read
request steal full pages from the pipe. Each stolen page replaces, in
the fuse file's page cache, the folio that the request allocated. The
page can be a page cache folio of another file, a page written into the
pipe, or a gifted user page.
Always copy. The server sees the same data, and the move was a hint
that splice() never promised to honour.
Keep advertising FUSE_SPLICE_MOVE. libfuse fails the mount of a
filesystem that asks for a capability the kernel does not offer.
Preparation for removing ->try_steal() from pipe buffers.
Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Kiryl Shutsemau (Meta) <kas@kernel.org>
Link: https://patch.msgid.link/20261110145241.536019-3-kas@kernel.org
Acked-by: Zi Yan <ziy@nvidia.com>
Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
