Skip to content
Commit 223ef474 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: don't allow IORING_SETUP_NO_MMAP rings on highmem pages

On at least arm32, but presumably any arch with highmem, if the
application passes in memory that resides in highmem for the rings,
then we should fail that ring creation. We fail it with -EINVAL, which
is what kernels that don't support IORING_SETUP_NO_MMAP will do as well.

Cc: stable@vger.kernel.org
Fixes: 03d89a2d

 ("io_uring: support for user allocated memory for rings/sqes")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 1658633c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment