From: syzbot <syzbot+8f8fe64a30c50b289a18@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] Re: general protection fault in exfat_get_dentry_cached()
Date: Fri, 13 Dec 2024 00:17:13 -0800 [thread overview]
Message-ID: <675bed89.050a0220.cd16f.0042.GAE@google.com> (raw)
In-Reply-To: <674f4e43.050a0220.17bd51.004e.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: Re: general protection fault in exfat_get_dentry_cached()
Author: dmantipov@yandex.ru
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f932fb9b40749d1c9a539d89bb3e288c077aafe5
diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c
index 97d2774760fe..c356bde623bf 100644
--- a/fs/exfat/namei.c
+++ b/fs/exfat/namei.c
@@ -329,10 +329,7 @@ static int exfat_find_empty_entry(struct inode *inode,
EXFAT_B_TO_CLU(i_size_read(inode), sbi), ei->flags);
while ((dentry = exfat_search_empty_slot(sb, &hint_femp, p_dir,
- num_entries, es)) < 0) {
- if (dentry == -EIO)
- break;
-
+ num_entries, es)) == -ENOSPC) {
if (exfat_check_max_dentries(inode))
return -ENOSPC;
@@ -395,6 +392,9 @@ static int exfat_find_empty_entry(struct inode *inode,
inode->i_blocks += sbi->cluster_size >> 9;
}
+ if (dentry < 0)
+ return dentry;
+
p_dir->dir = exfat_sector_to_cluster(sbi, es->bh[0]->b_blocknr);
p_dir->size -= dentry / sbi->dentries_per_clu;
next prev parent reply other threads:[~2024-12-13 8:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-03 18:30 [syzbot] [exfat?] general protection fault in exfat_get_dentry_cached syzbot
2024-12-11 22:55 ` syzbot
2024-12-12 17:45 ` syzbot
2024-12-13 8:17 ` syzbot [this message]
2024-12-13 14:13 ` [syzbot] Re: general protection fault in exfat_get_dentry_cached() syzbot
2025-01-25 21:55 ` [syzbot] [exfat?] general protection fault in exfat_get_dentry_cached 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=675bed89.050a0220.cd16f.0042.GAE@google.com \
--to=syzbot+8f8fe64a30c50b289a18@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.