bin/smbclient -U 'slow%x' //localhost/share -c "ls 1/2/3/*" . D 0 Wed May 24 13:03:33 2023 .. D 0 Tue May 23 10:41:25 2023 link1 VRdtr 5 Tue May 23 10:49:26 2023 This happens because in vfswrap_readdir() we don't zero initialize the SMB_STRUCT_STAT variable. The detailed steps leading up to using the uninitialized variable is a bit more "von Hinten durch die Brust ins Auge", gimme a call if you want to learn the details. :) Have patch, need bugnumber...
This bug was referenced in samba master: b4af281b2d7bfddbdb7289dadbed9db623bf0e84 0391120079b032077c3914c10189b85e61dc8498 412373984db6d0c20ba38076d06d0a87631890d0
Created attachment 17896 [details] Patch for 4.18 cherry-picked from master
Created attachment 17897 [details] Patch for 4.18 cherry-picked from master
Re-assigning to Jule for inclusion in 4.18.next.
Pushed to autobuild-v4-18-test.
This bug was referenced in samba v4-18-test: 5865388ede8b5d3d3b389be49261574dde7008d7 09ea170e3b4a5c962e29b86d1eadf06a430bc9a6 af9dc206043809a706063019112a191e81456ed7
Closing out bug report. Thanks!
This bug was referenced in samba v4-18-stable (Release samba-4.18.3): 5865388ede8b5d3d3b389be49261574dde7008d7 09ea170e3b4a5c962e29b86d1eadf06a430bc9a6 af9dc206043809a706063019112a191e81456ed7