Searched refs:kmsg (Results 1 – 2 of 2) sorted by relevance
62 int get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr __user *umsg) in get_compat_msghdr() argument68 __get_user(kmsg->msg_namelen, &umsg->msg_namelen) || in get_compat_msghdr()70 __get_user(kmsg->msg_iovlen, &umsg->msg_iovlen) || in get_compat_msghdr()72 __get_user(kmsg->msg_controllen, &umsg->msg_controllen) || in get_compat_msghdr()73 __get_user(kmsg->msg_flags, &umsg->msg_flags)) in get_compat_msghdr()77 kmsg->msg_namelen = 0; in get_compat_msghdr()79 if (kmsg->msg_namelen < 0) in get_compat_msghdr()82 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in get_compat_msghdr()83 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in get_compat_msghdr()84 kmsg->msg_name = compat_ptr(tmp1); in get_compat_msghdr()[all …]
2006 static int copy_msghdr_from_user(struct msghdr *kmsg, in copy_msghdr_from_user() argument2009 if (copy_from_user(kmsg, umsg, sizeof(struct msghdr))) in copy_msghdr_from_user()2012 if (kmsg->msg_name == NULL) in copy_msghdr_from_user()2013 kmsg->msg_namelen = 0; in copy_msghdr_from_user()2015 if (kmsg->msg_namelen < 0) in copy_msghdr_from_user()2018 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in copy_msghdr_from_user()2019 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in copy_msghdr_from_user()