diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2025-02-12 16:46:46 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-02-12 17:30:52 +0300 |
commit | 8802766324e1f5d414a81ac43365c20142e85603 (patch) | |
tree | 1fc1d4e0cec00fb92b67fbc88ec18633a49f9247 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 06521ac0485effdcc9c792cb0b40ed8e6f2f5fb8 (diff) | |
download | linux-8802766324e1f5d414a81ac43365c20142e85603.tar.xz |
io_uring/kbuf: reallocate buf lists on upgrade
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions