Files
linux-stable-mirror/io_uring
Jens AxboeandSasha Levin ca762fa01f io_uring/sync: validate passed in offset
[ Upstream commit 649dd18f55 ]

Check if the passed in offset is negative once cast to sync->off. This
ensures that -EINVAL is returned for that case, like it would be for
sync_file_range(2).

Fixes: c992fe2925 ("io_uring: add fsync support")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:19:27 -05:00
..
2025-03-22 12:50:45 -07:00