Re: [syzbot] [ext4?] WARNING in ext4_xattr_inode_lookup_create

From: Edward Adam Davis
Date: Tue May 28 2024 - 20:19:28 EST


please test wr in ext4_xattr_inode_lookup_create

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8f6a15f095a6

diff --git a/fs/dcache.c b/fs/dcache.c
index 407095188f83..e2f1a3f92ce9 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1551,8 +1551,8 @@ void shrink_dcache_for_umount(struct super_block *sb)
WARN(down_read_trylock(&sb->s_umount), "s_umount should've been locked");

dentry = sb->s_root;
- sb->s_root = NULL;
do_one_tree(dentry);
+ sb->s_root = NULL;

while (!hlist_bl_empty(&sb->s_roots)) {
dentry = dget(hlist_bl_entry(hlist_bl_first(&sb->s_roots), struct dentry, d_hash));