]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/zcrx: improve area validation
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 May 2025 12:17:14 +0000 (13:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 May 2025 15:24:42 +0000 (09:24 -0600)
commitd760d3f59f0d8d0df2895db30d36cf23106d6b05
treee2aa02e429211887faec00dcc2767888f4084889
parent91db6edc573bf238c277602b2ea4b4f4688fdedc
io_uring/zcrx: improve area validation

dmabuf backed area will be taking an offset instead of addresses, and
io_buffer_validate() is not flexible enough to facilitate it. It also
takes an iovec, which may truncate the u64 length zcrx takes. Add a new
helper function for validation.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/0b3b735391a0a8f8971bf0121c19765131fddd3b.1746097431.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c
io_uring/rsrc.h
io_uring/zcrx.c