summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDylan Yudaken <dylany@fb.com>2022-07-14 13:02:57 +0200
committerJens Axboe <axboe@kernel.dk>2022-07-25 02:39:17 +0200
commit72c531f8ef3052c682d39dc21dcb5576afda208c (patch)
treefa5f25b57b6ac98b2af9048f4e604d6547d27f37 /include
parentnet: copy from user before calling __copy_msghdr (diff)
downloadlinux-72c531f8ef3052c682d39dc21dcb5576afda208c.tar.xz
linux-72c531f8ef3052c682d39dc21dcb5576afda208c.zip
net: copy from user before calling __get_compat_msghdr
this is in preparation for multishot receive from io_uring, where it needs to have access to the original struct user_msghdr. functionally this should be a no-op. Acked-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Dylan Yudaken <dylany@fb.com> Link: https://lore.kernel.org/r/20220714110258.1336200-3-dylany@fb.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r--include/net/compat.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/compat.h b/include/net/compat.h
index 595fee069b82..84c163f40f38 100644
--- a/include/net/compat.h
+++ b/include/net/compat.h
@@ -46,9 +46,8 @@ struct compat_rtentry {
unsigned short rt_irtt; /* Initial RTT */
};
-int __get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr __user *umsg,
- struct sockaddr __user **save_addr, compat_uptr_t *ptr,
- compat_size_t *len);
+int __get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr *msg,
+ struct sockaddr __user **save_addr);
int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *,
struct sockaddr __user **, struct iovec **);
int put_cmsg_compat(struct msghdr*, int, int, int, void *);