[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120925.132307.47817320861046816.davem@davemloft.net>
Date: Tue, 25 Sep 2012 13:23:07 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] ipv6: raw: fix icmpv6_filter()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Tue, 25 Sep 2012 19:03:40 +0200
> From: Eric Dumazet <edumazet@...gle.com>
>
> icmpv6_filter() should not modify its input, or else its caller
> would need to recompute ipv6_hdr() if skb->head is reallocated.
>
> Use skb_header_pointer() instead of pskb_may_pull() and
> change the prototype to make clear both sk and skb are const.
>
> Also, if icmpv6 header cannot be found, do not deliver the packet,
> as we do in IPv4.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> ---
> Note: another patch is needed in mip6_mh_filter()
A rather pervasive issues, it appears.
Applied and queued up for -stable, thanks Eric.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists