Re: sparc oops in ip_fast_csum

From: David Miller
Date: Sun Jan 06 2008 - 02:15:39 EST


From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 06 Jan 2008 11:22:04 +1100

> [IPV4] raw: Strengthen check on validity of iph->ihl
>
> We currently check that iph->ihl is bounded by the real length and that
> the real length is greater than the minimum IP header length. However,
> we did not check the caes where iph->ihl is less than the minimum IP
> header length.
>
> This breaks because some ip_fast_csum implementations assume that which
> is quite reasonable.
>
> Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

Applied, I'll push this to -stable too, thanks Herbert.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/