Searched refs:kcmsg (Results 1 – 1 of 1) sorted by relevance
143 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern() local152 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern()176 kcmsg_base = kcmsg = sock_kmalloc(sk, kcmlen, GFP_KERNEL); in cmsghdr_from_user_compat_to_kern()177 if (kcmsg == NULL) in cmsghdr_from_user_compat_to_kern()181 memset(kcmsg, 0, kcmlen); in cmsghdr_from_user_compat_to_kern()190 if ((char *)kcmsg_base + kcmlen - (char *)kcmsg < CMSG_ALIGN(tmp)) in cmsghdr_from_user_compat_to_kern()192 kcmsg->cmsg_len = tmp; in cmsghdr_from_user_compat_to_kern()193 kcmsg->cmsg_level = cmsg.cmsg_level; in cmsghdr_from_user_compat_to_kern()194 kcmsg->cmsg_type = cmsg.cmsg_type; in cmsghdr_from_user_compat_to_kern()196 if (copy_from_user(CMSG_DATA(kcmsg), in cmsghdr_from_user_compat_to_kern()[all …]