Offering: HULK hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAYPJQ CVE: CVE-2024-47702
--------------------------------
After backport commit 796e26b94c7a ("bpf: Fail verification for sign-extension of packet data/data_end/data_meta"), `is_ldsx` field was added to the struct `bpf_insn_access_aux`, resulting in a kabi breakage.
Fix this breakage by KABI_FILL_HOLE.
Fixes: 796e26b94c7a ("bpf: Fail verification for sign-extension of packet data/data_end/data_meta") 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 e1447c33f8e2..d8a53afe7127 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -914,7 +914,7 @@ static_assert(__BPF_REG_TYPE_MAX <= BPF_BASE_TYPE_LIMIT); struct bpf_insn_access_aux { enum bpf_reg_type reg_type; KABI_FILL_HOLE(bool is_retval) /* is accessing function return value ? */ - bool is_ldsx; + KABI_FILL_HOLE(bool is_ldsx) union { int ctx_field_size; struct {