summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDylan Yudaken <dylany@fb.com>2022-06-13 12:11:56 +0200
committerJens Axboe <axboe@kernel.dk>2022-06-13 13:13:31 +0200
commitc6e9fa5c0ab811f4bec36a96337f4b1bb77d142c (patch)
treecf78b3f306d8af65117425aeeb3f70b550d884f7 /kernel
parentio_uring: fix index calculation (diff)
downloadlinux-c6e9fa5c0ab811f4bec36a96337f4b1bb77d142c.tar.xz
linux-c6e9fa5c0ab811f4bec36a96337f4b1bb77d142c.zip
io_uring: fix types in provided buffer ring
The type of head needs to match that of tail in order for rollover and comparisons to work correctly. Without this change the comparison of tail to head might incorrectly allow io_uring to use a buffer that userspace had not given it. Fixes: c7fb19428d67 ("io_uring: add support for ring mapped supplied buffers") Signed-off-by: Dylan Yudaken <dylany@fb.com> Link: https://lore.kernel.org/r/20220613101157.3687-3-dylany@fb.com Reviewed-by: Hao Xu <howeyxu@tencent.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions