Eric Dumazet 55b8050353 net: Fix IP_MULTICAST_IF
ipv4/ipv6 setsockopt(IP_MULTICAST_IF) have dubious __dev_get_by_index() calls.

This function should be called only with RTNL or dev_base_lock held, or reader
could see a corrupt hash chain and eventually enter an endless loop.

Fix is to call dev_get_by_index()/dev_put().

If this happens to be performance critical, we could define a new dev_exist_by_index()
function to avoid touching dev refcount.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-10-19 21:34:20 -07:00
..
2009-09-23 22:26:32 +09:30
2009-05-25 01:53:53 -07:00
2009-10-19 19:36:49 -07:00
2009-10-05 02:22:23 -07:00
2009-09-26 20:16:15 -07:00
2009-05-25 01:53:53 -07:00
2009-10-19 21:34:20 -07:00
2009-10-19 21:34:20 -07:00
2009-09-02 01:03:53 -07:00
2009-09-30 16:41:34 -07:00
2009-08-04 16:44:23 -04:00
2009-10-11 23:03:47 -07:00
2009-09-24 15:39:14 -07:00
2009-07-12 12:22:34 -07:00
2009-09-02 01:03:53 -07:00