Offering: HULK hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IA436B CVE: CVE-2024-36971
--------------------------------
Fix kabi breakage in struct dst_ops.
Fixes: 92f1655aa2b2 ("net: fix __dst_negative_advice() race") Signed-off-by: Liu Jian liujian56@huawei.com --- include/net/dst_ops.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/net/dst_ops.h b/include/net/dst_ops.h index ddc6ca4a33bc..6b68d31b4847 100644 --- a/include/net/dst_ops.h +++ b/include/net/dst_ops.h @@ -25,7 +25,11 @@ struct dst_ops { void (*destroy)(struct dst_entry *); void (*ifdown)(struct dst_entry *, struct net_device *dev, int how); +#ifdef __GENKSYMS__ + struct dst_entry * (*negative_advice)(struct dst_entry *); +#else void (*negative_advice)(struct sock *sk, struct dst_entry *); +#endif void (*link_failure)(struct sk_buff *); void (*update_pmtu)(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb, u32 mtu,