Re: [RFC PATCH] lockdep: Keep dynamic key hash nodes in lockdep-owned storage

From: Bart Van Assche

Date: Wed Oct 21 2026 - 23:02:09 EST


On 10/21/26 4:56 AM, Vlad Poenaru wrote:
#define MAX_LOCKDEP_ENTRIES 16384UL
#define MAX_LOCKDEP_CHAINS_BITS 15
+#define MAX_LOCKDEP_DYNAMIC_KEYS 1024UL
#define MAX_STACK_TRACE_ENTRIES 262144UL
#define STACK_TRACE_HASH_SIZE 8192

This patch introduces a new hard upper limit on the number of dynamic
lockdep keys. That's unfortunate but I assume it's not possible to
eliminate this hard upper bound if the key storage is owned by
lockdep?

Thanks,

Bart.