diff options
author | Jens Axboe <axboe@kernel.dk> | 2025-06-26 21:17:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-07-06 12:04:25 +0300 |
commit | c7d15ba11c8561c5f325ffeb27ed8a4e82d4d322 (patch) | |
tree | 09223315dce1dcc60d0b8fa5b33bcd341ca10d34 /scripts/gdb/linux/xarray.py | |
parent | c124f40bbdff1f6d88ed325aa5710d77756cdc50 (diff) | |
download | linux-c7d15ba11c8561c5f325ffeb27ed8a4e82d4d322.tar.xz |
io_uring/kbuf: flag partial buffer mappings
Commit 178b8ff66ff827c41b4fa105e9aabb99a0b5c537 upstream.
A previous commit aborted mapping more for a non-incremental ring for
bundle peeking, but depending on where in the process this peeking
happened, it would not necessarily prevent a retry by the user. That can
create gaps in the received/read data.
Add struct buf_sel_arg->partial_map, which can pass this information
back. The networking side can then map that to internal state and use it
to gate retry as well.
Since this necessitates a new flag, change io_sr_msg->retry to a
retry_flags member, and store both the retry and partial map condition
in there.
Cc: stable@vger.kernel.org
Fixes: 26ec15e4b0c1 ("io_uring/kbuf: don't truncate end buffer for multiple buffer peeks")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions