Re: 3.6rc6 slab corruption.

From: Linus Torvalds
Date: Tue Sep 18 2012 - 16:36:51 EST


On Tue, Sep 18, 2012 at 1:24 PM, David Rientjes <rientjes@xxxxxxxxxx> wrote:
> On Tue, 18 Sep 2012, Konrad Rzeszutek Wilk wrote:
>
>> u32 elements;
>> + struct mutex lock;
>
> This should be a spinlock.

I don't think it can be a spinlock since it needs to protect the
user-space accesses (which Konrad admittedly didn't do, but that's
just a bug)

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/