Searched refs:kcmlen (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/net/ |
H A D | compat.c | 147 __kernel_size_t kcmlen, tmp; in cmsghdr_from_user_compat_to_kern() local 153 kcmlen = 0; in cmsghdr_from_user_compat_to_kern() 166 kcmlen += tmp; in cmsghdr_from_user_compat_to_kern() 169 if (kcmlen == 0) in cmsghdr_from_user_compat_to_kern() 172 /* The kcmlen holds the 64-bit version of the control length. in cmsghdr_from_user_compat_to_kern() 177 if (kcmlen > stackbuf_size) in cmsghdr_from_user_compat_to_kern() 178 kcmsg_base = kcmsg = sock_kmalloc(sk, kcmlen, GFP_KERNEL); in cmsghdr_from_user_compat_to_kern() 183 memset(kcmsg, 0, kcmlen); in cmsghdr_from_user_compat_to_kern() 192 if ((char *)kcmsg_base + kcmlen - (char *)kcmsg < CMSG_ALIGN(tmp)) in cmsghdr_from_user_compat_to_kern() 212 if ((char *)kcmsg - (char *)kcmsg_base != kcmlen) in cmsghdr_from_user_compat_to_kern() [all...] |
/kernel/linux/linux-6.6/net/ |
H A D | compat.c | 145 __kernel_size_t kcmlen, tmp; in cmsghdr_from_user_compat_to_kern() local 151 kcmlen = 0; in cmsghdr_from_user_compat_to_kern() 164 kcmlen += tmp; in cmsghdr_from_user_compat_to_kern() 167 if (kcmlen == 0) in cmsghdr_from_user_compat_to_kern() 170 /* The kcmlen holds the 64-bit version of the control length. in cmsghdr_from_user_compat_to_kern() 175 if (kcmlen > stackbuf_size) in cmsghdr_from_user_compat_to_kern() 176 kcmsg_base = kcmsg = sock_kmalloc(sk, kcmlen, GFP_KERNEL); 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() 210 if ((char *)kcmsg - (char *)kcmsg_base != kcmlen) in cmsghdr_from_user_compat_to_kern() [all...] |
Completed in 2 milliseconds