summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2026-08-15 22:18:59 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2026-08-17 22:38:23 +0900
commit5213c368631291eef99f09ae5607b130b2a3d6ac (patch)
tree862421710d030c7c33c65021660b01a6b56ea895 /scripts
parent68f3508e4c36be026f7526e753a9e1bc3ff6bfbb (diff)
downloadlinux-5213c368631291eef99f09ae5607b130b2a3d6ac.tar.gz
linux-5213c368631291eef99f09ae5607b130b2a3d6ac.zip
ksmbd: implement SMB2 AppInstanceVersion takeover
BVT_AppInstanceVersion_SMB311_GreaterVersion, BVT_AppInstanceVersion_SMB311_SameVersion, BVT_AppInstanceVersion_SMB311_LowerAppInstanceVersionHigh, and BVT_AppInstanceVersion_SMB311_LowerAppInstanceVersionLow exercise ordered opens using the same AppInstanceId. ksmbd tracked the AppInstanceId, but did not parse the version context or enforce the version ordering, so versioned opens returned incorrect sharing violations. Parse and retain the 24-byte AppInstanceVersion context with each open. Reject a version that is lower than or equal to the active version with STATUS_FILE_FORCED_CLOSED, reject an unversioned open against a versioned handle, and close the previous handle for a newer takeover. Do not apply the takeover check to durable reconnect or replay requests. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions