diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-07-29 21:24:11 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 15:00:56 +0900 |
| commit | 54d90311f9b4eb23f3b0b62650b0cfddb11a12ef (patch) | |
| tree | 6256dc306f5fb44929a5978c801aac901839062c /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | b0148dc5625dbfd50596ac63c7487c12e8a8ab03 (diff) | |
ksmbd: fix SMB2 byte-range lock end offset
SMB2 describes a byte-range lock using an offset and a length, while
Linux file_lock uses an inclusive end offset. smb2_lock() currently sets
fl_end to start + length and consequently locks one extra byte for every
nonzero-length request.
Translate nonzero lengths to start + length - 1 and reject ranges that
cannot be represented by loff_t instead of silently truncating them at
OFFSET_MAX. Track zero-length locks from the request length so one-byte
ranges are not mistaken for zero-length locks after endpoint conversion.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
