aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/uapi/linux/tls.h
diff options
context:
space:
mode:
authorPu Lehui <pulehui@huawei.com>2022-09-21 10:46:02 +0000
committerMartin KaFai Lau <martin.lau@kernel.org>2022-09-21 10:57:12 -0700
commit0e426a3ae030a9e891899370229e117158b35de6 (patch)
tree995c2de05da1e29140c01af9fb034f51dd2a2a35 /tools/include/uapi/linux/tls.h
parentbpf: Ensure correct locking around vulnerable function find_vpid() (diff)
downloadlinux-dev-0e426a3ae030a9e891899370229e117158b35de6.tar.xz
linux-dev-0e426a3ae030a9e891899370229e117158b35de6.zip
bpf, cgroup: Reject prog_attach_flags array when effective query
Attach flags is only valid for attached progs of this layer cgroup, but not for effective progs. For querying with EFFECTIVE flags, exporting attach flags does not make sense. So when effective query, we reject prog_attach_flags array and don't need to populate it. Also we limit attach_flags to output 0 during effective query. Fixes: b79c9fc9551b ("bpf: implement BPF_PROG_QUERY for BPF_LSM_CGROUP") Signed-off-by: Pu Lehui <pulehui@huawei.com> Link: https://lore.kernel.org/r/20220921104604.2340580-2-pulehui@huaweicloud.com Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/include/uapi/linux/tls.h')
0 files changed, 0 insertions, 0 deletions