android_kernel_lge_bullhead/net/ipv4
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.108 stable release 2018-01-25 17:57:49 -07:00
Kconfig net: diag: Support destroying TCP sockets. 2016-01-27 16:38:37 +09:00
Makefile
af_inet.c This is the 3.10.108 stable release 2018-01-25 17:57:49 -07:00
ah4.c
arp.c
cipso_ipv4.c netlabel: out of bound access in cipso_v4_validate() 2017-06-08 00:46:58 +02:00
datagram.c ipv6: lock socket in ip6_datagram_connect() 2015-10-01 12:07:37 +02:00
devinet.c Merge upstream linux-stable v3.10.36 into msm-3.10 2014-04-23 16:23:49 -07:00
esp4.c
fib_frontend.c This is the 3.10.108 stable release 2018-01-25 17:57:49 -07:00
fib_lookup.h
fib_rules.c ipv4: Fix incorrect error code when adding an unreachable route 2014-12-06 15:05:46 -08:00
fib_semantics.c ipv4, fib: pass LOOPBACK_IFINDEX instead of 0 to flowi4_iif 2015-09-01 13:51:04 +09:00
fib_trie.c seq_file: remove "%n" usage from seq_file users 2014-06-02 14:20:27 -07:00
gre.c
icmp.c net: inet: Support UID-based routing in IP protocols. 2016-12-20 15:27:17 +09:00
igmp.c igmp: Make igmp group member RFC 3376 compliant 2017-06-20 14:03:27 +02:00
inet_connection_sock.c Merge branch 'android-msm-bullhead-3.10-nyc-mr2' into android-msm-bullhead-3.10-oc 2017-07-18 20:28:55 -07:00
inet_diag.c net: inet: diag: expose the socket mark to privileged processes. 2016-09-20 17:45:03 +09:00
inet_fragment.c Merge upstream tag 'v3.10.40' into msm-3.10 2014-06-18 13:10:54 -07:00
inet_hashtables.c net: do not call sock_put() on TIMEWAIT sockets 2013-11-04 04:31:00 -08:00
inet_lro.c
inet_timewait_sock.c
inetpeer.c This is the 3.10.67 stable release 2015-05-01 13:34:57 -07:00
ip_forward.c ip_forward: Drop frames with attached skb->sk 2015-05-06 21:56:20 +02:00
ip_fragment.c net: disable fragment reassembly if high_thresh is set to zero 2017-02-10 11:03:48 +01:00
ip_gre.c gre: don't allow to add the same tunnel twice 2014-05-30 21:52:14 -07:00
ip_input.c net: Fix memory leak if TPROXY used with TCP early demux 2014-02-06 11:08:17 -08:00
ip_options.c ipv4: fix buffer overflow in ip_options_compile() 2014-07-28 08:00:06 -07:00
ip_output.c This is the 3.10.108 stable release 2018-01-25 17:57:49 -07:00
ip_sockglue.c ipv4: keep skb->dst around in presence of IP options 2017-06-08 00:46:58 +02:00
ip_tunnel.c inetpeer: get rid of ip_id_count 2014-08-14 09:24:15 +08:00
ip_vti.c This is the 3.10.106 stable release 2018-01-25 17:54:29 -07:00
ipcomp.c
ipconfig.c
ipip.c ipip, sit: fix ipv4_{update_pmtu,redirect} calls 2014-06-26 15:12:38 -04:00
ipmr.c This is the 3.10.105 stable release 2018-01-25 17:45:32 -07:00
netfilter.c
ping.c This is the 3.10.106 stable release 2018-01-25 17:54:29 -07:00
proc.c
protocol.c
raw.c UPSTREAM: ipv4, ipv6: ensure raw socket message is big enough to hold an IP header 2018-04-16 17:40:04 +00:00
route.c inet: update the IP ID generation algorithm to higher standards. 2020-07-11 12:43:52 +02:00
syncookies.c net: inet: Support UID-based routing in IP protocols. 2016-12-20 15:27:17 +09:00
sysctl_net_ipv4.c net: Fail explicit bind to local reserved ports 2015-08-20 20:37:42 -07:00
sysfs_net_ipv4.c msm-3.10: Create shadow files under /sys/kernel/ipv4 2014-04-28 15:36:07 -07:00
tcp.c This is the 3.10.108 stable release 2018-01-25 17:57:49 -07:00
tcp_bic.c
tcp_cong.c tcp: disallow cwnd undo when switching congestion control 2017-11-02 07:16:22 +01:00
tcp_cubic.c tcp_cubic: fix the range of delayed_ack 2014-05-30 21:52:16 -07:00
tcp_diag.c net: diag: Support destroying TCP sockets. 2016-01-27 16:38:37 +09:00
tcp_fastopen.c
tcp_highspeed.c
tcp_htcp.c
tcp_hybla.c
tcp_illinois.c remove extra definitions of U32_MAX 2015-04-29 10:33:54 +02:00
tcp_input.c This is the 3.10.108 stable release 2018-01-25 17:57:49 -07:00
tcp_ipv4.c This is the 3.10.107 stable release 2018-01-25 17:57:41 -07:00
tcp_lp.c
tcp_memcontrol.c
tcp_metrics.c tcp: metrics: Avoid duplicate entries with the same destination-IP 2014-02-06 11:08:16 -08:00
tcp_minisocks.c tcp: initialize icsk_ack.lrcvtime at session start time 2017-06-20 14:04:35 +02:00
tcp_output.c This is the 3.10.108 stable release 2018-01-25 17:57:49 -07:00
tcp_probe.c
tcp_scalable.c
tcp_timer.c This is the 3.10.107 stable release 2018-01-25 17:57:41 -07:00
tcp_vegas.c tcp: Fix integer-overflow in TCP vegas 2014-08-14 09:24:15 +08:00
tcp_vegas.h
tcp_veno.c tcp: Fix integer-overflows in TCP veno 2014-08-14 09:24:15 +08:00
tcp_westwood.c
tcp_yeah.c tcp_yeah: don't set ssthresh below 2 2016-01-28 21:49:34 -08:00
tunnel4.c
udp.c This is the 3.10.108 stable release 2018-01-25 17:57:49 -07:00
udp_diag.c net: inet: diag: expose the socket mark to privileged processes. 2016-09-20 17:45:03 +09:00
udp_impl.h
udplite.c
xfrm4_input.c
xfrm4_mode_beet.c
xfrm4_mode_transport.c
xfrm4_mode_tunnel.c inetpeer: get rid of ip_id_count 2014-08-14 09:24:15 +08:00
xfrm4_output.c
xfrm4_policy.c Revert "net: core: Support UID-based routing." 2015-08-31 16:37:31 -07:00
xfrm4_state.c
xfrm4_tunnel.c