summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorPenglei Jiang <superman.xpt@gmail.com>2025-06-17 09:56:44 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-06 11:01:47 +0200
commit8b8a366e8cb266883bf794b9efc0513c3c356d04 (patch)
tree8b4f2465dfd1af4cf86ba6c1c09866f78f21e9f0 /include/net/aligned_data.h
parent6d56ea133adf0389b216ba6e47f7f35e95776713 (diff)
io_uring: fix potential page leak in io_sqe_buffer_register()
Commit e1c75831f682eef0f68b35723437146ed86070b1 upstream. If allocation of the 'imu' fails, then the existing pages aren't unpinned in the error path. This is mostly a theoretical issue, requiring fault injection to hit. Move unpin_user_pages() to unified error handling to fix the page leak issue. Fixes: d8c2237d0aa9 ("io_uring: add io_pin_pages() helper") Signed-off-by: Penglei Jiang <superman.xpt@gmail.com> Link: https://lore.kernel.org/r/20250617165644.79165-1-superman.xpt@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions