linux-next: build failure after merge of the net-next tree
Subsystems (3)
Hi all,
After merging the net-next tree, today's linux-next build (arm multi_v7_defconfig) failed like this:
net/ipv4/fib_frontend.c: In function 'fib_validate_source':net/ipv4/fib_frontend.c:411:16: error: 'struct netns_ipv4' has no member named 'fib_has_custom_local_routes'
if (net->ipv4.fib_has_custom_local_routes)
^
net/ipv4/fib_frontend.c: In function 'inet_rtm_newroute':
net/ipv4/fib_frontend.c:773:12: error: 'struct netns_ipv4' has no member named 'fib_has_custom_local_routes'
net->ipv4.fib_has_custom_local_routes = true;
^Caused by commit
6e617de84e87 ("net: avoid a full fib lookup when rp_filter is disabled.")
This build has CONFIG_IP_MULTIPLE_TABLES unset.
I have reverted that commit for today.
Signature · 2 lines
Cheers, Stephen Rothwell
David Miller
maintainerFrom: Stephen Rothwell <[email protected]>
Date: Fri, 22 Sep 2017 11:03:55 +1000
Quoted 12 lines
After merging the net-next tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
net/ipv4/fib_frontend.c: In function 'fib_validate_source':net/ipv4/fib_frontend.c:411:16: error: 'structnetns_ipv4' has no member named 'fib_has_custom_local_routes'
if (net->ipv4.fib_has_custom_local_routes)^ net/ipv4/fib_frontend.c: In function 'inet_rtm_newroute': net/ipv4/fib_frontend.c:773:12: error: 'struct netns_ipv4' has no member named 'fib_has_custom_local_routes' net->ipv4.fib_has_custom_local_routes = true; ^
Quoted 3 lines
Caused by commit
6e617de84e87("net: avoid a full fib lookup whenrp_filteris disabled.")
Paolo, it seems this struct member should be placed outside of IP_MULTIPLE_TABLES protection, since users can insert custom local routes even without that set.
So I'm installing the following fix for this:
====================
[PATCH] ipv4: Move fib_has_custom_local_routes outside of IP_MULTIPLE_TABLES.
Quoted 8 lines
net/ipv4/fib_frontend.c: In function 'fib_validate_source':net/ipv4/fib_frontend.c:411:16: error: 'structnetns_ipv4' has no member named 'fib_has_custom_local_routes'
if (net->ipv4.fib_has_custom_local_routes)^ net/ipv4/fib_frontend.c: In function 'inet_rtm_newroute': net/ipv4/fib_frontend.c:773:12: error: 'struct netns_ipv4' has no member named 'fib_has_custom_local_routes' net->ipv4.fib_has_custom_local_routes = true; ^
--- include/net/netns/ipv4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/netns/ipv4.h +1 -1
@@ -49,10 +49,10 @@ struct netns_ipv4 {#ifdef CONFIG_IP_MULTIPLE_TABLES struct fib_rules_ops *rules_ops;bool fib_has_custom_rules; -bool fib_has_custom_local_routes;struct fib_table __rcu *fib_main;struct fib_table __rcu *fib_default;#endif +bool fib_has_custom_local_routes;#ifdef CONFIG_IP_ROUTE_CLASSID int fib_num_tclassid_users;#endif
Signature · 1 line
2.13.5
Paolo Abeni
maintainerQuoted 62 lines · David Miller
From: Stephen Rothwell <[email protected]>
Date: Fri, 22 Sep 2017 11:03:55 +1000Quoted 12 lines
After merging the net-next tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
net/ipv4/fib_frontend.c: In function 'fib_validate_source':net/ipv4/fib_frontend.c:411:16: error: 'structnetns_ipv4' has no member named 'fib_has_custom_local_routes'
if (net->ipv4.fib_has_custom_local_routes)^ net/ipv4/fib_frontend.c: In function 'inet_rtm_newroute': net/ipv4/fib_frontend.c:773:12: error: 'struct netns_ipv4' has no member named 'fib_has_custom_local_routes' net->ipv4.fib_has_custom_local_routes = true; ^Quoted 3 lines
Caused by commit
6e617de84e87("net: avoid a full fib lookup whenrp_filteris disabled.")Paolo, it seems this struct member should be placed outside of
IP_MULTIPLE_TABLESprotection, since users can insert custom local routes even without that set.So I'm installing the following fix for this:
====================
[PATCH] ipv4: Movefib_has_custom_local_routesoutside ofIP_MULTIPLE_TABLES.Quoted 8 lines
net/ipv4/fib_frontend.c: In function 'fib_validate_source':net/ipv4/fib_frontend.c:411:16: error: 'structnetns_ipv4' has no member named 'fib_has_custom_local_routes'
if (net->ipv4.fib_has_custom_local_routes)^ net/ipv4/fib_frontend.c: In function 'inet_rtm_newroute': net/ipv4/fib_frontend.c:773:12: error: 'struct netns_ipv4' has no member named 'fib_has_custom_local_routes' net->ipv4.fib_has_custom_local_routes = true; ^Fixes 6e617de84e87 ("net: avoid a full fib lookup when rp_filter is disabled.")Reported-by Stephen Rothwell <[email protected]>Signed-off-by David S. Miller <[email protected]>--- include/net/netns/ipv4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/net/netns/ipv4.h +1
-1@@ -49,10 +49,10 @@ struct netns_ipv4 {#ifdef CONFIG_IP_MULTIPLE_TABLES struct fib_rules_ops *rules_ops;bool fib_has_custom_rules; -bool fib_has_custom_local_routes;struct fib_table __rcu *fib_main;struct fib_table __rcu *fib_default;#endif +bool fib_has_custom_local_routes;#ifdef CONFIG_IP_ROUTE_CLASSID int fib_num_tclassid_users;#endif Signature · 1 line
2.13.5
My fault, I should have fuzzed the configuration before posting.
Fix looks good, thanks David!
Paolo