+11
−4
Loading
stable inclusion from stable-v6.6.79 commit 146a185f6c05ee263db715f860620606303c4633 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBXANC Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=146a185f6c05ee263db715f860620606303c4633 -------------------------------- commit 8802766324e1f5d414a81ac43365c20142e85603 upstream. 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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 146a185f6c05ee263db715f860620606303c4633) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>