diff options
author | Yuezhang Mo <Yuezhang.Mo@sony.com> | 2025-03-17 05:53:10 +0300 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2025-03-27 15:18:03 +0300 |
commit | b0522303f67255926b946aa66885a0104d1b2980 (patch) | |
tree | dc334e9fc1a9b32c9d028b463b517117087bd870 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 1bb7ff4204b6d4927e982cd256286c09ed4fd8ca (diff) | |
download | linux-b0522303f67255926b946aa66885a0104d1b2980.tar.xz |
exfat: fix the infinite loop in exfat_find_last_cluster()
In exfat_find_last_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.
If the number of clusters indicated by the file size is inconsistent
with the cluster chain length, exfat_find_last_cluster() will return
an error, so if this inconsistency is found, the traversal can be
aborted without traversing to the EOF cluster.
Reported-by: syzbot+f7d147e6db52b1e09dba@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=f7d147e6db52b1e09dba
Tested-by: syzbot+f7d147e6db52b1e09dba@syzkaller.appspotmail.com
Fixes: 31023864e67a ("exfat: add fat entry operations")
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions