]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix 32-bit compatability with sendmsg/recvmsg
authorJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2020 21:17:49 +0000 (14:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2020 21:17:49 +0000 (14:17 -0700)
commit4c648dc041bcab784c78f123e085512b594976bd
tree86e904e35ae5a6bdfea02665e869e0be78d7677b
parent4389dd640d7d84b5987a348a2c557e9e8239af8b
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: a2d6fdf61d31 ("io_uring: add support for recvmsg()")
Fixes: e3d3b14e7343 ("io_uring: add support for sendmsg()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c