[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <47E946C8.6020006@redhat.com>
Date: Tue, 25 Mar 2008 14:39:04 -0400
From: Hideo AOKI <haoki@...hat.com>
To: netdev <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Herbert Xu <herbert@...dor.apana.org.au>
CC: Hideo AOKI <haoki@...hat.com>
Subject: [RFC] [NET] [0/2] pskb_expand_head() bugfix
Hello,
This patch set fixes a potential bug in pskb_expand_head().
Current pskb_expand_head() doesn't change truesize, while it
reallocates memory. Then, if argument nhead or ntail aren't 0, caller
must update truesize.
We had this bug at audit_expand() in January and fixed it as commit
406a1d868001423c85a3165288e566e65f424fe6. However, some drivers and
subsystems still use pskb_expand_head() without updating truesize.
In addition, there is another problem to update truesise. Since
pskb_expand_head() aligns memory size before reallocation, caller
functions may not update turesize correctly if they just add nhaad
and ntail to turesize.
To solve above problems, this patch set does the following:
- updating truesize in pskb_expand_head()
- removing turesize update due to pskb_expand_head() from caller
functions
This patch set can be applied to net-2.6.
Comments and suggestions are welcome.
Best regards,
Hideo Aoki
--
Hitachi Computer Products (America) Inc.
--
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