From: Hillf Danton <hdanton@sina.com>
To: syzbot <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:42:04 +0800 [thread overview]
Message-ID: <20240313124204.2356-1-hdanton@sina.com> (raw)
In-Reply-To: <0000000000003ea6ba0613882a96@google.com>
On Wed, 13 Mar 2024 03:23:25 -0700
> syzbot found the following issue on:
>
> HEAD commit: 0f1a876682f0 Merge tag 'vfs-6.9.uuid' of git://git.kernel...
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=116b38d1180000
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
--- x/fs/libfs.c
+++ y/fs/libfs.c
@@ -2012,6 +2012,8 @@ static struct dentry *prepare_anon_dentr
dentry = d_alloc_anon(sb);
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) {
@@ -2029,9 +2031,6 @@ static struct dentry *prepare_anon_dentr
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:42 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
2024-03-13 12:55 ` syzbot
2024-03-13 12:42 ` Hillf Danton [this message]
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=20240313124204.2356-1-hdanton@sina.com \
--to=hdanton@sina.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®