From: "Yuezhang.Mo@sony.com" <Yuezhang.Mo@sony.com>
To: syzbot <syzbot+f7d147e6db52b1e09dba@syzkaller.appspotmail.com>,
"bp@alien8.de" <bp@alien8.de>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"hpa@zytor.com" <hpa@zytor.com>,
"linkinjeon@kernel.org" <linkinjeon@kernel.org>,
"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"mingo@redhat.com" <mingo@redhat.com>,
"sj1557.seo@samsung.com" <sj1557.seo@samsung.com>,
"syzkaller-bugs@googlegroups.com"
<syzkaller-bugs@googlegroups.com>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"x86@kernel.org" <x86@kernel.org>
Subject: Re: [syzbot] [exfat?] INFO: task hung in __blockdev_direct_IO (4)
Date: Mon, 17 Mar 2025 03:16:44 +0000 [thread overview]
Message-ID: <PUZPR04MB6316E1DB152B8065EB4615C781DF2@PUZPR04MB6316.apcprd04.prod.outlook.com> (raw)
In-Reply-To: <67d699c1.050a0220.14e108.0065.GAE@google.com>
[-- Attachment #1: Type: text/plain, Size: 9 bytes --]
#syz test
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-exfat-fix-the-infinite-loop-in-exfat_find_last_clust.patch --]
[-- Type: text/x-patch; name="0001-exfat-fix-the-infinite-loop-in-exfat_find_last_clust.patch", Size: 836 bytes --]
From f5fa72ad09258943346f31efcc659646b576ba6b Mon Sep 17 00:00:00 2001
From: Yuezhang Mo <Yuezhang.Mo@sony.com>
Date: Mon, 17 Mar 2025 10:53:10 +0800
Subject: [PATCH] exfat: fix the infinite loop in exfat_find_last_cluster()
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
---
fs/exfat/fatent.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/exfat/fatent.c b/fs/exfat/fatent.c
index 9e5492ac409b..917e31328cdc 100644
--- a/fs/exfat/fatent.c
+++ b/fs/exfat/fatent.c
@@ -262,7 +262,7 @@ int exfat_find_last_cluster(struct super_block *sb, struct exfat_chain *p_chain,
clu = next;
if (exfat_ent_get(sb, clu, &next))
return -EIO;
- } while (next != EXFAT_EOF_CLUSTER);
+ } while (next != EXFAT_EOF_CLUSTER && count <= p_chain->size);
if (p_chain->size != count) {
exfat_fs_error(sb,
--
2.43.0
next prev parent reply other threads:[~2025-03-17 3:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-16 9:28 syzbot
2025-03-17 3:16 ` Yuezhang.Mo [this message]
2025-03-17 3:42 ` 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=PUZPR04MB6316E1DB152B8065EB4615C781DF2@PUZPR04MB6316.apcprd04.prod.outlook.com \
--to=yuezhang.mo@sony.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linkinjeon@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=sj1557.seo@samsung.com \
--cc=syzbot+f7d147e6db52b1e09dba@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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®