I worked with Shyam on this. It looks like when mount fails we might end up with garbage pointers for the tlink/tcon that is stored in the cifs_sb->tlink_tree so when we traverse the tree we oops when dereferencing the pointers we get. This patch avoids the resulting oops but we should also try to find out why there are bad pointers in the tree. I will try to review the code for inserting tlink/tcon into the tree and the lifetimes of tlink/tcon tomorrow. On Fri, Apr 1, 2022 at 5:17 PM Shyam Prasad N <nspmangalore@xxxxxxxxx> wrote: > > Hi Steve, > > This is a fix for a bug seen during mount failure during my testing. > Ronnie has reviewed it. But will be good if you can review it too. > > https://github.com/sprasad-microsoft/smb3-kernel-client/commit/fcd5a7da1f616a7134bc4fb4e329e8f085f63801.patch > > -- > Regards, > Shyam