From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: SKB truesize bug Date: Thu, 20 Nov 2008 04:03:11 -0800 (PST) Message-ID: <20081120.040311.01043059.davem@davemloft.net> References: <20080429120713.GA19937@gondor.apana.org.au> <20080429.223747.211215854.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: bkostya@hotmail.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:60174 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752595AbYKTMDL (ORCPT ); Thu, 20 Nov 2008 07:03:11 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Kostya B Date: Thu, 20 Nov 2008 11:59:28 +0000 > Perhaps we should take a closer look on pskb_expand_head() > > And add > > +skb->truesize = size + sizeof(struct sk_buff); You can't. If a socket is attached to the skb it's buffer accounting will get corrupted if you modify skb->truesize. This has been explained a thousand times on this list.