Lock debugging: detect incorrect freeing of live locks

configname: CONFIG_DEBUG_LOCK_ALLOC

Linux Kernel Configuration
└─>Lock debugging: detect incorrect freeing of live locks
In linux kernel since version 2.6.18 (release Date: 2006-09-19)  
This feature will check whether any held lock (spinlock, rwlock,
mutex or rwsem) is incorrectly freed by the kernel, via any of the
memory-freeing routines (kfree(), kmem_cache_free(), free_pages(),
vfree(), etc.), whether a live lock is incorrectly reinitialized via
spin_lock_init()/mutex_init()/etc., or whether there is any lock
held during task exit.