Skip to content

Commit 708edde

Browse files
committed
deepin: bpf: Fix kabi in bpf_map_owner by using KABI_EXTEND
deepin inclusion category: kabi When DEEPIN_KABI_RESERVE=y, struct bpf_map is kabi whitelist, commit bcb8170 ("bpf: Enforce expected_attach_type for tailcall compatibility") upstream introduce expected_attach_type in bpf_map_owner to enforce expected_attach_type for tailcall compatibility and backport to v6.6.112. As expected_attach_type use internal and bpf_map_owner used by pointer. We can use DEEPIN_KABI_EXTEND to fix it. Fixes: bcb8170 ("bpf: Enforce expected_attach_type for tailcall compatibility") Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 85d1c1a commit 708edde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/bpf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ struct bpf_map_owner {
276276
bool xdp_has_frags;
277277
u64 storage_cookie[MAX_BPF_CGROUP_STORAGE_TYPE];
278278
const struct btf_type *attach_func_proto;
279-
enum bpf_attach_type expected_attach_type;
279+
DEEPIN_KABI_EXTEND(enum bpf_attach_type expected_attach_type)
280280
};
281281

282282
struct bpf_map {

0 commit comments

Comments
 (0)