android_kernel_lge_bullhead/net/ipv6
Amit Klein 6b9b57d971 inet: update the IP ID generation algorithm to higher standards.
Commit 355b98553789 ("netns: provide pure entropy for net_hash_mix()")
makes net_hash_mix() return a true 32 bits of entropy.  When used in the
IP ID generation algorithm, this has the effect of extending the IP ID
generation key from 32 bits to 64 bits.

However, net_hash_mix() is only used for IP ID generation starting with
kernel version 4.1.  Therefore, earlier kernels remain with 32-bit key
no matter what the net_hash_mix() return value is.

This change addresses the issue by explicitly extending the key to 64
bits for kernels older than 4.1.

Change-Id: I65004d96d909d9de86651a361ee8ae47e801abec
Signed-off-by: Amit Klein <aksecurity@gmail.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-11 12:43:52 +02:00
..
netfilter This is the 3.10.105 stable release 2018-01-25 17:45:32 -07:00
Kconfig
Makefile net: ipv6: Add IPv6 support to the ping socket. 2014-05-06 09:18:35 -06:00
addrconf.c This is the 3.10.108 stable release 2018-01-25 17:57:49 -07:00
addrconf_core.c
addrlabel.c ipv6/addrlabel: fix ip6addrlbl_get() 2016-01-28 21:49:33 -08:00
af_inet6.c This is the 3.10.105 stable release 2018-01-25 17:45:32 -07:00
ah6.c net: inet: Support UID-based routing in IP protocols. 2016-12-20 15:27:17 +09:00
anycast.c This is the 3.10.105 stable release 2018-01-25 17:45:32 -07:00
datagram.c This is the 3.10.90 stable release 2018-01-25 17:02:20 -07:00
esp6.c net: inet: Support UID-based routing in IP protocols. 2016-12-20 15:27:17 +09:00
exthdrs.c ipv6: add complete rcu protection around np->opt 2016-06-17 02:48:07 +00:00
exthdrs_core.c This is the 3.10.102 stable release 2018-01-25 17:24:10 -07:00
exthdrs_offload.c ipv6: fix exthdrs offload registration in out_rt path 2015-10-01 12:07:38 +02:00
fib6_rules.c
icmp.c net: inet: Support UID-based routing in IP protocols. 2016-12-20 15:27:17 +09:00
inet6_connection_sock.c net: inet: Support UID-based routing in IP protocols. 2016-12-20 15:27:17 +09:00
inet6_hashtables.c net: do not call sock_put() on TIMEWAIT sockets 2013-11-04 04:31:00 -08:00
ip6_checksum.c
ip6_fib.c ipv6: fix typo in fib6_net_exit() 2017-11-02 10:46:00 +01:00
ip6_flowlabel.c ipv6: fix possible deadlock in ip6_fl_purge / ip6_fl_gc 2019-08-26 14:20:55 +02:00
ip6_gre.c This is the 3.10.108 stable release 2018-01-25 17:57:49 -07:00
ip6_icmp.c
ip6_input.c ipv6: Make MLD packets to only be processed locally 2015-10-01 12:07:34 +02:00
ip6_offload.c gro: Disable frag0 optimization on IPv6 ext headers 2017-06-08 00:46:54 +02:00
ip6_offload.h
ip6_output.c inet: update the IP ID generation algorithm to higher standards. 2020-07-11 12:43:52 +02:00
ip6_tunnel.c This is the 3.10.106 stable release 2018-01-25 17:54:29 -07:00
ip6mr.c This is the 3.10.107 stable release 2018-01-25 17:57:41 -07:00
ipcomp6.c net: inet: Support UID-based routing in IP protocols. 2016-12-20 15:27:17 +09:00
ipv6_sockglue.c ipv6: add complete rcu protection around np->opt 2016-06-17 02:48:07 +00:00
mcast.c ipv6: fix rtnl locking in setsockopt for anycast and multicast 2017-02-10 11:03:43 +01:00
mip6.c
ndisc.c This is the 3.10.105 stable release 2018-01-25 17:45:32 -07:00
netfilter.c net: inet: Support UID-based routing in IP protocols. 2016-12-20 15:27:17 +09:00
output_core.c inetpeer: get rid of ip_id_count 2014-08-14 09:24:15 +08:00
ping.c net: inet: Support UID-based routing in IP protocols. 2016-12-20 15:27:17 +09:00
proc.c
protocol.c
raw.c Android 8.1.0 Release 0.62 2018-06-04 15:05:19 -07:00
reassembly.c net: disable fragment reassembly if high_thresh is set to zero 2017-02-10 11:03:48 +01:00
route.c This is the 3.10.107 stable release 2018-01-25 17:57:41 -07:00
sit.c sit: correct IP protocol used in ipip6_err 2016-08-27 11:40:20 +02:00
syncookies.c net: inet: Support UID-based routing in IP protocols. 2016-12-20 15:27:17 +09:00
sysctl_net_ipv6.c net: add a sysctl to reflect the fwmark on replies 2014-06-23 15:20:28 -07:00
tcp_ipv6.c This is the 3.10.106 stable release 2018-01-25 17:54:29 -07:00
tcpv6_offload.c
tunnel6.c
udp.c This is the 3.10.102 stable release 2018-01-25 17:24:10 -07:00
udp_impl.h
udp_offload.c ipv6: reuse ip6_frag_id from ip6_ufo_append_data 2014-03-23 21:38:10 -07:00
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 xfrm: Increase the garbage collector threshold 2015-07-03 19:48:09 -07:00
xfrm6_state.c
xfrm6_tunnel.c