NFS: Fix a race in nfs_call_unlink()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 16 Nov 2022 16:11:53 +0000 (11:11 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 28 Nov 2022 03:10:00 +0000 (22:10 -0500)
commit5776a9cd2a66cdc037c8e6ee34cde40ee768893d
treecd3442cc8f4f60dfdd3484bde9721b00f27b07e1
parent35e3b6ae84935d0d7ff76cbdaa83411b0ad5e471
NFS: Fix a race in nfs_call_unlink()

We should check that the filehandles match before transferring the
sillyrename data to the newly looked-up dentry in case the name was
reused on the server.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/unlink.c