summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Bridges <icb@fastmail.org>2026-11-05 21:53:44 -0600
committerNamjae Jeon <linkinjeon@kernel.org>2026-11-08 12:48:56 +0900
commit81fefb6c635489e71e286d1465b6dd1d0a27ceec (patch)
tree0d7c46af8c304a740b1ea3e602380891fdb5e6cf /tools/perf/scripts/python
parent2fd145f8865bb1a6c38a3dc68fa44290008789d8 (diff)
ksmbd: skip metadata-only opens in sharing checks
A READ_CONTROL open without sharing can block later reads, writes and deletes even though it holds no data, execute or delete access. Keep the existing attribute-only exception. For other pairs, require both effective access masks to hold one of those rights. MS-FSA 2.1.5.1.2 grants FILE_WRITE_DATA when an open overwrites a file or stream, or creates a named stream on an existing file. Use that granted access for sharing checks while keeping the requested access on the returned handle. The Time Machine AFP_AfpInfo synthesis keeps its requested access. ksmbd implements FILE_SUPERSEDE by truncating the file, so count it as a write. This also prevents an overwrite from truncating a file while another open that holds data, execute or delete access does not share writing. Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3") Cc: stable@vger.kernel.org Signed-off-by: Ian Bridges <icb@fastmail.org> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions