• Chris Wright's avatar
    [PATCH] add new audit data to last skb · 0dd8e06b
    Chris Wright authored
    When adding more formatted audit data to an skb for delivery to userspace,
    the kernel will attempt to reuse an skb that has spare room.  However, if
    the audit message has already been fragmented to multiple skb's, the search
    for spare room in the skb uses the head of the list.  This will corrupt the
    audit message with trailing bytes being placed midway through the stream.
    Fix is to look at the end of the list.
    Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
    Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
    0dd8e06b
audit.c 23.2 KB