hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I8ZGOZ CVE: CVE-2023-52340
--------------------------------
Use KABI_REPLACE to fix kabi change in struct dst_ops.
Signed-off-by: Ziyang Xuan william.xuanziyang@huawei.com --- include/net/dst_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/dst_ops.h b/include/net/dst_ops.h index 85ac66203c21..f3f5d02f2e73 100644 --- a/include/net/dst_ops.h +++ b/include/net/dst_ops.h @@ -17,7 +17,7 @@ struct dst_ops { unsigned short family; unsigned int gc_thresh;
- void (*gc)(struct dst_ops *ops); + KABI_REPLACE(int (*gc)(struct dst_ops *ops), void (*gc)(struct dst_ops *ops)) struct dst_entry * (*check)(struct dst_entry *, __u32 cookie); unsigned int (*default_advmss)(const struct dst_entry *); unsigned int (*mtu)(const struct dst_entry *);