[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <000000000000feec07060add05ad@google.com>
Date: Thu, 23 Nov 2023 18:51:04 -0800
From: syzbot <syzbot+c5b339d16ffa61fd512d@...kaller.appspotmail.com>
To: linux-kernel@...r.kernel.org
Subject: Re: [syzbot] [ntfs3?] WARNING in indx_insert_into_buffer
For archival purposes, forwarding an incoming command email to
linux-kernel@...r.kernel.org.
***
Subject: [ntfs3?] WARNING in indx_insert_into_buffer
Author: lizhi.xu@...driver.com
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 037266a5f723
diff --git a/fs/ntfs3/index.c b/fs/ntfs3/index.c
index cf92b2433f7a..a2fe5458d41c 100644
--- a/fs/ntfs3/index.c
+++ b/fs/ntfs3/index.c
@@ -1905,6 +1905,8 @@ indx_insert_into_buffer(struct ntfs_index *indx, struct ntfs_inode *ni,
}
if (err) {
+ if (used1 > le32_to_cpu(hdr1->used))
+ used1 = le32_to_cpu(hdr1->used);
/*
* Undo critical operations.
*/
Powered by blists - more mailing lists