]> git.karo-electronics.de Git - linux-beck.git/commit
Fixed race condition at ip_vs.ko module init.
authorEduardo Blanco <ejblanco@google.com>
Tue, 19 Oct 2010 09:26:47 +0000 (10:26 +0100)
committerSimon Horman <horms@verge.net.au>
Tue, 19 Oct 2010 15:13:16 +0000 (17:13 +0200)
commitd86bef73b4a24e59e7c1f896a72bbf38430ac2c6
tree724097038b8d5bf76da75b55af13de23b46365f1
parent714f095f74582764d629785f03b459a3d0503624
Fixed race condition at ip_vs.ko module init.

Lists were initialized after the module was registered.  Multiple ipvsadm
processes at module load triggered a race condition that resulted in a null
pointer dereference in do_ip_vs_get_ctl(). As a result, __ip_vs_mutex
was left locked preventing all further ipvsadm commands.

Signed-off-by: Eduardo J. Blanco <ejblanco@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_ctl.c