summaryrefslogtreecommitdiff
path: root/fs/overlayfs/namei.c
diff options
context:
space:
mode:
authorYuezhang Mo <Yuezhang.Mo@sony.com>2024-12-16 13:39:42 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-17 13:36:10 +0100
commit1e92afe80197fd274d582b7972350b054110124c (patch)
tree79f1f25c3ba404e5c4bb9835885d0165b540b12e /fs/overlayfs/namei.c
parentdc1d7afceb982e8f666e70a582e6b5aa806de063 (diff)
downloadlinux-1e92afe80197fd274d582b7972350b054110124c.tar.gz
linux-1e92afe80197fd274d582b7972350b054110124c.tar.bz2
linux-1e92afe80197fd274d582b7972350b054110124c.zip
exfat: fix the infinite loop in __exfat_free_cluster()
[ Upstream commit a5324b3a488d883aa2d42f72260054e87d0940a0 ] 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. This commit uses the total number of clusters to prevent this infinite loop. Reported-by: syzbot+1de5a37cb85a2d536330@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=1de5a37cb85a2d536330 Tested-by: syzbot+1de5a37cb85a2d536330@syzkaller.appspotmail.com Fixes: 31023864e67a ("exfat: add fat entry operations") Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com> Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/overlayfs/namei.c')
0 files changed, 0 insertions, 0 deletions