]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
igmp: Fix regression caused by igmp sysctl namespace code.
authorNikolay Borisov <nborisov@suse.com>
Wed, 9 Aug 2017 11:38:04 +0000 (14:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:46:44 +0000 (22:46 -0700)
commit1714020e42b17135032c8606f7185b3fb2ba5d78
treefec93f563b4df008fcfcd198b78f001a24c9db3d
parent04db70d9fe7019d96118158fbaaccb4959ba2bd4
igmp: Fix regression caused by igmp sysctl namespace code.

Commit dcd87999d415 ("igmp: net: Move igmp namespace init to correct file")
moved the igmp sysctls initialization from tcp_sk_init to igmp_net_init. This
function is only called as part of per-namespace initialization, only if
CONFIG_IP_MULTICAST is defined, otherwise igmp_mc_init() call in ip_init is
compiled out, casuing the igmp pernet ops to not be registerd and those sysctl
being left initialized with 0. However, there are certain functions, such as
ip_mc_join_group which are always compiled and make use of some of those
sysctls. Let's do a partial revert of the aforementioned commit and move the
sysctl initialization into inet_init_net, that way they will always have
sane values.

Fixes: dcd87999d415 ("igmp: net: Move igmp namespace init to correct file")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=196595
Reported-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
net/ipv4/igmp.c