projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'gpio-v4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[linux-2.6-microblaze.git]
/
kernel
/
trace
/
bpf_trace.c
diff --git
a/kernel/trace/bpf_trace.c
b/kernel/trace/bpf_trace.c
index
fc2838a
..
c0a9e31
100644
(file)
--- a/
kernel/trace/bpf_trace.c
+++ b/
kernel/trace/bpf_trace.c
@@
-872,6
+872,8
@@
int perf_event_query_prog_array(struct perf_event *event, void __user *info)
return -EINVAL;
if (copy_from_user(&query, uquery, sizeof(query)))
return -EFAULT;
+ if (query.ids_len > BPF_TRACE_MAX_PROGS)
+ return -E2BIG;
mutex_lock(&bpf_event_mutex);
ret = bpf_prog_array_copy_info(event->tp_event->prog_array,