Re: [AUDIT]: Increase skb->truesize in audit_expand

From: David Miller
Date: Mon Jan 28 2008 - 23:47:22 EST


From: James Morris <jmorris@xxxxxxxxx>
Date: Tue, 29 Jan 2008 01:13:03 +1100 (EST)

> On Mon, 28 Jan 2008, Herbert Xu wrote:
>
> > Hi:
> >
> > [AUDIT]: Increase skb->truesize in audit_expand
> >
> > 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@xxxxxxxxxxxxxxxxxxx>
>
> Acked-by: James Morris <jmorris@xxxxxxxxx>
>
>
> (Candidate for stable ?)

Applied, and yes I'll queue this up for -stable.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/