Commit d876836
committed
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: aa1fa28 ("io_uring: add support for recvmsg()")
Fixes: 0fa03c6 ("io_uring: add support for sendmsg()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent bebdb65 commit d876836
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3001 | 3001 | | |
3002 | 3002 | | |
3003 | 3003 | | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
3004 | 3009 | | |
3005 | 3010 | | |
3006 | 3011 | | |
| |||
3153 | 3158 | | |
3154 | 3159 | | |
3155 | 3160 | | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
3156 | 3166 | | |
3157 | 3167 | | |
3158 | 3168 | | |
| |||
0 commit comments