From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+9b5ec5ccf7234cc6cb86@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [fs?] WARNING in stashed_dentry_prune
Date: Wed, 13 Mar 2024 20:30:30 +0800 [thread overview]
Message-ID: <tencent_0CC819694F840D98A5AA8DF9923F5DA6DD07@qq.com> (raw)
In-Reply-To: <0000000000003ea6ba0613882a96@google.com>
please test w in stashed_dentry_prune
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
diff --git a/fs/libfs.c b/fs/libfs.c
index 0d14ae808fcf..67dc503272eb 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -2013,6 +2013,8 @@ static struct dentry *prepare_anon_dentry(struct dentry **stashed,
if (!dentry)
return ERR_PTR(-ENOMEM);
+ /* Store address of location where dentry's supposed to be stashed. */
+ dentry->d_fsdata = stashed;
inode = new_inode_pseudo(sb);
if (!inode) {
dput(dentry);
@@ -2029,9 +2031,6 @@ static struct dentry *prepare_anon_dentry(struct dentry **stashed,
WARN_ON_ONCE(!S_ISREG(inode->i_mode));
WARN_ON_ONCE(!IS_IMMUTABLE(inode));
- /* Store address of location where dentry's supposed to be stashed. */
- dentry->d_fsdata = stashed;
-
/* @data is now owned by the fs */
d_instantiate(dentry, inode);
return dentry;
next prev parent reply other threads:[~2024-03-13 12:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 10:23 syzbot
2024-03-13 12:30 ` Edward Adam Davis [this message]
2024-03-13 12:55 ` syzbot
2024-03-13 12:42 ` Hillf Danton
2024-03-13 13:20 ` syzbot
2024-03-13 13:07 ` [PATCH] libfs: fix warning " Edward Adam Davis
2024-03-14 11:02 ` Christian Brauner
2024-03-14 10:49 ` [syzbot] [fs?] WARNING " Christian Brauner
2024-03-14 10:57 ` [syzbot] " syzbot
[not found] <20240314-impuls-hofiert-3682a611e841@brauner>
2024-03-14 18:48 ` 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=tencent_0CC819694F840D98A5AA8DF9923F5DA6DD07@qq.com \
--to=eadavis@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+9b5ec5ccf7234cc6cb86@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®