summaryrefslogtreecommitdiffstats
path: root/fs/nfs/delegation.h
diff options
context:
space:
mode:
authorTrond Myklebust2019-06-27 12:41:45 +0200
committerTrond Myklebust2019-07-06 20:54:25 +0200
commit44942b4e457beda00981f616402a1a791e8c616e (patch)
treee03203a21af986b172f18de134c4eab0cf1039c5 /fs/nfs/delegation.h
parentNFSv4: Handle open for execute correctly (diff)
downloadkernel-qcow2-linux-44942b4e457beda00981f616402a1a791e8c616e.tar.gz
kernel-qcow2-linux-44942b4e457beda00981f616402a1a791e8c616e.tar.xz
kernel-qcow2-linux-44942b4e457beda00981f616402a1a791e8c616e.zip
NFSv4: Handle the special Linux file open access mode
According to the open() manpage, Linux reserves the access mode 3 to mean "check for read and write permission on the file and return a file descriptor that can't be used for reading or writing." Currently, the NFSv4 code will ask the server to open the file, and will use an incorrect share access mode of 0. Since it has an incorrect share access mode, the client later forgets to send a corresponding close, meaning it can leak stateids on the server. Fixes: ce4ef7c0a8a05 ("NFS: Split out NFS v4 file operations") Cc: stable@vger.kernel.org # 3.6+ Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/delegation.h')
0 files changed, 0 insertions, 0 deletions