]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd: COPY and CLONE operations require the saved filehandle to be set
authorScott Mayhew <smayhew@redhat.com>
Thu, 8 Nov 2018 16:11:36 +0000 (11:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:22:09 +0000 (09:22 +0100)
commit651c5d16f3a90db286fb6d83a31eda29a2c07cda
tree0acd28044d8f787b4e645ea12b724e123e5dfbc0
parentf194756edd6ce7c60b39b0f66fc8b59c48d312a8
nfsd: COPY and CLONE operations require the saved filehandle to be set

commit 01310bb7c9c98752cc763b36532fab028e0f8f81 upstream.

Make sure we have a saved filehandle, otherwise we'll oops with a null
pointer dereference in nfs4_preprocess_stateid_op().

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4proc.c