android_kernel_oneplus_msm8998/net/packet
Andrey Konovalov 25adf4e32a net/packet: fix overflow in check for tp_reserve
[ Upstream commit bcc5364bdcfe131e6379363f089e7b4108d35b70 ]

When calculating po->tp_hdrlen + po->tp_reserve the result can overflow.

Fix by checking that tp_reserve <= INT_MAX on assign.

Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-02 21:19:51 -07:00
..
af_packet.c net/packet: fix overflow in check for tp_reserve 2017-05-02 21:19:51 -07:00
diag.c
internal.h
Kconfig
Makefile