fold verify_iovec() into copy_msghdr_from_user()
... and do the same on the compat side of things. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -40,9 +40,8 @@ int compat_sock_get_timestampns(struct sock *, struct timespec __user *);
|
||||
#define compat_mmsghdr mmsghdr
|
||||
#endif /* defined(CONFIG_COMPAT) */
|
||||
|
||||
int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *);
|
||||
int verify_compat_iovec(struct msghdr *, struct iovec *,
|
||||
struct sockaddr_storage *, int);
|
||||
ssize_t get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *,
|
||||
struct sockaddr __user **, struct iovec **);
|
||||
asmlinkage long compat_sys_sendmsg(int, struct compat_msghdr __user *,
|
||||
unsigned int);
|
||||
asmlinkage long compat_sys_sendmmsg(int, struct compat_mmsghdr __user *,
|
||||
|
Reference in New Issue
Block a user