From: Edward Adam Davis <eadavis@sina.com>
To: syzbot+4fae162886e497f72228@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] kernel BUG in create_default_group...
Date: Thu, 22 Oct 2026 17:47:28 +0800 [thread overview]
Message-ID: <20261022094729.104768-1-eadavis@sina.com> (raw)
In-Reply-To: <6ad65cac.5a04d468.191e0a.001c.GAE@google.com>
From: Edward Aadm Davis <eadavis@sina.com>
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 58161ead29e5
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
index eda80c2a2d38..d8e74abe3485 100644
--- a/fs/configfs/dir.c
+++ b/fs/configfs/dir.c
@@ -65,8 +65,24 @@ static void configfs_d_iput(struct dentry * dentry,
iput(inode);
}
+static int configfs_d_revalidate(struct inode *dir, const struct qstr *name,
+ struct dentry *dentry, unsigned int flags)
+{
+ struct inode *inode = d_inode(dentry);
+ struct configfs_dirent * parent_sd = dentry->d_fsdata;
+
+ if (!inode)
+ return -ECHILD;
+
+ if (!configfs_dirent_is_ready(parent_sd))
+ return -ECHILD;
+
+ return 1;
+}
+
const struct dentry_operations configfs_dentry_ops = {
.d_iput = configfs_d_iput,
+ .d_revalidate = configfs_d_revalidate,
};
#ifdef CONFIG_LOCKDEP
next prev parent reply other threads:[~2026-10-22 9:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 18:08 syzbot
2026-10-21 5:30 ` Edward Adam Davis
2026-10-21 5:50 ` syzbot
2026-10-21 6:25 ` [PATCH] configfs: Delay the fop setting to prevent noise generated by open Edward Adam Davis
2026-10-22 10:16 ` [PATCH v2] configfs: Add revalidate for cached dentry to ensure it's ready Edward Adam Davis
2026-10-22 11:11 ` [PATCH v3] " Edward Adam Davis
2026-10-21 9:40 ` [syzbot] kernel BUG in create_default_group Edward Adam Davis
2026-10-21 9:58 ` syzbot
2026-10-22 9:47 ` Edward Adam Davis [this message]
2026-10-22 10:04 ` syzbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261022094729.104768-1-eadavis@sina.com \
--to=eadavis@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+4fae162886e497f72228@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®