aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/syscall-counts-report
diff options
context:
space:
mode:
authorMel Gorman <[email protected]>2021-06-24 18:40:07 -0700
committerLinus Torvalds <[email protected]>2021-06-24 19:40:54 -0700
commitb3b64ebd38225d8032b5db42938d969b602040c2 (patch)
treec5002be80ee46f6ee3e49e1c34a3ed5c3dc2458a /tools/perf/scripts/python/bin/syscall-counts-report
parentb08e50dd64489e3997029d204f761cb57a3762d2 (diff)
mm/page_alloc: do bulk array bounds check after checking populated elements
Dan Carpenter reported the following The patch 0f87d9d30f21: "mm/page_alloc: add an array-based interface to the bulk page allocator" from Apr 29, 2021, leads to the following static checker warning: mm/page_alloc.c:5338 __alloc_pages_bulk() warn: potentially one past the end of array 'page_array[nr_populated]' The problem can occur if an array is passed in that is fully populated. That potentially ends up allocating a single page and storing it past the end of the array. This patch returns 0 if the array is fully populated. Link: https://lkml.kernel.org/r/[email protected] Fixes: 0f87d9d30f21 ("mm/page_alloc: add an array-based interface to the bulk page allocator") Signed-off-by: Mel Gorman <[email protected]> Reported-by: Dan Carpenter <[email protected]> Cc: Jesper Dangaard Brouer <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-report')
0 files changed, 0 insertions, 0 deletions