diff options
| author | Willem de Bruijn <[email protected]> | 2019-04-29 15:53:18 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-05-01 15:28:35 +0000 |
| commit | 486efdc8f6ce802b27e15921d2353cc740c55451 (patch) | |
| tree | 38f6396a1f53717bdd1247a75abb4e632fe2e2ea /net/tls/tls_device_fallback.c | |
| parent | packet: in recvmsg msg_name return at least sizeof sockaddr_ll (diff) | |
| download | kernel-486efdc8f6ce802b27e15921d2353cc740c55451.tar.gz kernel-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 <[email protected]>
Signed-off-by: Willem de Bruijn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tls/tls_device_fallback.c')
0 files changed, 0 insertions, 0 deletions
