diff options
author | Yonghong Song <yhs@fb.com> | 2022-12-01 06:04:44 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-12-05 01:51:18 +0100 |
commit | 2c40d97da1a25be815c91d6ebcd734d96d5732e8 (patch) | |
tree | 46fd61973bfb570aa9db9b4aba51502acc26746b /kernel | |
parent | bpf, docs: BPF Iterator Document (diff) | |
download | linux-2c40d97da1a25be815c91d6ebcd734d96d5732e8.tar.xz linux-2c40d97da1a25be815c91d6ebcd734d96d5732e8.zip |
bpf: Enable sleeptable support for cgrp local storage
Similar to sk/inode/task local storage, enable sleepable support for
cgrp local storage.
Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20221201050444.2785007-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/bpf/verifier.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 66b82f52b5bc..1d51bd9596da 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -14154,10 +14154,11 @@ static int check_map_prog_compatibility(struct bpf_verifier_env *env, case BPF_MAP_TYPE_INODE_STORAGE: case BPF_MAP_TYPE_SK_STORAGE: case BPF_MAP_TYPE_TASK_STORAGE: + case BPF_MAP_TYPE_CGRP_STORAGE: break; default: verbose(env, - "Sleepable programs can only use array, hash, and ringbuf maps\n"); + "Sleepable programs can only use array, hash, ringbuf and local storage maps\n"); return -EINVAL; } |