[PATCH 0/3] fix potential infinite loop in debugfs_remove_recursive

From: yu kuai
Date: Thu Nov 14 2019 - 22:20:54 EST


The first patch add a new enum type for 'dentry_d_lock_class'.The second
patch use the new enum type in 'simple_empty' to avoid confusion for
lockdep. The last patch fix potential infinite loop in
debugfs_remove_recursive by using 'simple_empty' instead of 'list_empty'.

yu kuai (3):
dcache: add a new enum type for 'dentry_d_lock_class'
fs/libfs.c: use 'spin_lock_nested' when taking 'd_lock' for dentry in
simple_empty
debugfs: fix potential infinite loop in debugfs_remove_recursive

fs/debugfs/inode.c | 7 +++++--
fs/libfs.c | 4 ++--
include/linux/dcache.h | 3 ++-
3 files changed, 9 insertions(+), 5 deletions(-)

--
2.7.4