[PATCH 11/11] AppArmor: use the kernel shared workqueue to free vmalloc'ed dfas

John Johansen 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...
Name: work-queue-vmalloc.patch
Type: text/x-diff
Size: 2142 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20100413/9e48a7c6/attachment.patch>


More information about the kernel-team mailing list