summaryrefslogtreecommitdiff
path: root/include/net/compat.h
diff options
context:
space:
mode:
authorDylan Yudaken <dylany@fb.com>2022-07-14 14:02:57 +0300
committerJens Axboe <axboe@kernel.dk>2022-07-25 03:39:17 +0300
commit72c531f8ef3052c682d39dc21dcb5576afda208c (patch)
treefa5f25b57b6ac98b2af9048f4e604d6547d27f37 /include/net/compat.h
parent7fa875b8e53c288d616234b9daf417b0650ce1cc (diff)
downloadlinux-72c531f8ef3052c682d39dc21dcb5576afda208c.tar.xz
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/net/compat.h')
-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 *);