summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAldo Ariel Panzardo <qwe.aldo@gmail.com>2026-09-15 08:13:51 -0300
committerViacheslav Dubeyko <slava@dubeyko.com>2026-09-18 19:57:30 -0700
commit8393ce53a5497552320a34794549c18503dd491b (patch)
tree412c0212d327b775cc31b69794511c07e57159aa /tools/perf/scripts/python
parentcb6702e63e0a16afd83875294e5ce53becdd1b1f (diff)
downloadlinux-8393ce53a5497552320a34794549c18503dd491b.tar.gz
linux-8393ce53a5497552320a34794549c18503dd491b.zip
nilfs2: validate file block counts during recovery
nilfs_scan_dsync_log() trusts the block counts in each on-disk file information entry. If fi_ndatablk is greater than fi_nblocks, the data block loop can consume excessive summary entries and the later subtraction used to derive the number of node blocks underflows. Reject inconsistent file information entries before consuming their block information. Fixes: 0f3e1c7f23f8 ("nilfs2: recovery functions") 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> Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions