Duplicate SMB file_ids leading to Windows client cache poisoning
jra at samba.org
Fri Dec 10 19:21:48 UTC 2021
On Thu, Dec 09, 2021 at 03:25:29PM -0500, Tom Talpey via samba-technical wrote:
>On 12/9/2021 1:58 PM, Ralph Boehme wrote:
>>On 12/9/21 19:48, Tom Talpey wrote:
>>>I really think you need a bulletproof mathematically correct
>>>uniqueid generator here.
>>Patches welcome. :)))
>>I guess all we can get is an approximation.
>But, the penalty for a collision is data corruption! It's unacceptable
>to wing it.
>Can't TDB help here? Stuff a number into the database and save it.
>Increment it by one for each new fileid needed.
The fileid only has to be consistent across an active
connection I think. Once a connection has been dropped
I would expect MacOS would not expect a valid cache
entry. Using a tdb for this would be very expensive
across a cluster.
More information about the samba-technical