Files
linux/io_uring
Penglei Jiang b2e92c42ef io_uring: fix potential page leak in io_sqe_buffer_register()
[ Upstream commit e1c75831f6 ]

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: d8c2237d0a ("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: Sasha Levin <sashal@kernel.org>
2025-06-27 11:13:39 +01:00
..
2025-01-28 15:10:40 -07:00
2025-02-17 05:34:45 -07:00
2025-02-17 16:43:04 -08:00
2025-03-07 13:41:08 -07:00
2025-02-28 19:35:37 -07:00
2022-07-24 18:39:11 -06:00
2024-11-13 11:44:30 -05:00
2024-02-09 09:04:39 -07:00
2024-02-09 09:04:39 -07:00
2025-02-24 12:10:38 -07:00