diff options
author | 2025-04-10 19:45:27 +0800 | |
---|---|---|
committer | 2025-04-14 13:05:59 +0200 | |
commit | 1363c134ade81e425873b410566e957fecebb261 (patch) | |
tree | 68e4712cf805cbc9e44cd58ea288be27838a29b6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fs/fs_context: Mark an unlikely if condition with unlikely() in vfs_parse_monolithic_sep() (diff) | |
download | linux-rng-1363c134ade81e425873b410566e957fecebb261.tar.xz linux-rng-1363c134ade81e425873b410566e957fecebb261.zip |
fs/filesystems: Fix potential unsigned integer underflow in fs_name()
fs_name() has @index as unsigned int, so there is underflow risk for
operation '@index--'.
Fix by breaking the for loop when '@index == 0' which is also more proper
than '@index <= 0' for unsigned integer comparison.
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/20250410-fix_fs-v1-1-7c14ccc8ebaa@quicinc.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions