summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2026-09-22 22:59:42 -0700
committerCarlos Maiolino <cem@kernel.org>2026-10-05 10:04:42 +0200
commit329750292e9dfbb594b375d7b30cf5ddb58b7bb9 (patch)
tree2d34df3a3c5c45932cd8b130d53b343d6448a925 /tools/perf/scripts/python/stackcollapse.py
parent23067b4f98f536ff3341fde04d52a331b2ebdf76 (diff)
xfarray: don't crash when sorting if array element crosses a folio
LOLLM points out that if an array element crosses a folio boundary, xfile_get_folio returns a NULL folio pointer. If this happens, si->folio is also set to NULL, and calling folio_pos/folio_address will just crash the kernel. Teach this function to handle this condition by falling back to reading the array element into scratchpad memory. Cc: stable@vger.kernel.org # v6.6 Fixes: cf36f4f64c2d4e ("xfs: cache pages used for xfarray quicksort convergence") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Assisted-by: LOLLM # finding obvious bugs Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions