[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100802.220358.186311045.davem@davemloft.net>
Date: Mon, 02 Aug 2010 22:03:58 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: herbert@...dor.apana.org.au
Cc: xiaohui.xin@...el.com, netdev@...r.kernel.org
Subject: Re: [PATCH] deal with if frags[0].size is pulled to 0 in
dev_gro_receive()
From: Herbert Xu <herbert@...dor.apana.org.au>
Date: Tue, 3 Aug 2010 12:56:38 +0800
> 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.
Agreed.
--
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