[PATCH 11/11] AppArmor: use the kernel shared workqueue to free vmalloc'ed dfas
john.johansen at canonical.com
Tue Apr 13 08:40:02 UTC 2010
On 04/13/2010 01:22 AM, Stefan Bader wrote:
> Dunno, this looks a bit scary. Assuming the size of table is big enough to
> contain a work struct, but is the struct really never touched again after
> calling the worker function?
attached is a patch that adds the size condition
tsize = tsize < sizeof(struct work_struct) ?
sizeof(struct work_struct) : tsize;
to the allocation path
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2142 bytes
Desc: not available
More information about the kernel-team