summaryrefslogtreecommitdiff
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2015-11-20 17:56:20 +0300
committerSasha Levin <sasha.levin@oracle.com>2016-01-21 19:23:29 +0300
commitd48e82da8b064ed3ce8bfa2d8b17d8566e811f4f (patch)
tree8692a216d7b6fa239569b10d2e677ad080b451a7 /fs/nfs/inode.c
parente46b3f459f2efa11329013b3df96723ec4d2f314 (diff)
downloadlinux-d48e82da8b064ed3ce8bfa2d8b17d8566e811f4f.tar.xz
nfs4: start callback_ident at idr 1
[ Upstream commit c68a027c05709330fe5b2f50c50d5fa02124b5d8 ] If clp->cl_cb_ident is zero, then nfs_cb_idr_remove_locked() skips removing it when the nfs_client is freed. A decoding or server bug can then find and try to put that first nfs_client which would lead to a crash. Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Fixes: d6870312659d ("nfs4client: convert to idr_alloc()") Cc: stable@vger.kernel.org Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'fs/nfs/inode.c')
0 files changed, 0 insertions, 0 deletions