projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8972e18
)
bpf: Enable sleeptable support for cgrp local storage
author
Yonghong Song
<yhs@fb.com>
Thu, 1 Dec 2022 05:04:44 +0000
(21:04 -0800)
committer
Alexei 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
patch
|
blob
|
history
diff --git
a/kernel/bpf/verifier.c
b/kernel/bpf/verifier.c
index 66b82f52b5bc980ce7015fb52283553522993b70..1d51bd9596daf3a436de6f33d1a727ea07296e3f 100644
(file)
--- 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;
}