From: Eric Dumazet <eric.duma...@gmail.com>
Date: Tue, 10 Jan 2017 12:24:01 -0800

> From: Herbert Xu <herb...@gondor.apana.org.au>
> 
> The GRO path has a fast-path where we avoid calling pskb_may_pull
> and pskb_expand by directly accessing frag0.  However, this should
> only be done if we have enough tailroom in the skb as otherwise
> we'll have to expand it later anyway.
> 
> This patch adds the check by capping frag0_len with the skb tailroom.
> 
> Fixes: cb18978cbf45 ("gro: Open-code final pskb_may_pull")
> Reported-by: Slava Shwartsman <slav...@mellanox.com>
> Signed-off-by: Herbert Xu <herb...@gondor.apana.org.au>
> Signed-off-by: Eric Dumazet <eduma...@google.com>


Applied and queued up for -stable.

Reply via email to