summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAldo Ariel Panzardo <qwe.aldo@gmail.com>2026-09-15 16:52:23 -0300
committerViacheslav Dubeyko <slava@dubeyko.com>2026-09-17 12:33:27 -0700
commitc298301279bd233363de3aca5a32c055bf2f3239 (patch)
treeb7c8669c870e8961366475b1a6683d8b5bb7c957 /tools/perf/scripts/python/stackcollapse.py
parentc59ddba036a4bc3c0f5705dd6b37c7889b191bcc (diff)
downloadlinux-c298301279bd233363de3aca5a32c055bf2f3239.tar.gz
linux-c298301279bd233363de3aca5a32c055bf2f3239.zip
nilfs2: validate segment number in nilfs_sufile_get_suinfo()
nilfs_sufile_get_suinfo() subtracts the caller-provided segment number from the total number of segments without first checking its range. If the requested number is greater than the total, the unsigned subtraction wraps and the function may process segment numbers outside the filesystem. Cache the total while holding the metadata semaphore and return no entries when the starting segment number is at or beyond the end. Fixes: 6c98cd4ecb0a ("nilfs2: segment usage file") Cc: stable+noautosel@kernel.org # Non-fatal bug fix; defer backport until a real issue is reported Signed-off-by: Aldo Ariel Panzardo <qwe.aldo@gmail.com> Acked-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Reviewed-by: Viacheslav Dubeyko <slava@dubeyko.com> Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions