From: Yonghong Song Date: Thu, 1 Dec 2022 05:04:44 +0000 (-0800) Subject: bpf: Enable sleeptable support for cgrp local storage X-Git-Tag: v6.6.17~5932^2~23^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c40d97da1a25be815c91d6ebcd734d96d5732e8;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/20221201050444.2785007-1-yhs@fb.com Signed-off-by: Alexei Starovoitov --- diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 66b82f52..1d51bd9 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; }