summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2025-06-25 10:17:06 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-06 11:01:48 +0200
commitc8d152b8c1968d3fcc5ce059225fef40dec4bca9 (patch)
tree70a39203322c4049b2d37b3c26e5be0e08a94e24 /include/net/aligned_data.h
parentb8be3ae062e63e5efade5e22995ac0077abe0070 (diff)
io_uring/net: mark iov as dynamically allocated even for single segments
Commit 9a709b7e98e6fa51600b5f2d24c5068efa6d39de upstream. A bigger array of vecs could've been allocated, but io_ring_buffers_peek() still decided to cap the mapped range depending on how much data was available. Hence don't rely on the segment count to know if the request should be marked as needing cleanup, always check upfront if the iov array is different than the fast_iov array. 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 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions