Thread (2 messages) 2 messages, 2 authors, 2008-12-26

Re: gro: Fix potential use after free

From: David Miller <davem@davemloft.net>
Date: 2008-12-26 22:57:56

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Sat, 27 Dec 2008 09:44:01 +1100
gro: Fix potential use after free

The initial skb may have been freed after napi_gro_complete in
napi_gro_receive if it was merged into an existing packet.  Thus
we cannot check same_flow (which indicates whether it was merged)
after calling napi_gro_complete.

This patch fixes this by saving the same_flow status before the
call to napi_gro_complete.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Applied, thanks Herbert.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help