nfsd: Fix an Oops in free_session()
authorTrond Myklebust <trondmy@gmail.com>
Tue, 9 Oct 2018 19:54:15 +0000 (15:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:49 +0000 (11:08 -0800)
commit18c1d28f359cd6c7b26ef9856a61427d63bedfcc
tree85436de648954207b3e91375a75f0b72bdea6c9d
parentb71f9663a7babdefdc54c7fdb83e89d2b2b9ec42
nfsd: Fix an Oops in free_session()

commit bb6ad5572c0022e17e846b382d7413cdcf8055be upstream.

In call_xpt_users(), we delete the entry from the list, but we
do not reinitialise it. This triggers the list poisoning when
we later call unregister_xpt_user() in nfsd4_del_conns().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/svc_xprt.c