From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net/ipv6/exthdrs.c: Strict PadN option checking Date: Thu, 12 Apr 2012 17:37:07 -0400 (EDT) Message-ID: <20120412.173707.2114402833197161386.davem@davemloft.net> References: <1334266320-12297-1-git-send-email-eldad@fogrefinery.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: eldad@fogrefinery.com Return-path: In-Reply-To: <1334266320-12297-1-git-send-email-eldad@fogrefinery.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Eldad Zack Date: Thu, 12 Apr 2012 23:31:59 +0200 > Added strict checking of PadN, as PadN can be used to increase header > size and thus push the protocol header into the 2nd fragment. > > PadN is used to align the options within the Hop-by-Hop or > Destination Options header to 64-bit boundaries. The maximum valid > size is thus 7 bytes. > RFC 4942 recommends to actively check the "payload" itself and > ensure that it contains only zeroes. > > See also RFC 4942 section 2.1.9.5. > > Signed-off-by: Eldad Zack Applied after fixing up the comment formatting. Thanks.