On Mon, Dec 16, 2024 at 3:50 PM Yuezhang.Mo@xxxxxxxx <Yuezhang.Mo@xxxxxxxx> wrote: > > In __exfat_free_cluster(), the cluster chain is traversed until the > EOF cluster. If the cluster chain includes a loop due to file system > corruption, the EOF cluster cannot be traversed, resulting in an > infinite loop. > > To avoid this infinite loop, this commit changes to only traverse and > free the number of clusters indicated by the file size. > > Reported-by: syzbot+1de5a37cb85a2d536330@xxxxxxxxxxxxxxxxxxxxxxxxx > Closes: https://syzkaller.appspot.com/bug?extid=1de5a37cb85a2d536330 > Tested-by: syzbot+1de5a37cb85a2d536330@xxxxxxxxxxxxxxxxxxxxxxxxx > Fixes: 31023864e67a ("exfat: add fat entry operations") > Signed-off-by: Yuezhang Mo <Yuezhang.Mo@xxxxxxxx> > Suggested-by: Namjae Jeon <linkinjeon@xxxxxxxxxx> Applied it to #dev. Thanks!