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
bpf: Fix crash due to out of bounds access into reg2btf_ids.
[linux-2.6-microblaze.git]
/
kernel
/
bpf
/
ringbuf.c
diff --git
a/kernel/bpf/ringbuf.c
b/kernel/bpf/ringbuf.c
index
638d7fd
..
710ba9d
100644
(file)
--- a/
kernel/bpf/ringbuf.c
+++ b/
kernel/bpf/ringbuf.c
@@
-104,7
+104,7
@@
static struct bpf_ringbuf *bpf_ringbuf_area_alloc(size_t data_sz, int numa_node)
}
rb = vmap(pages, nr_meta_pages + 2 * nr_data_pages,
- VM_
ALLOC
| VM_USERMAP, PAGE_KERNEL);
+ VM_
MAP
| VM_USERMAP, PAGE_KERNEL);
if (rb) {
kmemleak_not_leak(pages);
rb->pages = pages;