]> git.hungrycats.org Git - linux/commit
LOCKD: fix races in nsm_client_get
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Oct 2012 17:51:58 +0000 (13:51 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:09:57 +0000 (10:09 -0700)
commitcafefcb3f8be77ef156b4b3bd52a5374b3533679
tree26cf594d47450406eafb50113ca4d9cfb2d52179
parent2edc5969320d6e7f13d6d74e9bd3d8c0b8ec3684
LOCKD: fix races in nsm_client_get

commit a4ee8d978e47e79d536226dccb48991f70091168 upstream.

Commit e9406db20fecbfcab646bad157b4cfdc7cadddfb (lockd: per-net
NSM client creation and destruction helpers introduced) contains
a nasty race on initialisation of the per-net NSM client because
it doesn't check whether or not the client is set after grabbing
the nsm_create_mutex.

Reported-by: Nix <nix@esperi.org.uk>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/lockd/mon.c