commit | d69e07793f891524c6bbf1e75b9ae69db4450953 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Mon Nov 25 17:04:13 2019 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Nov 26 15:02:53 2019 -0700 |
tree | 054fc5da5cbcbc2922575d0f13b83d5023c96755 | |
parent | 4257c8ca13b084550574b8c9a667d9c90ff746eb [diff] |
net: disallow ancillary data for __sys_{send,recv}msg_file() Only io_uring uses (and added) these, and we want to disallow the use of sendmsg/recvmsg for anything but regular data transfers. Use the newly added prep helper to split the msghdr copy out from the core function, to check for msg_control and msg_controllen settings. If either is set, we return -EINVAL. Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Jens Axboe <axboe@kernel.dk>