]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.2 fix problems with __nfs42_ssc_open
authorOlga Kornievskaia <kolga@netapp.com>
Thu, 18 Aug 2022 19:07:05 +0000 (15:07 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 20 Aug 2022 00:31:57 +0000 (20:31 -0400)
commit3b7304465d42005243e73ba9ef2ffdfcc4c058de
tree4d6727dc998df8275be0cfe340bafa8c6b40731c
parent8dbd0e2ea4be56f67538366174068b4c9ad6f93c
NFSv4.2 fix problems with __nfs42_ssc_open

A destination server while doing a COPY shouldn't accept using the
passed in filehandle if its not a regular filehandle.

If alloc_file_pseudo() has failed, we need to decrement a reference
on the newly created inode, otherwise it leaks.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Fixes: 57c71f0483e7d ("NFS: inter ssc open")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4file.c