android_kernel_samsung_msm8976/net/ipv6
Hangbin Liu b940520ab4 igmp, mld: Fix memory leak in igmpv3/mld_del_delrec()
commit 9c8bb163ae784be4f79ae504e78c862806087c54 upstream.

In function igmpv3/mld_add_delrec() we allocate pmc and put it in
idev->mc_tomb, so we should free it when we don't need it in del_delrec().
But I removed kfree(pmc) incorrectly in latest two patches. Now fix it.

Fixes: 24803f38a5c0 ("igmp: do not remove igmp souce list info when ...")
Fixes: 1666d49e1d41 ("mld: do not remove mld souce list info when ...")
Change-Id: I81bad9c39912fbdd8170fafaf7f9d122cb9c52c3
Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-10-27 19:33:52 +01:00
..
netfilter netfilter: ipv6: fix use-after-free Write in nf_nat_ipv6_manip_pkt 2019-07-27 22:08:32 +02:00
addrconf.c ipv6: add option to drop unsolicited neighbor advertisements 2019-08-03 00:24:04 +02:00
addrconf_core.c
addrlabel.c
af_inet6.c ipv6: Consider sk_bound_dev_if when binding a socket to an address 2019-07-27 22:05:57 +02:00
ah6.c net: inet: Support UID-based routing in IP protocols. 2019-07-27 21:50:59 +02:00
anycast.c
datagram.c net: add build-time checks for msg->msg_name size 2019-08-16 03:55:59 +02:00
esp6.c net: inet: Support UID-based routing in IP protocols. 2019-07-27 21:50:59 +02:00
exthdrs.c
exthdrs_core.c
exthdrs_offload.c
fib6_rules.c
icmp.c ipv6: fix endianness error in icmpv6_err 2019-07-27 21:51:03 +02:00
inet6_connection_sock.c net: inet: Support UID-based routing in IP protocols. 2019-07-27 21:50:59 +02:00
inet6_hashtables.c
ip6_checksum.c
ip6_fib.c
ip6_flowlabel.c ipv6: flowlabel: fl6_sock_lookup() must use atomic_inc_not_zero 2019-07-27 22:11:17 +02:00
ip6_gre.c net: inet: Support UID-based routing in IP protocols. 2019-07-27 21:50:59 +02:00
ip6_icmp.c
ip6_input.c ipv6: add option to drop unicast encapsulated in L2 multicast 2019-08-03 00:21:48 +02:00
ip6_offload.c
ip6_offload.h
ip6_output.c inet: update the IP ID generation algorithm to higher standards. 2019-07-27 22:10:09 +02:00
ip6_tunnel.c ip6_tunnel: be careful when accessing the inner header 2019-07-27 21:52:36 +02:00
ip6mr.c ip6mr: Do not call __IP6_INC_STATS() from preemptible context 2019-07-27 22:11:26 +02:00
ipcomp6.c net: inet: Support UID-based routing in IP protocols. 2019-07-27 21:50:59 +02:00
ipv6_sockglue.c
Kconfig
Makefile
mcast.c igmp, mld: Fix memory leak in igmpv3/mld_del_delrec() 2019-10-27 19:33:52 +01:00
mip6.c
ndisc.c ipv6: add option to drop unsolicited neighbor advertisements 2019-08-03 00:24:04 +02:00
netfilter.c net: inet: Support UID-based routing in IP protocols. 2019-07-27 21:50:59 +02:00
output_core.c
ping.c net: add build-time checks for msg->msg_name size 2019-08-16 03:55:59 +02:00
proc.c
protocol.c
raw.c net: add build-time checks for msg->msg_name size 2019-08-16 03:55:59 +02:00
reassembly.c
route.c ipv6: add RTA_TABLE and RTA_PREFSRC to rtm_ipv6_policy 2019-07-27 22:08:33 +02:00
sit.c ipv6: sit: better validate user provided tunnel names 2019-07-27 21:52:03 +02:00
syncookies.c net: inet: Support UID-based routing in IP protocols. 2019-07-27 21:50:59 +02:00
sysctl_net_ipv6.c
tcp_ipv6.c net: Replace more instances of ACCESS_ONCE w/ READ_ONCE 2019-07-27 22:08:51 +02:00
tcpv6_offload.c
tunnel6.c
udp.c net: add build-time checks for msg->msg_name size 2019-08-16 03:55:59 +02:00
udp_impl.h
udp_offload.c
udplite.c
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: avoid potential infinite loop in _decode_session6() 2019-07-27 21:52:24 +02:00
xfrm6_state.c
xfrm6_tunnel.c xfrm6_tunnel: Fix potential panic when unloading xfrm6_tunnel module 2019-08-15 21:02:28 +02:00