commit | 3ddf35c6983b1878b5289829791d87437a8e0d32 | [log] [tgz] |
---|---|---|
author | Willem de Bruijn <willemb@google.com> | Fri Dec 21 12:06:59 2018 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jan 09 16:16:40 2019 +0100 |
tree | 6bb60df5f3e01eea3ee4126b1df532b5dcfed750 | |
parent | 0ca2635b418cdc1d47091a85f6f4bda46b8da264 [diff] |
packet: validate address length [ Upstream commit 99137b7888f4058087895d035d81c6b2d31015c5 ] Packet sockets with SOCK_DGRAM may pass an address for use in dev_hard_header. Ensure that it is of sufficient length. Reported-by: syzbot <syzkaller@googlegroups.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>