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

io_uring: fix 32-bit compatability with sendmsg/recvmsg

We must set MSG_CMSG_COMPAT if we're in compatability mode, otherwise
the iovec import for these commands will not do the right thing and fail
the command with -EINVAL.

Found by running the test suite compiled as 32-bit.

Cc: stable@vger.kernel.org
Fixes: aa1fa28f ("io_uring: add support for recvmsg()")
Fixes: 0fa03c62

 ("io_uring: add support for sendmsg()")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent bebdb65e
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