android_kernel_samsung_msm8976/net/rds
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
..
Kconfig
Makefile
af_rds.c rds: Make rds_sock_lock BH rather than IRQ safe. 2012-01-24 17:03:44 -05:00
bind.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
cong.c
connection.c RDS: fix race condition when sending a message on unbound socket 2016-03-03 15:06:21 -08:00
ib.c rds: prevent dereference of a NULL device 2014-01-15 15:28:49 -08:00
ib.h
ib_cm.c
ib_rdma.c
ib_recv.c
ib_ring.c RDS/IW+IB: Set recv ring low water mark to 1/2 full. 2009-04-09 17:21:14 -07:00
ib_send.c
ib_stats.c RDS: Move atomic stats from general to ib-specific area 2010-09-08 18:12:20 -07:00
ib_sysctl.c
info.c rds: fix an integer overflow test in rds_info_getsockopt() 2015-10-01 12:07:37 +02:00
info.h
iw.c
iw.h
iw_cm.c RDS: use gfp flags from caller in conn_alloc() 2012-03-22 19:29:58 -04:00
iw_rdma.c
iw_recv.c arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
iw_ring.c
iw_send.c
iw_stats.c
iw_sysctl.c
loop.c
loop.h RDS: loopback 2009-02-26 23:39:26 -08:00
message.c
page.c
rdma.c
rdma_transport.c net: Fix files explicitly needing to include module.h 2011-10-31 19:30:28 -04:00
rdma_transport.h
rds.h
recv.c net: add build-time checks for msg->msg_name size 2019-08-16 03:55:59 +02:00
send.c net: add build-time checks for msg->msg_name size 2019-08-16 03:55:59 +02:00
stats.c net/rds: zero last byte for strncpy 2013-03-08 00:35:44 -05:00
sysctl.c net: rds: use correct size for max unacked packets and bytes 2015-04-19 10:10:50 +02:00
tcp.c
tcp.h rds: make local functions/variables static 2010-10-21 04:26:39 -07:00
tcp_connect.c rds: Don't disable BH on BH context 2012-08-22 22:52:04 -07:00
tcp_listen.c
tcp_recv.c RDS-TCP: Recover correctly from pskb_pull()/pksb_trim() failure in rds_tcp_data_recv 2015-12-09 13:40:06 -05:00
tcp_send.c
tcp_stats.c
threads.c net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules 2011-10-31 19:30:30 -04:00
transport.c RDS: have sockets get transport module references 2010-09-08 18:16:47 -07:00