]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix an Oops in nfs4_do_setattr
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 3 Aug 2019 14:28:18 +0000 (10:28 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Aug 2019 02:35:41 +0000 (22:35 -0400)
commitcc68201b0e5c57d1c330ad50fd3551d6efaf5f7f
treede7acc0ecef8265c0320a6f6ef0b04cf5e317103
parentd65515bde678223a3d67b30ce5b01a8585c0b54f
NFSv4: Fix an Oops in nfs4_do_setattr

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: 5ca66503523f6 ("NFSv4: change nfs4_do_setattr to take...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.10: f5da94fcee152: NFSv4: Only pass the...
Cc: stable@vger.kernel.org # v4.10+
fs/nfs/nfs4proc.c