]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Check the validity of max_rdwr_access for sock local storage map iterator
authorHou Tao <houtao1@huawei.com>
Wed, 10 Aug 2022 08:05:34 +0000 (16:05 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 10 Aug 2022 17:12:48 +0000 (10:12 -0700)
commit7b367277e4e1997eaa38a935261dc72080fdd3d4
tree7975da978dd08673c361bc396bc9a47eda2649b5
parent3492bd4399bd863327ebbbecae98b58172777742
bpf: Check the validity of max_rdwr_access for sock local storage map iterator

The value of sock local storage map is writable in map iterator, so check
max_rdwr_access instead of max_rdonly_access.

Fixes: 8278de68a482 ("bpf: Implement bpf iterator for sock local storage map")
Signed-off-by: Hou Tao <houtao1@huawei.com>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/r/20220810080538.1845898-6-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/core/bpf_sk_storage.c