android_kernel_xiaomi_sm8350/net/ipv6
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
..
netfilter
addrconf_core.c
addrconf.c sysctl: remove "struct file *" argument of ->proc_handler 2009-09-24 07:21:04 -07:00
addrlabel.c
af_inet6.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
ah6.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
anycast.c
datagram.c
esp6.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
exthdrs_core.c
exthdrs.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
fib6_rules.c
icmp.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
inet6_connection_sock.c
inet6_hashtables.c
ip6_fib.c
ip6_flowlabel.c
ip6_input.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
ip6_output.c ip: Report qdisc packet drops 2009-09-02 18:05:33 -07:00
ip6_tunnel.c tunnel: eliminate recursion field 2009-09-24 15:39:22 -07:00
ip6mr.c net: Make setsockopt() optlen be unsigned. 2009-09-30 16:12:20 -07:00
ipcomp6.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
ipv6_sockglue.c net: Fix IP_MULTICAST_IF 2009-10-19 21:34:20 -07:00
Kconfig
Makefile
mcast.c bonding: remap muticast addresses without using dev_close() and dev_open() 2009-09-15 02:37:40 -07:00
mip6.c
ndisc.c Revert "sit: stateless autoconf for isatap" 2009-09-26 20:28:07 -07:00
netfilter.c
proc.c
protocol.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
raw.c net: Make setsockopt() optlen be unsigned. 2009-09-30 16:12:20 -07:00
reassembly.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
route.c sysctl: remove "struct file *" argument of ->proc_handler 2009-09-24 07:21:04 -07:00
sit.c sit: fix off-by-one in ipip6_tunnel_get_prl 2009-09-30 16:39:27 -07:00
syncookies.c
sysctl_net_ipv6.c
tcp_ipv6.c tcp: fix ssthresh u16 leftover 2009-09-15 01:30:10 -07:00
tunnel6.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
udp_impl.h net: Make setsockopt() optlen be unsigned. 2009-09-30 16:12:20 -07:00
udp.c net: Make setsockopt() optlen be unsigned. 2009-09-30 16:12:20 -07:00
udplite.c net: constify struct inet6_protocol 2009-09-14 17:03:05 -07:00
xfrm6_input.c
xfrm6_mode_beet.c
xfrm6_mode_ro.c
xfrm6_mode_transport.c
xfrm6_mode_tunnel.c
xfrm6_output.c
xfrm6_policy.c
xfrm6_state.c
xfrm6_tunnel.c