Trond Myklebust 199e8a4385 NFSv4: Fix an Oops in nfs4_do_setattr
commit 09a54f0ebfe263bc27c90bbd80187b9a93283887 upstream.

If the user specifies an open mode of 3, then we don't have a NFSv4 state
attached to the context, and so we Oops when we try to dereference it.

Reported-by: Olga Kornievskaia <aglo@umich.edu>
Fixes: 29b59f9416937 ("NFSv4: change nfs4_do_setattr to take...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.10: 991eedb1371dc: NFSv4: Only pass the...
Cc: stable@vger.kernel.org # v4.10+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-16 10:13:57 +02:00
..
2018-07-08 15:30:51 +02:00
2019-08-06 19:05:23 +02:00
2019-07-31 07:28:47 +02:00
2018-12-17 09:28:54 +01:00
2019-08-16 10:13:57 +02:00
2018-12-21 14:13:04 +01:00
2017-09-04 19:05:15 -04:00