From: Andrey Konovalov Date: Wed, 29 Mar 2017 14:11:22 +0000 (+0200) Subject: net/packet: fix overflow in check for tp_reserve X-Git-Tag: v3.2.89~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96053b293c69c636d8d34fc569ac81fbf1118658;p=pandora-kernel.git net/packet: fix overflow in check for tp_reserve commit bcc5364bdcfe131e6379363f089e7b4108d35b70 upstream. 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 Acked-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed