As part of the rename code path Samba changes the file name in the locking.tdb entry for the file. It also asynchronously informs all smbds about the changed name with async messages. This can lead to races when an smbd uses the in-memory fsp->fsp_name for file system operations when another process has renamed a file but the async message has not yet reached all smbds.