diff options
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r-- | kernel/bpf/syscall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index ebf0a673cb83..b29e6dc44650 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c | |||
@@ -482,7 +482,8 @@ static int map_check_btf(struct bpf_map *map, const struct btf *btf, | |||
482 | 482 | ||
483 | if (map_value_has_spin_lock(map)) { | 483 | if (map_value_has_spin_lock(map)) { |
484 | if (map->map_type != BPF_MAP_TYPE_HASH && | 484 | if (map->map_type != BPF_MAP_TYPE_HASH && |
485 | map->map_type != BPF_MAP_TYPE_ARRAY) | 485 | map->map_type != BPF_MAP_TYPE_ARRAY && |
486 | map->map_type != BPF_MAP_TYPE_CGROUP_STORAGE) | ||
486 | return -ENOTSUPP; | 487 | return -ENOTSUPP; |
487 | if (map->spin_lock_off + sizeof(struct bpf_spin_lock) > | 488 | if (map->spin_lock_off + sizeof(struct bpf_spin_lock) > |
488 | map->value_size) { | 489 | map->value_size) { |