diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-12-02 16:28:46 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-12-03 07:04:30 -0700 |
commit | f499a021ea8c9f70321fce3d674d8eca5bbeee2c (patch) | |
tree | 9a0c52d1120d8df787c3dde47e2450037134507f /include | |
parent | 03b1230ca12a12e045d83b0357792075bf94a1e0 (diff) | |
download | linux-f499a021ea8c9f70321fce3d674d8eca5bbeee2c.tar.bz2 |
io_uring: ensure async punted connect requests copy data
Just like commit f67676d160c6 for read/write requests, this one ensures
that the sockaddr data has been copied for IORING_OP_CONNECT if we need
to punt the request to async context.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/socket.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h index 903507fb901f..2d2313403101 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -406,9 +406,8 @@ extern int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr, int __user *upeer_addrlen, int flags); extern int __sys_socket(int family, int type, int protocol); extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen); -extern int __sys_connect_file(struct file *file, - struct sockaddr __user *uservaddr, int addrlen, - int file_flags); +extern int __sys_connect_file(struct file *file, struct sockaddr_storage *addr, + int addrlen, int file_flags); extern int __sys_connect(int fd, struct sockaddr __user *uservaddr, int addrlen); extern int __sys_listen(int fd, int backlog); |