linux/net/nfc
Steffen Hurrle 342dfc306f net: add build-time checks for msg->msg_name size
This is a follow-up patch to f3d3342602 ("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.

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>
2014-01-18 23:04:16 -08:00
..
hci Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2014-01-17 14:43:17 -05:00
nci NFC: NCI: Add set_config API 2014-01-07 01:32:40 +01:00
af_nfc.c nfc: Fix FSF address in file headers 2013-12-11 10:56:21 -05:00
core.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2014-01-17 14:43:17 -05:00
digital_core.c NFC: digital: Set current target active on activate_target() call 2014-01-07 18:48:12 +01:00
digital_dep.c NFC: digital: Set rf tech and crc functions when receiving a PSL_REQ 2014-01-07 18:48:12 +01:00
digital_technology.c NFC: digital: Fix sens_res endiannes handling 2013-09-25 02:02:42 +02:00
digital.h NFC: digital: Remove PR_ERR and PR_DBG macros 2013-09-25 02:02:32 +02:00
Kconfig NFC Digital: Add NFC-F technology support 2013-09-25 02:02:25 +02:00
llcp_commands.c NFC: llcp: Use default MIU if none was specified on connect 2014-01-04 03:32:27 +01:00
llcp_core.c NFC: llcp: Use default MIU if none was specified on connect 2014-01-04 03:32:27 +01:00
llcp_sock.c net: add build-time checks for msg->msg_name size 2014-01-18 23:04:16 -08:00
llcp.h nfc: Fix FSF address in file headers 2013-12-11 10:56:21 -05:00
Makefile NFC Digital: Add initiator NFC-DEP support 2013-09-25 02:02:27 +02:00
netlink.c nfc: Fix FSF address in file headers 2013-12-11 10:56:21 -05:00
nfc.h nfc: Fix FSF address in file headers 2013-12-11 10:56:21 -05:00
rawsock.c nfc: Fix FSF address in file headers 2013-12-11 10:56:21 -05:00