
hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IC5J6M CVE: CVE-2024-58100 -------------------------------- Fix kabi breakage for changes_pkt_data in struct bpf_prog_aux by using KABI_FILL_HOLE. Fixes: 81f6d0530ba0 ("bpf: check changes_pkt_data property for extension programs") Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com> --- include/linux/bpf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 3f52defc5845..5d3f5fb86d02 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -1469,7 +1469,7 @@ struct bpf_prog_aux { u32 max_rdonly_access; u32 max_rdwr_access; KABI_FILL_HOLE(bool is_extended) /* true if extended by freplace program */ - bool changes_pkt_data; + KABI_FILL_HOLE(bool changes_pkt_data) struct btf *attach_btf; const struct bpf_ctx_arg_aux *ctx_arg_info; struct mutex dst_mutex; /* protects dst_* pointers below, *after* prog becomes visible */ -- 2.25.1