]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0cb51cfb8b2873355efc92e74af0a1f142c5bada
treed218fe2842cef66c0d33648f1f12163a61f70a62
parent00e340720d23bc2611e6dc340e88bd374eabf51f
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: 2fc53a24eb39 ("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