Implementations are available via libcephfs for *at() variants of many syscalls used in VFS module for CephFS. Let's make use of those to better safe guard against symlink races.
This bug was referenced in samba master: 7e0a18acde8ea4801ad4f56a0b2d8daa2120f6e5
Created attachment 18247 [details] patch from master
Comment on attachment 18247 [details] patch from master Cherry-picked for 4.19 branch...
All required changes are already present with v4.20 and higher. There are no backport plans for earlier versions, especially 4.19.