Re: [PATCH v2] lockdep: Fix subclass resource leak in lockdep_unregister_key()

From: Bart Van Assche

Date: Mon Jul 27 2026 - 15:52:35 EST


On 7/27/26 11:23 AM, Nilay Shroff wrote:
Fix this by instructing lockdep_unregister_key() to look ahead across
the entire valid subclass allocation block range
(MAX_LOCKDEP_SUBCLASSES), ensuring that all related subclass matrix
definitions are completely zapped alongside the primary key.

Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>