]> git.baikalelectronics.ru Git - kernel.git/commit
igmp: fix ip_mc_sf_allow race [v5]
authorFlavio Leitner <fleitner@redhat.com>
Tue, 2 Feb 2010 15:32:29 +0000 (07:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Feb 2010 15:32:29 +0000 (07:32 -0800)
commita1e13353026b2b78299b6d8b7af3ba1e7eec0081
tree2a5daec2aecc3fb3eedfba3f63a2156f38575b2d
parent4ef197d27edb521cf0066a5174624becc9a29aeb
igmp: fix ip_mc_sf_allow race [v5]

Almost all igmp functions accessing inet->mc_list are protected by
rtnl_lock(), but there is one exception which is ip_mc_sf_allow(),
so there is a chance of either ip_mc_drop_socket or ip_mc_leave_group
remove an entry while ip_mc_sf_allow is running causing a crash.

Signed-off-by: Flavio Leitner <fleitner@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/igmp.h
net/ipv4/igmp.c