aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorGabriel Krisman Bertazi <[email protected]>2024-03-13 17:39:12 -0400
committerJens Axboe <[email protected]>2024-03-13 16:08:25 -0600
commit67d1189d1095d471ed7fa426c7e384a7140a5dd7 (patch)
tree3eba0ba911d19f5961e3fa34e3cc53e3bfd6ea84 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parent9219e4a9d4ad57323837f7c3562964e61840b17a (diff)
io_uring: Fix release of pinned pages when __io_uaddr_map fails
Looking at the error path of __io_uaddr_map, if we fail after pinning the pages for any reasons, ret will be set to -EINVAL and the error handler won't properly release the pinned pages. I didn't manage to trigger it without forcing a failure, but it can happen in real life when memory is heavily fragmented. Signed-off-by: Gabriel Krisman Bertazi <[email protected]> Fixes: 223ef4743164 ("io_uring: don't allow IORING_SETUP_NO_MMAP rings on highmem pages") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions