OSDN Git Service

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>
Wed, 21 Nov 2018 08:27:36 +0000 (09:27 +0100)
commite6914e1af4819455ad654ce83d1b51509b1915d6
treeb671c775afa640ed13d6ac98545d11edb558c9e9
parenta88fd5847b939a87f4814b41814c74ec1d2a5309
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