[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1490802691.24891.33.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Wed, 29 Mar 2017 08:51:31 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Andrey Konovalov <andreyknvl@...gle.com>
Cc: "David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Willem de Bruijn <willemb@...gle.com>,
Craig Gallek <cgallek@...gle.com>, netdev@...r.kernel.org,
Dmitry Vyukov <dvyukov@...gle.com>,
Kostya Serebryany <kcc@...gle.com>
Subject: Re: [PATCH net v2 3/3] net/packet: fix overflow in check for
tp_reserve
On Wed, 2017-03-29 at 16:11 +0200, Andrey Konovalov wrote:
> 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@...gle.com>
> ---
Acked-by: Eric Dumazet <edumazet@...gle.com>
Thanks !
Powered by blists - more mailing lists