/kernel/ |
H A D | audit.c | 815 u32 len; local 1004 len = 0; 1006 err = security_secid_to_secctx(audit_sig_sid, &ctx, &len); 1010 sig_data = kmalloc(sizeof(*sig_data) + len, GFP_KERNEL); 1013 security_release_secctx(ctx, len); 1019 memcpy(sig_data->ctx, ctx, len); 1020 security_release_secctx(ctx, len); 1023 sig_data, sizeof(*sig_data) + len); 1084 * len MUST be signed for nlmsg_next to be able to dec it below 0 1087 int len; local 1445 int len, avail; local 1510 audit_log_n_hex(struct audit_buffer *ab, const unsigned char *buf, size_t len) argument 1576 audit_string_contains_control(const char *string, size_t len) argument 1600 audit_log_n_untrustedstring(struct audit_buffer *ab, const char *string, size_t len) argument 1786 u32 len; local 1825 unsigned len; local 2016 u32 len; local [all...] |
H A D | audit.h | 110 int len; /* length of the cmdline field. */ member in struct:audit_proctitle 277 extern int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op);
|
H A D | audit_watch.c | 189 int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op) argument 196 if (path[0] != '/' || path[len-1] == '/' ||
|
H A D | auditfilter.c | 136 char *audit_unpack_string(void **bufp, size_t *remain, size_t len) argument 140 if (!*bufp || (len == 0) || (len > *remain)) 146 if (len > PATH_MAX) 149 str = kmalloc(len + 1, GFP_KERNEL); 153 memcpy(str, *bufp, len); 154 str[len] = 0; 155 *bufp += len; 156 *remain -= len; 576 size_t len local [all...] |
H A D | auditsc.c | 860 context->proctitle.len = 0; 985 u32 len; local 996 if (security_secid_to_secctx(sid, &ctx, &len)) { 1001 security_release_secctx(ctx, len); 1033 size_t len, len_left, to_send; local 1039 len_left = len = strnlen_user(p, MAX_ARG_STRLEN) - 1; 1047 if (unlikely((len == -1) || len > MAX_ARG_STRLEN - 1)) { 1084 len_left = len; 1086 if (len > max_execve_audit_le 1161 int i, len; local 1218 u32 len; local 1292 audit_proctitle_rtrim(char *proctitle, int len) argument 1310 int len = strlen(msg); local 2258 __audit_sockaddr(int len, void *a) argument [all...] |
H A D | compat.c | 604 unsigned len, struct cpumask *new_mask) 608 if (len < cpumask_size()) 610 else if (len > cpumask_size()) 611 len = cpumask_size(); 614 return compat_get_bitmap(k, user_mask_ptr, len * 8); 618 unsigned int, len, 627 retval = compat_get_user_cpu_mask(user_mask_ptr, len, new_mask); 637 COMPAT_SYSCALL_DEFINE3(sched_getaffinity, compat_pid_t, pid, unsigned int, len, 643 if ((len * BITS_PER_BYTE) < nr_cpu_ids) 645 if (len 603 compat_get_user_cpu_mask(compat_ulong_t __user *user_mask_ptr, unsigned len, struct cpumask *new_mask) argument 1160 compat_alloc_user_space(unsigned long len) argument [all...] |
H A D | configs.c | 59 size_t len, loff_t * offset) 61 return simple_read_from_buffer(buf, len, offset, 58 ikconfig_read_current(struct file *file, char __user *buf, size_t len, loff_t * offset) argument
|
H A D | fork.c | 425 unsigned long len = vma_pages(mpnt); local 427 if (security_vm_enough_memory_mm(oldmm, len)) /* sic */ 429 charge = len;
|
H A D | futex.c | 2714 * @len: length of the list-head, as userspace expects 2717 size_t, len) 2724 if (unlikely(len != sizeof(*head)))
|
H A D | futex_compat.c | 122 compat_size_t, len) 127 if (unlikely(len != sizeof(*head)))
|
H A D | kallsyms.c | 94 int len, skipped_first = 0; local 99 len = *data; 106 off += len + 1; 112 while (len) { 115 len--; 169 * for. Every symbol is stored in a [<len>][<len> bytes of data] format, 170 * so we just need to add the len to the current pointer for every 362 int len; local 371 len [all...] |
/kernel/bpf/ |
H A D | core.c | 663 int len) 662 skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len) argument
|
H A D | syscall.c | 374 for (i = 0; i < prog->len; i++) { 491 prog->len = attr->insn_cnt; 495 prog->len * sizeof(struct bpf_insn)) != 0)
|
H A D | verifier.c | 824 /* bpf_xxx(..., buf, len) call will access 'len' bytes 826 * note: regno == len, regno - 1 == buf 1242 if (w < 0 || w >= env->prog->len) { 1255 if (cur_stack >= env->prog->len) 1278 int insn_cnt = env->prog->len; 1473 int insn_cnt = env->prog->len; 1696 int insn_cnt = env->prog->len; 1783 int insn_cnt = env->prog->len; 1799 for (i = 0; i < env->prog->len; [all...] |
/kernel/debug/ |
H A D | debug_core.h | 67 extern void gdbstub_msg_write(const char *s, int len);
|
H A D | gdbstub.c | 197 void gdbstub_msg_write(const char *s, int len) argument 203 if (len == 0) 204 len = strlen(s); 210 while (len > 0) { 214 if ((len << 1) > (BUFMAX - 2)) 217 wcount = len; 226 len -= wcount; 775 int len = strlen(remcom_in_buffer + 6); local 777 if ((len % 2) != 0) { 782 remcom_out_buffer, len); [all...] |
/kernel/debug/kdb/ |
H A D | kdb_bp.c | 69 unsigned long len; local 72 &len); 77 if (len > 8) 80 bp->bph_length = len;
|
H A D | kdb_io.c | 212 int len = strlen(buffer); local 225 if (len > 0) { 226 cp += len; 227 if (*(buffer+len-1) == '\n') 345 len = strlen(p_tmp); 363 *(p_tmp + len) = '\0'; 374 strncpy(cp, p_tmp+len, len_tmp-len + 1); 375 len = len_tmp - len; 568 int fnd, len; local [all...] |
H A D | kdb_main.c | 780 int len; local 799 len = strlen(cp); 800 if (len == 0) { 821 len = strlen(cp); 823 if (*(cp+len-1) == '$') { 825 *(cp+len-1) = '\0'; 827 len = strlen(cp); 828 if (!len) 830 if (len >= GREP_LEN) { 1787 int len local 2044 size_t len; local [all...] |
/kernel/events/ |
H A D | core.c | 5304 u64 len; member in struct:perf_mmap_event::__anon24 5512 .len = vma->vm_end - vma->vm_start,
|
H A D | internal.h | 87 const void *buf, unsigned long len) \ 92 size = min(handle->size, len); \ 96 len -= written; \ 108 } while (len && written == size); \ 110 return len; \
|
H A D | ring_buffer.c | 206 const void *buf, unsigned int len) 208 return __output_copy(handle, buf, len); 212 unsigned int len) 214 return __output_skip(handle, NULL, len); 205 perf_output_copy(struct perf_output_handle *handle, const void *buf, unsigned int len) argument 211 perf_output_skip(struct perf_output_handle *handle, unsigned int len) argument
|
H A D | uprobes.c | 241 static void copy_from_page(struct page *page, unsigned long vaddr, void *dst, int len) argument 244 memcpy(dst, kaddr + (vaddr & ~PAGE_MASK), len); 248 static void copy_to_page(struct page *page, unsigned long vaddr, const void *src, int len) argument 251 memcpy(kaddr + (vaddr & ~PAGE_MASK), src, len); 565 int len, err = -EIO; local 572 len = min_t(int, size, PAGE_SIZE - (offs & ~PAGE_MASK)); 573 err = __copy_insn(mapping, filp, insn, len, offs); 577 insn += len; 578 offs += len; 579 size -= len; 1343 arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr, void *src, unsigned long len) argument [all...] |
/kernel/gcov/ |
H A D | fs.c | 273 size_t len, loff_t *pos) 294 return len; 533 size_t len, loff_t *pos) 550 return len; 554 static ssize_t reset_read(struct file *file, char __user *addr, size_t len, argument 272 gcov_seq_write(struct file *file, const char __user *addr, size_t len, loff_t *pos) argument 532 reset_write(struct file *file, const char __user *addr, size_t len, loff_t *pos) argument
|
H A D | gcc_4_7.c | 553 size_t len; local 558 len = ITER_STRIDE; 559 if (iter->pos + len > iter->size) 560 len = iter->size - iter->pos; 562 seq_write(seq, iter->buffer + iter->pos, len);
|