summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorYuezhang Mo <Yuezhang.Mo@sony.com>2024-10-28 06:23:36 +0300
committerNamjae Jeon <linkinjeon@kernel.org>2024-11-25 11:08:20 +0300
commit184fa506e392eb78364d9283c961217ff2c0617b (patch)
treef7395248bfa08c295714d2400c5e3d6e4b8b3533 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent9f16d5e6f220661f73b36a4be1b21575651d8833 (diff)
downloadlinux-184fa506e392eb78364d9283c961217ff2c0617b.tar.xz
exfat: fix out-of-bounds access of directory entries
In the case of the directory size is greater than or equal to the cluster size, if start_clu becomes an EOF cluster(an invalid cluster) due to file system corruption, then the directory entry where ei->hint_femp.eidx hint is outside the directory, resulting in an out-of-bounds access, which may cause further file system corruption. This commit adds a check for start_clu, if it is an invalid cluster, the file or directory will be treated as empty. Cc: stable@vger.kernel.org Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com> Co-developed-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions