提交 5c58ec52 编写于 作者: Y Yufen Yu 提交者: Yang Yingliang

bpf: move new add member to the end of the struct bpf_prog_aux

hulk inclusion
category: bugfix
bugzilla: NA
CVE: NA

-------------------------------------------------

Move new member to the end of the struct bpf_prog_aux to
avoid potential kabi problem.

Fixes: 6a9e078136ef ("bpf: fix kabi for struct bpf_prog_aux and struct bpf_raw_event_map")
Signed-off-by: NYufen Yu <yuyufen@huawei.com>
Reviewed-by: NHou Tao <houtao1@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 97c22788
......@@ -286,10 +286,6 @@ struct bpf_prog_aux {
atomic_t refcnt;
u32 used_map_cnt;
u32 max_ctx_offset;
/* not protected by KABI, safe to extend in the middle */
#ifndef __GENKSYMS__
u32 max_tp_access;
#endif
u32 stack_depth;
u32 id;
u32 func_cnt;
......@@ -313,6 +309,10 @@ struct bpf_prog_aux {
struct work_struct work;
struct rcu_head rcu;
};
/* not protected by KABI, safe to extend in the middle */
#ifndef __GENKSYMS__
u32 max_tp_access;
#endif
};
struct bpf_array {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册