io_uring/rsrc: improve regbuf iov validation
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 16 Feb 2026 13:55:30 +0000 (13:55 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Feb 2026 15:15:38 +0000 (08:15 -0700)
commit2e02f9efdbc6c73544e315b7eb85e55a59776b6f
tree3151900dcfc0dea594ec115634e6d93183c106a8
parent046fcc83ac1ba8747f0bcae13f5e433802735245
io_uring/rsrc: improve regbuf iov validation

Deduplicate io_buffer_validate() calls by moving the checks into
io_sqe_buffer_register(). Now we also don't need special handling in
io_buffer_validate() passing through buffer removal requests. I also
was using it as a cleanup before some other changes.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c