Re: [PATCH] AppArmor: Modify Makefile to avoid Oops

From: John Johansen
Date: Thu Oct 18 2012 - 04:01:28 EST

On 10/18/2012 12:19 AM, Hiromu Yakura wrote:
> In my environment, AppArmor cause Oops every time when cupsd launch.
> This is the log of Oops:
> [ 114.876511] general protection fault: 0000 [#1] SMP


> It seems that bad address was passed for the second argument of
> audit_log_untrustedstring() at audit_cb() in capability.c:
> 52 audit_log_untrustedstring(ab, capability_names[sa->u.cap]);
> The array "capability_names" is defined in capability_names.h but the content
> of this is generated by Makefile from include/linux/capability.h
> However, capability.h was moved to include/uapi/linux/capability.h and because
> of this, the array is empty.
> That's why, sa->u.cap become out of range this and segmentation fault caused.
> Let's fix it.
> Cc: James Morris <james.l.morris@xxxxxxxxxx>
> Cc: John Johansen <john.johansen@xxxxxxxxxxxxx>
Thanks Hiromu,

but this was fixed a few hours ago

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at