[PATCH] audit: fix two bugs in the new execve audit code

Steve Grubb sgrubb at redhat.com
Sat Jul 28 02:05:07 UTC 2007


On Friday 27 July 2007 18:55:18 Peter Zijlstra wrote:
> copy_from_user() returns the number of bytes not copied, hence 0 is the
> expected output.
>
> axi->mm might not be valid anymore when not equal to current->mm, do not
> dereference before checking that - thanks to Al for spotting that.
>
> Signed-off-by: Peter Zijlstra <a.p.zijlstra at chello.nl>

This patch tests good applied to the same rawhide kernel source that reported 
the problems.

-Steve




More information about the Linux-audit mailing list