
hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IC1QTJ CVE: CVE-2025-22089 -------------------------------- Use KABI_USE to fix kabi broken in struct ib_device. Fixes: a1ecb30f9085 ("RDMA/core: Don't expose hw_counters outside of init net namespace") Signed-off-by: Dong Chenchen <dongchenchen2@huawei.com> --- include/rdma/ib_verbs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 2f60ad46b023..068bb35efab9 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -2748,7 +2748,6 @@ struct ib_device { * It is a NULL terminated array. */ const struct attribute_group *groups[4]; - u8 hw_stats_attr_index; u64 uverbs_cmd_mask; @@ -2797,7 +2796,7 @@ struct ib_device { char iw_ifname[IFNAMSIZ]; u32 iw_driver_flags; u32 lag_flags; - KABI_RESERVE(1) + KABI_USE(1, u8 hw_stats_attr_index) KABI_RESERVE(2) }; -- 2.25.1