We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f01750a commit ab4dc30Copy full SHA for ab4dc30
kernel/bpf/arena.c
@@ -3,6 +3,7 @@
3
#include <linux/bpf.h>
4
#include <linux/btf.h>
5
#include <linux/err.h>
6
+#include "linux/filter.h"
7
#include <linux/btf_ids.h>
8
#include <linux/vmalloc.h>
9
#include <linux/pagemap.h>
@@ -99,6 +100,9 @@ static struct bpf_map *arena_map_alloc(union bpf_attr *attr)
99
100
u64 vm_range;
101
int err = -ENOMEM;
102
103
+ if (!bpf_jit_supports_arena())
104
+ return ERR_PTR(-EOPNOTSUPP);
105
+
106
if (attr->key_size || attr->value_size || attr->max_entries == 0 ||
107
/* BPF_F_MMAPABLE must be set */
108
!(attr->map_flags & BPF_F_MMAPABLE) ||
0 commit comments