From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net/packet: refine check for priv area size Date: Mon, 04 Jun 2018 11:32:42 -0400 (EDT) Message-ID: <20180604.113242.1919664117116217142.davem@davemloft.net> References: <20180601162302.32717-1-edumazet@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:48492 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750931AbeFDPcn (ORCPT ); Mon, 4 Jun 2018 11:32:43 -0400 In-Reply-To: <20180601162302.32717-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Fri, 1 Jun 2018 09:23:02 -0700 > syzbot was able to trick af_packet again [1] :-( > Various commits tried to address the problem in the past, > but failed to take into account V3 header size. > > [1] ... > Fixes: 2b6867c2ce76 ("net/packet: fix overflow in check for priv area size") > Fixes: dc808110bb62 ("packet: handle too big packets for PACKET_V3") > Fixes: f6fb8f100b80 ("af-packet: TPACKET_V3 flexible buffer implementation.") > Signed-off-by: Eric Dumazet > Reported-by: syzbot Applied and queued up for -stable, thanks Eric.