Lines Matching defs:len

626 static struct module *find_module_all(const char *name, size_t len,
637 if (strlen(mod->name) == len && !memcmp(mod->name, name, len))
2937 info->len > markerlen &&
2938 memcmp(mod + info->len - markerlen, MODULE_SIG_STRING, markerlen) == 0) {
2940 info->len -= markerlen;
2994 if (secend < shdr->sh_offset || secend > info->len)
3012 if (info->len < sizeof(*(info->hdr)))
3026 if (info->hdr->e_shoff >= info->len
3028 info->len - info->hdr->e_shoff))
3098 static int copy_chunked_from_user(void *dst, const void __user *usrc, unsigned long len)
3101 unsigned long n = min(len, COPY_CHUNK_SIZE);
3108 len -= n;
3109 } while (len);
3147 /* Sets info->hdr and info->len. */
3148 static int copy_module_from_user(const void __user *umod, unsigned long len,
3153 info->len = len;
3154 if (info->len < sizeof(*(info->hdr)))
3162 info->hdr = __vmalloc(info->len, GFP_KERNEL | __GFP_NOWARN);
3166 if (copy_chunked_from_user(info->hdr, umod, info->len) != 0) {
3171 err = security_kernel_post_load_data((char *)info->hdr, info->len,
3559 size_t len;
3564 for (p = module_blacklist; *p; p += len) {
3565 len = strcspn(p, ",");
3566 if (strlen(module_name) == len && !memcmp(module_name, p, len))
3568 if (p[len] == ',')
3569 len++;
3968 * the signature check needs is info->len, it does
3974 * The check will also adjust info->len by stripping
3976 * checks against info->len more correct.
4186 unsigned long, len, const char __user *, uargs)
4195 pr_debug("init_module: umod=%p, len=%lu, uargs=%p\n",
4196 umod, len, uargs);
4198 err = copy_module_from_user(umod, len, &info);
4226 info.len = err;