[cifs-protocol] [REG:120030321000983] SMB2: opening file for READ_CONTROL doesn't trigger lease break
Jeff McCashland
jeffm at microsoft.com
Tue Mar 3 14:32:52 UTC 2020
[DocHelp to BCC, support on CC, SR ID on Subject]
Hi slow,
Thank you for sending in your question and trace. We have created SR 120030321000983 to track this issue. I will review your trace and follow up.
Best regards,
Jeff McCashland | Senior Escalation Engineer | Microsoft Protocol Open Specifications Team
Phone: +1 (425) 703-8300 x38300 | Hours: 9am-5pm | Time zone: (UTC-08:00) Pacific Time (US and Canada)
Local country phone number found here: http://support.microsoft.com/globalenglish | Extension 1138300
We value your feedback. My manager is Jeremy Chapman (jeremyc), +1 (469) 775-2475
-----Original Message-----
From: Ralph Boehme <slow at samba.org>
Sent: Tuesday, March 3, 2020 2:57 AM
To: Interoperability Documentation Help <dochelp at microsoft.com>
Cc: cifs-protocol at lists.samba.org
Subject: [EXTERNAL] SMB2: opening file for READ_CONTROL doesn't trigger lease break
Hello dochelp,
according to MS-FSA 2.1.4.12 opening a file with at most FILE_READ_ATTRIBUTES, FILE_WRITE_ATTRIBUTES, or SYNCHRONIZE avoids triggering an oplock break:
If OpParams.DesiredAccess contains no flags other than
FILE_READ_ATTRIBUTES, FILE_WRITE_ATTRIBUTES, or SYNCHRONIZE
the algorithm returns at this point.
However, testing all valid file access bits individually against a Windows 2016 server reveals that an access mask of READ_CONTROL also doesn't trigger an oplock break.
Attached is a network trace of a testcase that tests all possible file access masks.
The testcase with READ_CONTROL begins in packet 137 (request open with RWH lease), the open with READ_CONTROL is in packet 139.
Can you clarify?
Thanks!
-slow
--
Ralph Boehme, Samba Team https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsamba.org%2F&data=02%7C01%7Cjeffm%40microsoft.com%7C444a1cf14eac4ae4623808d7bf61ae67%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637188298574960280&sdata=RAVHE7qjEk6Gi20xu8CxSloRq2EMgk5pdUgskLAkgLI%3D&reserved=0
Samba Developer, SerNet GmbH https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsernet.de%2Fen%2Fsamba%2F&data=02%7C01%7Cjeffm%40microsoft.com%7C444a1cf14eac4ae4623808d7bf61ae67%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637188298574960280&sdata=NpTVHNVnfAdmV8f4XbQYQEB49fi5NINONoDiNdzSC2U%3D&reserved=0
GPG-Fingerprint FAE2C6088A24252051C559E4AA1E9B7126399E46
-------------- next part --------------
A non-text attachment was scrubbed...
Name: windows2016-READ_CONTROL-no-lease-break.pcapng
Type: application/octet-stream
Size: 47024 bytes
Desc: windows2016-READ_CONTROL-no-lease-break.pcapng
URL: <http://lists.samba.org/pipermail/cifs-protocol/attachments/20200303/ad00f456/windows2016-READ_CONTROL-no-lease-break-0001.obj>
More information about the cifs-protocol
mailing list