Re: [PATCH 1/4] lockdep: lock_set_subclass() fix

From: Peter Zijlstra
Date: Tue Nov 08 2011 - 04:41:00 EST


On Tue, 2011-11-08 at 17:07 +0800, Yong Zhang wrote:
> So something like below?

that fails to clear/init the class_cache, leading to all sorts of
problems.

Wiping the class_cache just reduces performance somewhat, not wiping
them is disastrous since it can results in wild pointer derefs.

Now we could fix up register_lock_class() to reset the class_cache,
although that's a little tricky and I'm not sure its worth it.

Anyway, I see you just realized the same.. ;-)
--
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/