aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2019-04-29 11:53:18 -0400
committerDavid S. Miller <davem@davemloft.net>2019-05-01 11:28:35 -0400
commit486efdc8f6ce802b27e15921d2353cc740c55451 (patch)
tree38f6396a1f53717bdd1247a75abb4e632fe2e2ea /tools/testing/selftests
parentpacket: in recvmsg msg_name return at least sizeof sockaddr_ll (diff)
downloadlinux-dev-486efdc8f6ce802b27e15921d2353cc740c55451.tar.xz
linux-dev-486efdc8f6ce802b27e15921d2353cc740c55451.zip
packet: validate msg_namelen in send directly
Packet sockets in datagram mode take a destination address. Verify its length before passing to dev_hard_header. Prior to 2.6.14-rc3, the send code ignored sll_halen. This is established behavior. Directly compare msg_namelen to dev->addr_len. Change v1->v2: initialize addr in all paths Fixes: 6b8d95f1795c4 ("packet: validate address length if non-zero") Suggested-by: David Laight <David.Laight@aculab.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests')
0 files changed, 0 insertions, 0 deletions