kmsg 36 net/compat.c int get_compat_msghdr(struct msghdr *kmsg, kmsg 47 net/compat.c kmsg->msg_flags = msg.msg_flags; kmsg 48 net/compat.c kmsg->msg_namelen = msg.msg_namelen; kmsg 51 net/compat.c kmsg->msg_namelen = 0; kmsg 53 net/compat.c if (kmsg->msg_namelen < 0) kmsg 56 net/compat.c if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) kmsg 57 net/compat.c kmsg->msg_namelen = sizeof(struct sockaddr_storage); kmsg 59 net/compat.c kmsg->msg_control = compat_ptr(msg.msg_control); kmsg 60 net/compat.c kmsg->msg_controllen = msg.msg_controllen; kmsg 65 net/compat.c if (msg.msg_name && kmsg->msg_namelen) { kmsg 68 net/compat.c kmsg->msg_namelen, kmsg 69 net/compat.c kmsg->msg_name); kmsg 74 net/compat.c kmsg->msg_name = NULL; kmsg 75 net/compat.c kmsg->msg_namelen = 0; kmsg 81 net/compat.c kmsg->msg_iocb = NULL; kmsg 85 net/compat.c UIO_FASTIOV, iov, &kmsg->msg_iter); kmsg 124 net/compat.c int cmsghdr_from_user_compat_to_kern(struct msghdr *kmsg, struct sock *sk, kmsg 138 net/compat.c ucmsg = CMSG_COMPAT_FIRSTHDR(kmsg); kmsg 144 net/compat.c if (!CMSG_COMPAT_OK(ucmlen, ucmsg, kmsg)) kmsg 150 net/compat.c ucmsg = cmsg_compat_nxthdr(kmsg, ucmsg, ucmlen); kmsg 167 net/compat.c ucmsg = CMSG_COMPAT_FIRSTHDR(kmsg); kmsg 171 net/compat.c if (!CMSG_COMPAT_OK(ucmlen, ucmsg, kmsg)) kmsg 187 net/compat.c ucmsg = cmsg_compat_nxthdr(kmsg, ucmsg, ucmlen); kmsg 198 net/compat.c kmsg->msg_control = kcmsg_base; kmsg 199 net/compat.c kmsg->msg_controllen = kcmlen; kmsg 210 net/compat.c int put_cmsg_compat(struct msghdr *kmsg, int level, int type, int len, void *data) kmsg 212 net/compat.c struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; kmsg 218 net/compat.c if (cm == NULL || kmsg->msg_controllen < sizeof(*cm)) { kmsg 219 net/compat.c kmsg->msg_flags |= MSG_CTRUNC; kmsg 246 net/compat.c if (kmsg->msg_controllen < cmlen) { kmsg 247 net/compat.c kmsg->msg_flags |= MSG_CTRUNC; kmsg 248 net/compat.c cmlen = kmsg->msg_controllen; kmsg 259 net/compat.c if (kmsg->msg_controllen < cmlen) kmsg 260 net/compat.c cmlen = kmsg->msg_controllen; kmsg 261 net/compat.c kmsg->msg_control += cmlen; kmsg 262 net/compat.c kmsg->msg_controllen -= cmlen; kmsg 266 net/compat.c void scm_detach_fds_compat(struct msghdr *kmsg, struct scm_cookie *scm) kmsg 268 net/compat.c struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; kmsg 269 net/compat.c int fdmax = (kmsg->msg_controllen - sizeof(struct compat_cmsghdr)) / sizeof(int); kmsg 283 net/compat.c err = get_unused_fd_flags(MSG_CMSG_CLOEXEC & kmsg->msg_flags kmsg 306 net/compat.c kmsg->msg_control += cmlen; kmsg 307 net/compat.c kmsg->msg_controllen -= cmlen; kmsg 311 net/compat.c kmsg->msg_flags |= MSG_CTRUNC; kmsg 2183 net/socket.c static int copy_msghdr_from_user(struct msghdr *kmsg, kmsg 2194 net/socket.c kmsg->msg_control = (void __force *)msg.msg_control; kmsg 2195 net/socket.c kmsg->msg_controllen = msg.msg_controllen; kmsg 2196 net/socket.c kmsg->msg_flags = msg.msg_flags; kmsg 2198 net/socket.c kmsg->msg_namelen = msg.msg_namelen; kmsg 2200 net/socket.c kmsg->msg_namelen = 0; kmsg 2202 net/socket.c if (kmsg->msg_namelen < 0) kmsg 2205 net/socket.c if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) kmsg 2206 net/socket.c kmsg->msg_namelen = sizeof(struct sockaddr_storage); kmsg 2211 net/socket.c if (msg.msg_name && kmsg->msg_namelen) { kmsg 2214 net/socket.c kmsg->msg_namelen, kmsg 2215 net/socket.c kmsg->msg_name); kmsg 2220 net/socket.c kmsg->msg_name = NULL; kmsg 2221 net/socket.c kmsg->msg_namelen = 0; kmsg 2227 net/socket.c kmsg->msg_iocb = NULL; kmsg 2231 net/socket.c UIO_FASTIOV, iov, &kmsg->msg_iter);