hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9GZAQ CVE: NA
--------------------------------
Fix kabi breakage in struct net.
Fixes: 3d368ab87cf6 ("net: initialize net->net_cookie at netns setup") Signed-off-by: Liu Jian liujian56@huawei.com --- include/net/net_namespace.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 05fd41222a81..e6a8d9dc972f 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -173,7 +173,11 @@ struct net { struct netns_xfrm xfrm; #endif
+#ifdef __GENKSYMS__ + atomic64_t net_cookie; /* written once */ +#else u64 net_cookie; /* written once */ +#endif
#if IS_ENABLED(CONFIG_IP_VS) struct netns_ipvs *ipvs;