mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-03 03:33:01 +09:00
[ Upstream commit6b8d95f179] Validate packet socket address length if a length is given. Zero length is equivalent to not setting an address. Fixes:99137b7888("packet: validate address length") Reported-by: Ido Schimmel <idosch@idosch.org> 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>