]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: disallow SEEK with special stateids
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 21 Apr 2015 19:25:39 +0000 (15:25 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 21 Apr 2015 20:16:01 +0000 (16:16 -0400)
commit20301f28196d741f8905da54098e6bcc73fa54df
treea6105aecef17dd3bc25bb1754acb87bbf0639255
parent9eec00ce73fc89dfee6821c629c18ab0a32e227b
nfsd4: disallow SEEK with special stateids

If the client uses a special stateid then we'll pass a NULL file to
vfs_llseek.

Fixes: 0a6dafaf0d66 " NFSD: Implement SEEK"
Cc: Anna Schumaker <Anna.Schumaker@Netapp.com>
Cc: stable@vger.kernel.org
Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c