diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2025-02-12 16:46:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 16:11:20 +0300 |
commit | 2a5febbef40ce968e295a7aeaa5d5cbd9e3e5ad4 (patch) | |
tree | 6a0c7479d9bc291857e0f122c86a0730a49d3280 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | cda72d861dd3f6299a6045ded5360d01eeb67625 (diff) | |
download | linux-2a5febbef40ce968e295a7aeaa5d5cbd9e3e5ad4.tar.xz |
io_uring/kbuf: reallocate buf lists on upgrade
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: 2fcabce2d7d34 ("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>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions