]> 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)
commit17704a7f5e5bdbe9f6d394d2f0203bd3cb5809ff
tree86e904e35ae5a6bdfea02665e869e0be78d7677b
parent0d83f666994fd8c4a5e3b0b2dae190a7ca214efc
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: eeb0dfab6998 ("io_uring: add support for recvmsg()")
Fixes: 5d37e9e3e0ad ("io_uring: add support for sendmsg()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c