Merge tag 'rtc-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
[linux-2.6-microblaze.git] / kernel / bpf / ringbuf.c
index 84b3b35..9e0c10c 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/vmalloc.h>
 #include <linux/wait.h>
 #include <linux/poll.h>
+#include <linux/kmemleak.h>
 #include <uapi/linux/btf.h>
 
 #define RINGBUF_CREATE_FLAG_MASK (BPF_F_NUMA_NODE)
@@ -105,6 +106,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);
        if (rb) {
+               kmemleak_not_leak(pages);
                rb->pages = pages;
                rb->nr_pages = nr_pages;
                return rb;