[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100803045637.GA14173@gondor.apana.org.au>
Date: Tue, 3 Aug 2010 12:56:38 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: xiaohui.xin@...el.com
Cc: netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH] deal with if frags[0].size is pulled to 0 in
dev_gro_receive()
On Tue, Aug 03, 2010 at 11:17:19AM +0800, xiaohui.xin@...el.com wrote:
> From: Xin Xiaohui <xiaohui.xin@...el.com>
>
> Now in dev_gro_receive(), if frags[0].size is pulled to 0, memmove is called and
> the null page is released. But it's not enough, we should reset size of each frags
> left as well. Compared to this, we can have another way to do this, it's not do do
> anything at all.
>
> Signed-off-by: Xin Xiaohui <xiaohui.xin@...el.com>
This patch can only work if you audit everything that uses skb
frags to ensure that they can tolerate a zero-sided frag.
I think it's much easier to just fix the memmove.
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
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