]> 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)
commit0e06b7818f7a0f1635a30207ec1352d89398ffa3
treed218fe2842cef66c0d33648f1f12163a61f70a62
parent88d52e66ad40dafa6705f3f693c7cd2b8285b120
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: 97ba3199ff39 ("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