android_kernel_samsung_msm8976/net/ipv4
Steffen Hurrle cd7a863e1d net: add build-time checks for msg->msg_name size
This is a follow-up patch to f3d3342602f8bc ("net: rework recvmsg
handler msg_name and msg_namelen logic").

DECLARE_SOCKADDR validates that the structure we use for writing the
name information to is not larger than the buffer which is reserved
for msg->msg_name (which is 128 bytes). Also use DECLARE_SOCKADDR
consistently in sendmsg code paths.

Change-Id: I0589c7ce694ef02dbc1e8b227fb51eeebf610e47
Signed-off-by: Steffen Hurrle <steffen@hurrle.net>
Suggested-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-08-16 03:55:59 +02:00
..
netfilter Revert "netfilter: have ip*t REJECT set the sock err when an icmp is to be sent" 2019-07-27 21:51:03 +02:00
Kconfig
Makefile
af_inet.c udp: ipv4: Add udp early demux 2019-07-27 22:07:48 +02:00
ah4.c ipv4: properly refresh rtable entries on pmtu/redirect events 2019-07-27 21:45:24 +02:00
arp.c ipv4: add option to drop gratuitous ARP packets 2019-08-03 00:23:56 +02:00
cipso_ipv4.c netlabel: fix out-of-bounds memory accesses 2019-07-27 22:10:24 +02:00
datagram.c
devinet.c ipv4: add option to drop gratuitous ARP packets 2019-08-03 00:23:56 +02:00
esp4.c xfrm: Return error on unknown encap_type in init_state 2019-07-27 21:46:27 +02:00
fib_frontend.c ipv4: remove BUG_ON() from fib_compute_spec_dst 2019-07-27 21:52:57 +02:00
fib_lookup.h
fib_rules.c
fib_semantics.c ipv4: fix a race in update_or_create_fnhe() 2019-07-27 22:10:30 +02:00
fib_trie.c
gre.c
icmp.c net: inet: Support UID-based routing in IP protocols. 2019-07-27 21:50:59 +02:00
igmp.c ipv4: igmp: guard against silly MTU values 2019-07-27 22:08:52 +02:00
inet_connection_sock.c net: inet: Support UID-based routing in IP protocols. 2019-07-27 21:50:59 +02:00
inet_diag.c net: inet: diag: expose the socket mark to privileged processes. 2019-07-27 21:50:56 +02:00
inet_fragment.c
inet_hashtables.c
inet_lro.c
inet_timewait_sock.c soreuseport: initialise timewait reuseport field 2019-07-27 21:52:18 +02:00
inetpeer.c net: ipv4: use a dedicated counter for icmp_v4 redirect packets 2019-07-27 22:07:53 +02:00
ip_forward.c
ip_fragment.c ANDROID: Revert "net: increase fragment memory usage limits" 2019-07-27 21:51:06 +02:00
ip_gre.c
ip_input.c ipv4: add option to drop unicast encapsulated in L2 multicast 2019-08-03 00:23:48 +02:00
ip_options.c
ip_output.c ipv4: ip_do_fragment: Preserve skb_iif during fragmentation 2019-07-27 22:10:35 +02:00
ip_sockglue.c net: add build-time checks for msg->msg_name size 2019-08-16 03:55:59 +02:00
ip_tunnel.c ipv4: igmp: guard against silly MTU values 2019-07-27 22:08:52 +02:00
ip_vti.c Make the VTI code compile. 2019-07-27 21:51:05 +02:00
ipcomp.c ipv4: properly refresh rtable entries on pmtu/redirect events 2019-07-27 21:45:24 +02:00
ipconfig.c
ipip.c
ipmr.c ipv4: Fix potential Spectre v1 vulnerability 2019-07-27 21:53:29 +02:00
netfilter.c
ping.c net: add build-time checks for msg->msg_name size 2019-08-16 03:55:59 +02:00
proc.c tcp: tcp_fragment() should apply sane memory limits 2019-07-27 22:11:09 +02:00
protocol.c
raw.c net: add build-time checks for msg->msg_name size 2019-08-16 03:55:59 +02:00
route.c ipv4: fix a race in update_or_create_fnhe() 2019-07-27 22:10:30 +02:00
syncookies.c net: inet: Support UID-based routing in IP protocols. 2019-07-27 21:50:59 +02:00
sysctl_net_ipv4.c BACKPORT: tcp: add tcp_min_snd_mss sysctl 2019-07-27 22:11:10 +02:00
sysfs_net_ipv4.c
tcp.c tcp: limit payload size of sacked skbs 2019-07-27 22:11:09 +02:00
tcp_bic.c
tcp_cong.c tcp: disallow cwnd undo when switching congestion control 2019-07-27 21:44:29 +02:00
tcp_cubic.c tcp_cubic: do not set epoch_start in the future 2017-04-18 12:17:39 +02:00
tcp_diag.c
tcp_fastopen.c
tcp_highspeed.c
tcp_htcp.c
tcp_hybla.c
tcp_illinois.c
tcp_input.c tcp: limit payload size of sacked skbs 2019-07-27 22:11:09 +02:00
tcp_ipv4.c net: Replace more instances of ACCESS_ONCE w/ READ_ONCE 2019-07-27 22:08:51 +02:00
tcp_lp.c tcp: fix wraparound issue in tcp_lp 2019-07-27 21:44:45 +02:00
tcp_memcontrol.c
tcp_metrics.c
tcp_minisocks.c tcp: remove BUG_ON() in tcp_check_req() 2019-07-27 21:51:29 +02:00
tcp_output.c tcp: be more careful in tcp_fragment() 2019-08-15 21:02:46 +02:00
tcp_probe.c
tcp_scalable.c
tcp_timer.c BACKPORT: tcp: enforce tcp_min_snd_mss in tcp_mtu_probing() 2019-07-27 22:11:10 +02:00
tcp_vegas.c
tcp_vegas.h
tcp_veno.c
tcp_westwood.c
tcp_yeah.c
tunnel4.c
udp.c net: add build-time checks for msg->msg_name size 2019-08-16 03:55:59 +02:00
udp_diag.c net: inet: diag: expose the socket mark to privileged processes. 2019-07-27 21:50:56 +02:00
udp_impl.h
udplite.c
xfrm4_input.c xfrm: Reinject transport-mode packets through tasklet 2019-07-27 21:46:20 +02:00
xfrm4_mode_beet.c
xfrm4_mode_transport.c
xfrm4_mode_tunnel.c
xfrm4_output.c
xfrm4_policy.c xfrm4: Fix uninitialized memory read in _decode_session4 2019-08-15 21:02:28 +02:00
xfrm4_state.c
xfrm4_tunnel.c