aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorWojciech Lukowicz <[email protected]>2023-04-01 19:50:39 +0000
committerJens Axboe <[email protected]>2023-04-01 22:52:12 +0000
commitb4a72c0589fdea6259720375426179888969d6a2 (patch)
treeada64f1c07c40c8b248bb1807d6af15db18fc18f /tools/perf/builtin-annotate.c
parentio_uring: fix return value when removing provided buffers (diff)
downloadkernel-b4a72c0589fdea6259720375426179888969d6a2.tar.gz
kernel-b4a72c0589fdea6259720375426179888969d6a2.zip
io_uring: fix memory leak when removing provided buffers
When removing provided buffers, io_buffer structs are not being disposed of, leading to a memory leak. They can't be freed individually, because they are allocated in page-sized groups. They need to be added to some free list instead, such as io_buffers_cache. All callers already hold the lock protecting it, apart from when destroying buffers, so had to extend the lock there. Fixes: cc3cec8367cb ("io_uring: speedup provided buffer handling") Signed-off-by: Wojciech Lukowicz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions