]> git.karo-electronics.de Git - karo-tx-linux.git/commit
AUDIT: Increase skb->truesize in audit_expand
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Feb 2008 09:32:40 +0000 (01:32 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Feb 2008 00:18:43 +0000 (16:18 -0800)
commit5e10c4208a7b87b4bc0e42622109a6d9e8453419
treef9419de7a8b2ecfb95347bcec535e7b6b7649dad
parent47b66fe95afa8400cefaea06263ab8948d8465ba
AUDIT: Increase skb->truesize in audit_expand

Upstream commit: 406a1d868001423c85a3165288e566e65f424fe6

The recent UDP patch exposed this bug in the audit code.  It
was calling pskb_expand_head without increasing skb->truesize.
The caller of pskb_expand_head needs to do so because that function
is designed to be called in places where truesize is already fixed
and therefore it doesn't update its value.

Because the audit system is using it in a place where the truesize
has not yet been fixed, it needs to update its value manually.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/audit.c