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

From: James Morris
Date: Mon Jan 28 2008 - 09:13:57 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 ?)


- James
--
James Morris <jmorris@xxxxxxxxx>
--
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/