mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+42986aeeddfd7ed93c8b@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [ext4?] INFO: task hung in vfs_rmdir (2)
Date: Mon,  3 Jun 2024 18:42:11 +0800	[thread overview]
Message-ID: <20240603104211.1526-1-hdanton@sina.com> (raw)
In-Reply-To: <00000000000054d8540619f43b86@google.com>

On Sun, 02 Jun 2024 20:50:18 -0700
> syzbot found the following issue on:
> 
> HEAD commit:    4a4be1ad3a6e Revert "vfs: Delete the associated dentry whe..
> git tree:       upstream
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=103820f2980000

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

--- x/fs/namei.c
+++ y/fs/namei.c
@@ -4198,6 +4198,8 @@ int vfs_rmdir(struct mnt_idmap *idmap, s
 
 	if (!dir->i_op->rmdir)
 		return -EPERM;
+	if (dir == dentry->d_inode)
+		return -EDEADLK;
 
 	dget(dentry);
 	inode_lock(dentry->d_inode);
--

  parent reply	other threads:[~2024-06-03 10:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-03  3:50 syzbot
2024-06-03  3:56 ` Al Viro
2024-06-03  4:14   ` syzbot
2024-06-03  4:21   ` Al Viro
2024-06-03  4:22     ` Al Viro
2024-06-03  4:34     ` syzbot
2024-06-03 10:42 ` Hillf Danton [this message]
2024-06-03 11:08   ` syzbot
2024-06-03 11:27 ` Jan Kara
2025-10-08  5:52 ` [syzbot] [exfat] " 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=20240603104211.1526-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+42986aeeddfd7ed93c8b@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®