diff options
| author | Gael Blivet <gael.blivet@gmail.com> | 2026-07-09 18:50:46 +0200 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 15:00:43 +0900 |
| commit | 689f1eb3719d61700b58f984ac8602837f004f8c (patch) | |
| tree | 87455b1b95cd7d25be58207f7babdb643cc92ded /tools/perf/scripts/python | |
| parent | 9907ed8457af0e867b0a0d6e3e92019ee6cedd83 (diff) | |
ksmbd: report actual xattr value length in stream enumeration
get_file_stream_info() (FileStreamInformation QUERY_INFO) reported
each enumerated stream's StreamSize/StreamAllocationSize as
stream_name_len -- the byte length of the stream's *name*, not its
data. This is the same bug class already fixed for EndOfFile/
AllocationSize on an open stream handle (ksmbd_stream_eof()), just
missed at this second site: a client enumerating streams sees a size
derived from the name string length instead of the stream's actual
content length, inconsistent with what querying the same stream by
handle reports.
Compute the real value length the same way ksmbd_stream_eof() does,
via ksmbd_vfs_casexattr_len() on the already-known xattr key.
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Gael Blivet <gael.blivet@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
