NFSv4.1: Fix Oopsable condition in server callback races
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 28 Aug 2016 03:44:04 +0000 (23:44 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 28 Aug 2016 18:23:22 +0000 (14:23 -0400)
commite09c978aae5bedfdb379be80363b024b7d82638b
treed218fe2842cef66c0d33648f1f12163a61f70a62
parent16590a228109e2f318d2cc6466221134cfab723a
NFSv4.1: Fix Oopsable condition in server callback races

The slot table hasn't been an array since v3.7. Ensure that we
use nfs4_lookup_slot() to access the slot correctly.

Fixes: 87dda67e7386 ("NFSv4.1: Allow SEQUENCE to resize the slot table...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org # v3.8+
fs/nfs/callback_proc.c
fs/nfs/nfs4session.c
fs/nfs/nfs4session.h