nfsd4: disallow SEEK with special stateids
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 21 Apr 2015 19:25:39 +0000 (15:25 -0400)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:26 +0000 (19:12 -0400)
commit61c8c52ced763e16f2c1482ee5a7f4e162c5c4ca
tree0e8c0f6e05994379e7a19123d38d11ee8e42cc0e
parent5a9fb83ea5da6f96708e88e39d352730a02fc8b0
nfsd4: disallow SEEK with special stateids

[ Upstream commit 980608fb50aea34993ba956b71cd4602aa42b14b ]

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

Fixes: 24bab491220f " 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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/nfsd/nfs4proc.c