Home
last modified time | relevance | path

Searched refs:kmsg (Results 1 – 2 of 2) sorted by relevance

/net/
Dcompat.c35 int get_compat_msghdr(struct msghdr *kmsg, in get_compat_msghdr() argument
46 __get_user(kmsg->msg_namelen, &umsg->msg_namelen) || in get_compat_msghdr()
50 __get_user(kmsg->msg_controllen, &umsg->msg_controllen) || in get_compat_msghdr()
51 __get_user(kmsg->msg_flags, &umsg->msg_flags)) in get_compat_msghdr()
55 kmsg->msg_namelen = 0; in get_compat_msghdr()
57 if (kmsg->msg_namelen < 0) in get_compat_msghdr()
60 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in get_compat_msghdr()
61 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in get_compat_msghdr()
62 kmsg->msg_control = compat_ptr(tmp3); in get_compat_msghdr()
67 if (uaddr && kmsg->msg_namelen) { in get_compat_msghdr()
[all …]
Dsocket.c1842 static int copy_msghdr_from_user(struct msghdr *kmsg, in copy_msghdr_from_user() argument
1854 __get_user(kmsg->msg_namelen, &umsg->msg_namelen) || in copy_msghdr_from_user()
1857 __get_user(kmsg->msg_control, &umsg->msg_control) || in copy_msghdr_from_user()
1858 __get_user(kmsg->msg_controllen, &umsg->msg_controllen) || in copy_msghdr_from_user()
1859 __get_user(kmsg->msg_flags, &umsg->msg_flags)) in copy_msghdr_from_user()
1863 kmsg->msg_namelen = 0; in copy_msghdr_from_user()
1865 if (kmsg->msg_namelen < 0) in copy_msghdr_from_user()
1868 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in copy_msghdr_from_user()
1869 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in copy_msghdr_from_user()
1874 if (uaddr && kmsg->msg_namelen) { in copy_msghdr_from_user()
[all …]