Bug 15624 - DH reconnect error handling can lead to stale sharemode entries
Summary: DH reconnect error handling can lead to stale sharemode entries
Status: ASSIGNED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.19.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Ralph Böhme
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-09 15:12 UTC by Ralph Böhme
Modified: 2024-04-09 15:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Böhme 2024-04-09 15:12:14 UTC
Currently in some error code paths in the DH reconnect code we leave stale sharemode entries around that can lead to all sorts of havoc.
Comment 1 Ralph Böhme 2024-04-09 15:14:59 UTC
Note, one way I've seen this happen is with a custom private VFS module stack that causes incorrect stat info in the cookie compared to the result from SMB_VFS_FSTAT() in the reconnect function.

Have patch, need bugnumber.