bpf: Enable sleeptable support for cgrp local storage
authorYonghong Song <yhs@fb.com>
Thu, 1 Dec 2022 05:04:44 +0000 (21:04 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 5 Dec 2022 00:51:18 +0000 (16:51 -0800)
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>
kernel/bpf/verifier.c

index 66b82f5..1d51bd9 100644 (file)
@@ -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;
                }