-
Pavel Begunkov authored
IORING_REGISTER_PBUF_RING can reuse an old struct io_buffer_list if it was created for legacy selected buffer and has been emptied. It violates the requirement that most of the field should stay stable after publish. Always reallocate it instead. Cc: stable@vger.kernel.org Reported-by:
Pumpkin Chang <pumpkin@devco.re> Fixes: 2fcabce2 ("io_uring: disallow mixed provided buffer group registrations") Signed-off-by:
Pavel Begunkov <asml.silence@gmail.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Pavel Begunkov authoredIORING_REGISTER_PBUF_RING can reuse an old struct io_buffer_list if it was created for legacy selected buffer and has been emptied. It violates the requirement that most of the field should stay stable after publish. Always reallocate it instead. Cc: stable@vger.kernel.org Reported-by:
Pumpkin Chang <pumpkin@devco.re> Fixes: 2fcabce2 ("io_uring: disallow mixed provided buffer group registrations") Signed-off-by:
Pavel Begunkov <asml.silence@gmail.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
io_uring NaN GiB