aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2023-02-03 16:28:40 -0500
committerAndrew Morton <[email protected]>2023-02-09 16:51:30 -0800
commitc643e6ebedb435bcf863001f5e69a578f2658055 (patch)
tree278d5a939aea70c67e3d379de241d48895e8824b /tools/perf/scripts/python/event_analyzing_sample.py
parent6f74c0ec2095335158015ce29b708e775b9cea3a (diff)
mm: fix memcpy_from_file_folio() integer underflow
If we have a HIGHMEM system with a large folio, 'offset' may be larger than PAGE_SIZE, and so min_t will cap at 'len' instead of the intended end-of-page. That can overflow into the next page which is likely to be unmapped and fault, but could theoretically copy the wrong data. Link: https://lkml.kernel.org/r/[email protected] Fixes: 00cdf76012ab ("mm: add memcpy_from_file_folio()") Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: "Fabio M. De Francesco" <[email protected]> Cc: Ira Weiny <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions