commit | d876836204897b6d7d911f942084f69a1e9d5c4d | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Thu Feb 27 14:17:49 2020 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Feb 27 14:17:49 2020 -0700 |
tree | 86e904e35ae5a6bdfea02665e869e0be78d7677b | |
parent | bebdb65e077267957f48e43d205d4a16cc7b8161 [diff] |
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: aa1fa28fc73e ("io_uring: add support for recvmsg()") Fixes: 0fa03c624d8f ("io_uring: add support for sendmsg()") Signed-off-by: Jens Axboe <axboe@kernel.dk>