From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+c1751b6739d83d70bb75@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [ntfs3?] possible deadlock in ntfs_file_mmap
Date: Sun, 28 Jul 2024 06:40:40 +0800 [thread overview]
Message-ID: <20240727224040.2248-1-hdanton@sina.com> (raw)
In-Reply-To: <00000000000038f243061e3ad3fe@google.com>
On Sat, 27 Jul 2024 06:44:20 -0700
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 2f8c4f506285 Merge tag 'auxdisplay-for-v6.11-tag1' of git:..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12e875a1980000
#syz test upstream 2f8c4f506285
--- x/fs/ntfs3/file.c
+++ y/fs/ntfs3/file.c
@@ -365,7 +365,10 @@ static int ntfs_file_mmap(struct file *f
}
if (ni->i_valid < to) {
- inode_lock(inode);
+ if (!inode_trylock(inode)) {
+ err = -EDEADLK;
+ goto out;
+ }
err = ntfs_extend_initialized_size(file, ni,
ni->i_valid, to);
inode_unlock(inode);
--
next prev parent reply other threads:[~2024-07-27 22:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-15 7:17 [syzbot] [ntfs3?] possible deadlock in ntfs_file_mmap syzbot
2024-07-27 13:44 ` syzbot
2024-07-27 22:40 ` Hillf Danton [this message]
2024-07-27 23:03 ` syzbot
2024-07-27 21:30 ` 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=20240727224040.2248-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+c1751b6739d83d70bb75@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