On Tue, Mar 12, 2013 at 1:40 PM, Tejun Heo <t...@kernel.org> wrote: > On Tue, Mar 12, 2013 at 01:34:56PM +0800, Lei Wen wrote: >> > Memory areas aren't always zero on allocation. >> >> Shouldn't work structure be allocated with kzalloc? > > It's not required to. work_struct can also be on stack. It's "init" > after all. Also, if you require clearing the memory before initing, > you would be just shifting problem from INIT to memory clearing. >
I see... How about only check those workqueue structure not on stack? For current onstack usage is rare, and should be easier to check with. Thanks, Lei -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/