diff options
| author | Kiryl Shutsemau (Meta) <kas@kernel.org> | 2026-11-10 14:52:36 +0000 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-11-11 12:08:02 +0100 |
| commit | 59349279e260fe09b40a4dab04a320d355b68eaa (patch) | |
| tree | 44abce98c1700d2fb0862c80401f758f738034da /include/linux/stackprotector.h | |
| parent | ebf5025b0d989f95542fc9da899b7de2fec499f2 (diff) | |
virtio_console: copy pipe buffers in splice_write()
pipe_to_sg() tries to steal the page of each pipe buffer and pass it to
the host as it is. When the steal fails, it copies the data into a page
of its own.
Pages written into the pipe with write(), gifted user pages and page
cache pages can be stolen. The ftrace ring buffer pages that
virtio-trace splices cannot, so that in-tree user always gets the copy.
Always copy. The data that reaches the host does not change.
Preparation for removing ->try_steal() from pipe buffers.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Kiryl Shutsemau (Meta) <kas@kernel.org>
Link: https://patch.msgid.link/20261110145241.536019-2-kas@kernel.org
Acked-by: Zi Yan <ziy@nvidia.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
