diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-07-07 00:46:32 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 15:00:32 +0900 |
| commit | fd309860ef24558963b3d6461041373a7af2e41d (patch) | |
| tree | fb71ca3340ebbb44d97f5d2fd963046f5aa4a451 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | c1c200924fd825b632ff8811c09c3d7a5dff3895 (diff) | |
ksmbd: preserve data during overlapping copy chunk
Copying an overlapping range within the same file through
do_splice_direct() can overwrite source data that has not yet been
read. This corrupts the destination when the target range starts
inside and after the source range.
Handle overlapping ranges with a bounded temporary buffer. Copy from
the end when the destination follows the source and from the beginning
otherwise, providing memmove semantics without allocating the entire
copy length.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
