Skip to contentSkip to conversation

linux-next: build failure after merge of the net-next tree

DISCUSSION Stephen Rothwell 4 participants 11 messages Jul 29, 2020 – Aug 29, 2020 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the net-next tree, today's linux-next build (i386 defconfig) failed like this:

x86_64-linux-gnu-ld: net/core/fib_rules.o: in function `fib_rules_lookup':
fib_rules.c:(.text+0x5c6): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x5d8): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x64d): undefined reference to `fib6_rule_action'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x662): undefined reference to `fib6_rule_action'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x67a): undefined reference to `fib6_rule_suppress'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x68d): undefined reference to `fib6_rule_suppress'

Caused by commit

b9aaec8f0be5 ("fib: use indirect call wrappers in the most common fib_rules_ops")

# CONFIG_IPV6_MULTIPLE_TABLES is not set

I have reverted that commit for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen, thanks for reaching out and reporting the issue. I have just sent the fix for review in net-next:
http://patchwork.ozlabs.org/project/netdev/patch/[email protected]/

cheers,
Brian

Quoted 25 lines · Stephen Rothwell

Hi all,

After merging the net-next tree, today's linux-next build (i386 defconfig) failed like this:

x86_64-linux-gnu-ld: net/core/fib_rules.o: in function `fib_rules_lookup':
fib_rules.c:(.text+0x5c6): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x5d8): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x64d): undefined reference to `fib6_rule_action'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x662): undefined reference to `fib6_rule_action'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x67a): undefined reference to `fib6_rule_suppress'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x68d): undefined reference to `fib6_rule_suppress'

Caused by commit

b9aaec8f0be5 ("fib: use indirect call wrappers in the most common fib_rules_ops")

# CONFIG_IPV6_MULTIPLE_TABLES is not set

I have reverted that commit for today.

--
Cheers,
Stephen Rothwell

#2 lore raw
In reply to Stephen Rothwell
Quoted 5 lines · Stephen Rothwell

Hi all,

After merging the net-next tree, today's linux-next build (i386 defconfig) failed like this:

Quoted 7 lines

x86_64-linux-gnu-ld: net/core/fib_rules.o: in function `fib_rules_lookup':
fib_rules.c:(.text+0x5c6): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x5d8): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x64d): undefined reference to `fib6_rule_action'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x662): undefined reference to `fib6_rule_action'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x67a): undefined reference to `fib6_rule_suppress'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x68d): undefined reference to `fib6_rule_suppress'

FWIW, I saw these errors in 5.9-rc1 today, so the fix in commit 41d707b7332f ("fib: fix fib_rules_ops indirect calls wrappers") was apparently not sufficient.

,----

| $ grep IPV6 .config
| CONFIG_IPV6=m
| # CONFIG_IPV6_ROUTER_PREF is not set
| # CONFIG_IPV6_OPTIMISTIC_DAD is not set
| # CONFIG_IPV6_MIP6 is not set
| # CONFIG_IPV6_ILA is not set
| # CONFIG_IPV6_VTI is not set
| CONFIG_IPV6_SIT=m
| # CONFIG_IPV6_SIT_6RD is not set
| CONFIG_IPV6_NDISC_NODETYPE=y
| CONFIG_IPV6_TUNNEL=m
| CONFIG_IPV6_MULTIPLE_TABLES=y
| # CONFIG_IPV6_SUBTREES is not set
| # CONFIG_IPV6_MROUTE is not set
| # CONFIG_IPV6_SEG6_LWTUNNEL is not set
| # CONFIG_IPV6_SEG6_HMAC is not set
| # CONFIG_IPV6_RPL_LWTUNNEL is not set
| # CONFIG_NF_SOCKET_IPV6 is not set
| # CONFIG_NF_TPROXY_IPV6 is not set
| # CONFIG_NF_DUP_IPV6 is not set
| # CONFIG_NF_REJECT_IPV6 is not set
| # CONFIG_NF_LOG_IPV6 is not set
| CONFIG_NF_DEFRAG_IPV6=m

`----

Quoted 7 lines

Caused by commit

b9aaec8f0be5 ("fib: use indirect call wrappers in the most common fib_rules_ops")

# CONFIG_IPV6_MULTIPLE_TABLES is not set

I have reverted that commit for today.

Cheers,
Sven

A message that is not in the archive (sent off-list or not yet received): CAMzD94Rz4NYnhheS8SmuL14MNM4VGxOnAW-WZ9k1JEqrbwyrvw@mail.gmail.com

#4 lore raw
Quoted 5 lines · Brian Vazquez

Hi Sven,

Sorry for the late reply, did you still see this after:
https://patchwork.ozlabs.org/project/netdev/patch/[email protected]/
??

That patch is apparently already in 5.9-rc1 as commit 80fbbb1672e7, so yes I'm still seeing it.

Cheers,
Sven

Quoted 66 lines · Sven Joachim
Quoted 65 lines · Stephen Rothwell
Quoted 4 lines

Hi all,

After merging the net-next tree, today's linux-next build (i386

defconfig)

Quoted 3 lines

failed like this:

x86_64-linux-gnu-ld: net/core/fib_rules.o: in function

`fib_rules_lookup':

Quoted 2 lines

fib_rules.c:(.text+0x5c6): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x5d8): undefined reference to

`fib6_rule_match'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x64d): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x662): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x67a): undefined reference to

`fib6_rule_suppress'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x68d): undefined reference to

`fib6_rule_suppress'

FWIW, I saw these errors in 5.9-rc1 today, so the fix in commit 41d707b7332f ("fib: fix fib_rules_ops indirect calls wrappers") was apparently not sufficient.

,----

| $ grep IPV6 .config
| CONFIG_IPV6=m
| # CONFIG_IPV6_ROUTER_PREF is not set
| # CONFIG_IPV6_OPTIMISTIC_DAD is not set
| # CONFIG_IPV6_MIP6 is not set
| # CONFIG_IPV6_ILA is not set
| # CONFIG_IPV6_VTI is not set
| CONFIG_IPV6_SIT=m
| # CONFIG_IPV6_SIT_6RD is not set
| CONFIG_IPV6_NDISC_NODETYPE=y
| CONFIG_IPV6_TUNNEL=m
| CONFIG_IPV6_MULTIPLE_TABLES=y
| # CONFIG_IPV6_SUBTREES is not set
| # CONFIG_IPV6_MROUTE is not set
| # CONFIG_IPV6_SEG6_LWTUNNEL is not set
| # CONFIG_IPV6_SEG6_HMAC is not set
| # CONFIG_IPV6_RPL_LWTUNNEL is not set
| # CONFIG_NF_SOCKET_IPV6 is not set
| # CONFIG_NF_TPROXY_IPV6 is not set
| # CONFIG_NF_DUP_IPV6 is not set
| # CONFIG_NF_REJECT_IPV6 is not set
| # CONFIG_NF_LOG_IPV6 is not set
| CONFIG_NF_DEFRAG_IPV6=m

`----

Quoted 3 lines

Caused by commit

b9aaec8f0be5 ("fib: use indirect call wrappers in the most common

fib_rules_ops")

Quoted 4 lines

# CONFIG_IPV6_MULTIPLE_TABLES is not set

I have reverted that commit for today.

Cheers,
Sven

#5 lore raw
Quoted 10 lines · Sven Joachim
Quoted 5 lines · Brian Vazquez

Hi Sven,

Sorry for the late reply, did you still see this after:
https://patchwork.ozlabs.org/project/netdev/patch/[email protected]/
??

That patch is apparently already in 5.9-rc1 as commit 80fbbb1672e7, so yes I'm still seeing it.

Still present in 5.9-rc2 as of today, I have attached my .config for reference. Note that I have CONFIG_IPV6_MULTIPLE_TABLES=y, but CONFIG_IP_MULTIPLE_TABLES is not mentioned at all there.

To build the kernel, I have now deselected IPV6_MULTIPLE_TABLES. Not sure why this was enabled in my .config which has grown organically over many years.

Cheers,
Sven

Quoted 67 lines
Quoted 67 lines · Sven Joachim
Quoted 65 lines · Stephen Rothwell
Quoted 4 lines

Hi all,

After merging the net-next tree, today's linux-next build (i386

defconfig)

Quoted 3 lines

failed like this:

x86_64-linux-gnu-ld: net/core/fib_rules.o: in function

`fib_rules_lookup':

Quoted 2 lines

fib_rules.c:(.text+0x5c6): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x5d8): undefined reference to

`fib6_rule_match'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x64d): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x662): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x67a): undefined reference to

`fib6_rule_suppress'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x68d): undefined reference to

`fib6_rule_suppress'

FWIW, I saw these errors in 5.9-rc1 today, so the fix in commit 41d707b7332f ("fib: fix fib_rules_ops indirect calls wrappers") was apparently not sufficient.

,----

| $ grep IPV6 .config
| CONFIG_IPV6=m
| # CONFIG_IPV6_ROUTER_PREF is not set
| # CONFIG_IPV6_OPTIMISTIC_DAD is not set
| # CONFIG_IPV6_MIP6 is not set
| # CONFIG_IPV6_ILA is not set
| # CONFIG_IPV6_VTI is not set
| CONFIG_IPV6_SIT=m
| # CONFIG_IPV6_SIT_6RD is not set
| CONFIG_IPV6_NDISC_NODETYPE=y
| CONFIG_IPV6_TUNNEL=m
| CONFIG_IPV6_MULTIPLE_TABLES=y
| # CONFIG_IPV6_SUBTREES is not set
| # CONFIG_IPV6_MROUTE is not set
| # CONFIG_IPV6_SEG6_LWTUNNEL is not set
| # CONFIG_IPV6_SEG6_HMAC is not set
| # CONFIG_IPV6_RPL_LWTUNNEL is not set
| # CONFIG_NF_SOCKET_IPV6 is not set
| # CONFIG_NF_TPROXY_IPV6 is not set
| # CONFIG_NF_DUP_IPV6 is not set
| # CONFIG_NF_REJECT_IPV6 is not set
| # CONFIG_NF_LOG_IPV6 is not set
| CONFIG_NF_DEFRAG_IPV6=m

`----

Quoted 3 lines

Caused by commit

b9aaec8f0be5 ("fib: use indirect call wrappers in the most common

fib_rules_ops")

Quoted 4 lines

# CONFIG_IPV6_MULTIPLE_TABLES is not set

I have reverted that commit for today.

Cheers,
Sven

#6 lore raw

Hi Sven,

I've been trying to reproduce it with your config but I didn't succeed. I also looked at the file after the preprocessor and it looked good:

ret = ({ __builtin_expect(!!(ops->match == fib6_rule_match), 1) ? fib6_rule_match(rule, fl, flags) : ops->match(rule, fl, flags); })

Note that fib4_rule_match doesn't appear as the
CONFIG_IP_MULTIPLE_TABLES is not there.

Could you share more details on how you're compiling it and what compiler you're using??

Thanks,
Brian

Quoted 92 lines · Sven Joachim
Quoted 10 lines · Sven Joachim
Quoted 5 lines · Brian Vazquez

Hi Sven,

Sorry for the late reply, did you still see this after:
https://patchwork.ozlabs.org/project/netdev/patch/[email protected]/
??

That patch is apparently already in 5.9-rc1 as commit 80fbbb1672e7, so yes I'm still seeing it.

Still present in 5.9-rc2 as of today, I have attached my .config for reference. Note that I have CONFIG_IPV6_MULTIPLE_TABLES=y, but CONFIG_IP_MULTIPLE_TABLES is not mentioned at all there.

To build the kernel, I have now deselected IPV6_MULTIPLE_TABLES. Not sure why this was enabled in my .config which has grown organically over many years.

Cheers,
Sven

Quoted 66 lines
Quoted 66 lines · Sven Joachim
Quoted 65 lines · Stephen Rothwell
Quoted 4 lines

Hi all,

After merging the net-next tree, today's linux-next build (i386

defconfig)

Quoted 3 lines

failed like this:

x86_64-linux-gnu-ld: net/core/fib_rules.o: in function

`fib_rules_lookup':

Quoted 2 lines

fib_rules.c:(.text+0x5c6): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x5d8): undefined reference to

`fib6_rule_match'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x64d): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x662): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x67a): undefined reference to

`fib6_rule_suppress'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x68d): undefined reference to

`fib6_rule_suppress'

FWIW, I saw these errors in 5.9-rc1 today, so the fix in commit 41d707b7332f ("fib: fix fib_rules_ops indirect calls wrappers") was apparently not sufficient.

,----

| $ grep IPV6 .config
| CONFIG_IPV6=m
| # CONFIG_IPV6_ROUTER_PREF is not set
| # CONFIG_IPV6_OPTIMISTIC_DAD is not set
| # CONFIG_IPV6_MIP6 is not set
| # CONFIG_IPV6_ILA is not set
| # CONFIG_IPV6_VTI is not set
| CONFIG_IPV6_SIT=m
| # CONFIG_IPV6_SIT_6RD is not set
| CONFIG_IPV6_NDISC_NODETYPE=y
| CONFIG_IPV6_TUNNEL=m
| CONFIG_IPV6_MULTIPLE_TABLES=y
| # CONFIG_IPV6_SUBTREES is not set
| # CONFIG_IPV6_MROUTE is not set
| # CONFIG_IPV6_SEG6_LWTUNNEL is not set
| # CONFIG_IPV6_SEG6_HMAC is not set
| # CONFIG_IPV6_RPL_LWTUNNEL is not set
| # CONFIG_NF_SOCKET_IPV6 is not set
| # CONFIG_NF_TPROXY_IPV6 is not set
| # CONFIG_NF_DUP_IPV6 is not set
| # CONFIG_NF_REJECT_IPV6 is not set
| # CONFIG_NF_LOG_IPV6 is not set
| CONFIG_NF_DEFRAG_IPV6=m

`----

Quoted 3 lines

Caused by commit

b9aaec8f0be5 ("fib: use indirect call wrappers in the most common

fib_rules_ops")

Quoted 4 lines

# CONFIG_IPV6_MULTIPLE_TABLES is not set

I have reverted that commit for today.

Cheers,
Sven

#7 lore raw
Quoted 6 lines · Brian Vazquez

I've been trying to reproduce it with your config but I didn't succeed. I also looked at the file after the preprocessor and it looked good:

ret = ({ __builtin_expect(!!(ops->match == fib6_rule_match), 1) ? fib6_rule_match(rule, fl, flags) : ops->match(rule, fl, flags); })

However, in my configuration I have CONFIG_IPV6=m, and so fib6_rule_match is not available as a builtin. I think that's why ld is complaining about the undefined reference.

Changing the configuration to CONFIG_IPV6=y helps, FWIW.

Quoted 5 lines

Note that fib4_rule_match doesn't appear as the
CONFIG_IP_MULTIPLE_TABLES is not there.

Could you share more details on how you're compiling it and what compiler you're using??

Tried with both gcc 9 and gcc 10 under Debian unstable, binutils 2.35. I usually use "make bindebpkg", but just running "make" is sufficient to reproduce the problem, as it happens when linking vmlinux.

Cheers,
Sven

Quoted 93 lines · Sven Joachim
Quoted 92 lines · Sven Joachim
Quoted 11 lines · Brian Vazquez
Quoted 6 lines

Hi Sven,

Sorry for the late reply, did you still see this after:
https://patchwork.ozlabs.org/project/netdev/patch/[email protected]/
??

That patch is apparently already in 5.9-rc1 as commit 80fbbb1672e7, so yes I'm still seeing it.

Still present in 5.9-rc2 as of today, I have attached my .config for reference. Note that I have CONFIG_IPV6_MULTIPLE_TABLES=y, but CONFIG_IP_MULTIPLE_TABLES is not mentioned at all there.

To build the kernel, I have now deselected IPV6_MULTIPLE_TABLES. Not sure why this was enabled in my .config which has grown organically over many years.

Cheers,
Sven

Quoted 66 lines
Quoted 66 lines · Sven Joachim
Quoted 65 lines · Stephen Rothwell
Quoted 4 lines

Hi all,

After merging the net-next tree, today's linux-next build (i386

defconfig)

Quoted 3 lines

failed like this:

x86_64-linux-gnu-ld: net/core/fib_rules.o: in function

`fib_rules_lookup':

Quoted 2 lines

fib_rules.c:(.text+0x5c6): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x5d8): undefined reference to

`fib6_rule_match'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x64d): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x662): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x67a): undefined reference to

`fib6_rule_suppress'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x68d): undefined reference to

`fib6_rule_suppress'

FWIW, I saw these errors in 5.9-rc1 today, so the fix in commit 41d707b7332f ("fib: fix fib_rules_ops indirect calls wrappers") was apparently not sufficient.

,----

| $ grep IPV6 .config
| CONFIG_IPV6=m
| # CONFIG_IPV6_ROUTER_PREF is not set
| # CONFIG_IPV6_OPTIMISTIC_DAD is not set
| # CONFIG_IPV6_MIP6 is not set
| # CONFIG_IPV6_ILA is not set
| # CONFIG_IPV6_VTI is not set
| CONFIG_IPV6_SIT=m
| # CONFIG_IPV6_SIT_6RD is not set
| CONFIG_IPV6_NDISC_NODETYPE=y
| CONFIG_IPV6_TUNNEL=m
| CONFIG_IPV6_MULTIPLE_TABLES=y
| # CONFIG_IPV6_SUBTREES is not set
| # CONFIG_IPV6_MROUTE is not set
| # CONFIG_IPV6_SEG6_LWTUNNEL is not set
| # CONFIG_IPV6_SEG6_HMAC is not set
| # CONFIG_IPV6_RPL_LWTUNNEL is not set
| # CONFIG_NF_SOCKET_IPV6 is not set
| # CONFIG_NF_TPROXY_IPV6 is not set
| # CONFIG_NF_DUP_IPV6 is not set
| # CONFIG_NF_REJECT_IPV6 is not set
| # CONFIG_NF_LOG_IPV6 is not set
| CONFIG_NF_DEFRAG_IPV6=m

`----

Quoted 3 lines

Caused by commit

b9aaec8f0be5 ("fib: use indirect call wrappers in the most common

fib_rules_ops")

Quoted 4 lines

# CONFIG_IPV6_MULTIPLE_TABLES is not set

I have reverted that commit for today.

Cheers,
Sven

#8 lore raw
Quoted 6 lines · Sven Joachim
Quoted 4 lines · Brian Vazquez

I've been trying to reproduce it with your config but I didn't succeed. I also looked at the file after the preprocessor and it looked good:

Quoted 6 lines
Quoted 2 lines

ret = ({ __builtin_expect(!!(ops->match == fib6_rule_match), 1) ? fib6_rule_match(rule, fl, flags) : ops->match(rule, fl, flags); })

However, in my configuration I have CONFIG_IPV6=m, and so fib6_rule_match is not available as a builtin. I think that's why ld is complaining about the undefined reference.

Same here FWIW. CONFIG_IPV6=m.

Quoted 108 lines

Changing the configuration to CONFIG_IPV6=y helps, FWIW.

Quoted 5 lines

Note that fib4_rule_match doesn't appear as the
CONFIG_IP_MULTIPLE_TABLES is not there.

Could you share more details on how you're compiling it and what compiler you're using??

Tried with both gcc 9 and gcc 10 under Debian unstable, binutils 2.35. I usually use "make bindebpkg", but just running "make" is sufficient to reproduce the problem, as it happens when linking vmlinux.

Cheers,
Sven

Quoted 92 lines · Sven Joachim
Quoted 91 lines · Sven Joachim
Quoted 11 lines · Brian Vazquez
Quoted 6 lines

Hi Sven,

Sorry for the late reply, did you still see this after:
https://patchwork.ozlabs.org/project/netdev/patch/[email protected]/
??

That patch is apparently already in 5.9-rc1 as commit 80fbbb1672e7, so yes I'm still seeing it.

Still present in 5.9-rc2 as of today, I have attached my .config for reference. Note that I have CONFIG_IPV6_MULTIPLE_TABLES=y, but CONFIG_IP_MULTIPLE_TABLES is not mentioned at all there.

To build the kernel, I have now deselected IPV6_MULTIPLE_TABLES. Not sure why this was enabled in my .config which has grown organically over many years.

Cheers,
Sven

Quoted 65 lines
Quoted 65 lines · Sven Joachim
Quoted 64 lines · Stephen Rothwell
Quoted 4 lines

Hi all,

After merging the net-next tree, today's linux-next build (i386

defconfig)

Quoted 3 lines

failed like this:

x86_64-linux-gnu-ld: net/core/fib_rules.o: in function

`fib_rules_lookup':

Quoted 2 lines

fib_rules.c:(.text+0x5c6): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x5d8): undefined reference to

`fib6_rule_match'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x64d): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x662): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x67a): undefined reference to

`fib6_rule_suppress'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x68d): undefined reference to

`fib6_rule_suppress'

FWIW, I saw these errors in 5.9-rc1 today, so the fix in commit 41d707b7332f ("fib: fix fib_rules_ops indirect calls wrappers") was apparently not sufficient.

,----

| $ grep IPV6 .config
| CONFIG_IPV6=m
| # CONFIG_IPV6_ROUTER_PREF is not set
| # CONFIG_IPV6_OPTIMISTIC_DAD is not set
| # CONFIG_IPV6_MIP6 is not set
| # CONFIG_IPV6_ILA is not set
| # CONFIG_IPV6_VTI is not set
| CONFIG_IPV6_SIT=m
| # CONFIG_IPV6_SIT_6RD is not set
| CONFIG_IPV6_NDISC_NODETYPE=y
| CONFIG_IPV6_TUNNEL=m
| CONFIG_IPV6_MULTIPLE_TABLES=y
| # CONFIG_IPV6_SUBTREES is not set
| # CONFIG_IPV6_MROUTE is not set
| # CONFIG_IPV6_SEG6_LWTUNNEL is not set
| # CONFIG_IPV6_SEG6_HMAC is not set
| # CONFIG_IPV6_RPL_LWTUNNEL is not set
| # CONFIG_NF_SOCKET_IPV6 is not set
| # CONFIG_NF_TPROXY_IPV6 is not set
| # CONFIG_NF_DUP_IPV6 is not set
| # CONFIG_NF_REJECT_IPV6 is not set
| # CONFIG_NF_LOG_IPV6 is not set
| CONFIG_NF_DEFRAG_IPV6=m

`----

Quoted 3 lines

Caused by commit

b9aaec8f0be5 ("fib: use indirect call wrappers in the most common

fib_rules_ops")

Quoted 4 lines

# CONFIG_IPV6_MULTIPLE_TABLES is not set

I have reverted that commit for today.

Cheers,
Sven

Signature · 1 line
~Randy
#9 lore raw
Quoted 8 lines · Randy Dunlap
Quoted 6 lines · Sven Joachim
Quoted 4 lines · Brian Vazquez

I've been trying to reproduce it with your config but I didn't succeed. I also looked at the file after the preprocessor and it looked good:

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

ret = ({ __builtin_expect(!!(ops->match == fib6_rule_match), 1) ? fib6_rule_match(rule, fl, flags) : ops->match(rule, fl, flags); })

However, in my configuration I have CONFIG_IPV6=m, and so fib6_rule_match is not available as a builtin. I think that's why ld is complaining about the undefined reference.

Same here FWIW. CONFIG_IPV6=m.

Oh I see,
I tried this and it seems to work fine for me, does this also fix your problem? if so, I'll prepare the patch, and thanks for helping!

net/core/fib_rules.c +1 -1
index 51678a528f85..40dfd1f55899 100644
@@ -16,7 +16,7 @@
 #include <net/ip_tunnels.h>
 #include <linux/indirect_call_wrapper.h>
 
-#ifdef CONFIG_IPV6_MULTIPLE_TABLES
+#if defined(CONFIG_IPV6_MULTIPLE_TABLES) && defined(CONFIG_IPV6)
 
Quoted 115 lines
Quoted 10 lines

Changing the configuration to CONFIG_IPV6=y helps, FWIW.

Quoted 5 lines

Note that fib4_rule_match doesn't appear as the
CONFIG_IP_MULTIPLE_TABLES is not there.

Could you share more details on how you're compiling it and what compiler you're using??

Quoted 100 lines

Tried with both gcc 9 and gcc 10 under Debian unstable, binutils 2.35. I usually use "make bindebpkg", but just running "make" is sufficient to reproduce the problem, as it happens when linking vmlinux.

Cheers,
Sven

Quoted 92 lines · Sven Joachim
Quoted 91 lines · Sven Joachim
Quoted 11 lines · Brian Vazquez
Quoted 6 lines

Hi Sven,

Sorry for the late reply, did you still see this after:
https://patchwork.ozlabs.org/project/netdev/patch/[email protected]/
??

That patch is apparently already in 5.9-rc1 as commit 80fbbb1672e7, so yes I'm still seeing it.

Still present in 5.9-rc2 as of today, I have attached my .config for reference. Note that I have CONFIG_IPV6_MULTIPLE_TABLES=y, but CONFIG_IP_MULTIPLE_TABLES is not mentioned at all there.

To build the kernel, I have now deselected IPV6_MULTIPLE_TABLES. Not sure why this was enabled in my .config which has grown organically over many years.

Cheers,
Sven

Quoted 65 lines
Quoted 65 lines · Sven Joachim
Quoted 64 lines · Stephen Rothwell
Quoted 4 lines

Hi all,

After merging the net-next tree, today's linux-next build (i386

defconfig)

Quoted 3 lines

failed like this:

x86_64-linux-gnu-ld: net/core/fib_rules.o: in function

`fib_rules_lookup':

Quoted 2 lines

fib_rules.c:(.text+0x5c6): undefined reference to `fib6_rule_match'
x86_64-linux-gnu-ld: fib_rules.c:(.text+0x5d8): undefined reference to

`fib6_rule_match'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x64d): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x662): undefined reference to

`fib6_rule_action'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x67a): undefined reference to

`fib6_rule_suppress'

Quoted 1 line

x86_64-linux-gnu-ld: fib_rules.c:(.text+0x68d): undefined reference to

`fib6_rule_suppress'

FWIW, I saw these errors in 5.9-rc1 today, so the fix in commit 41d707b7332f ("fib: fix fib_rules_ops indirect calls wrappers") was apparently not sufficient.

,----

| $ grep IPV6 .config
| CONFIG_IPV6=m
| # CONFIG_IPV6_ROUTER_PREF is not set
| # CONFIG_IPV6_OPTIMISTIC_DAD is not set
| # CONFIG_IPV6_MIP6 is not set
| # CONFIG_IPV6_ILA is not set
| # CONFIG_IPV6_VTI is not set
| CONFIG_IPV6_SIT=m
| # CONFIG_IPV6_SIT_6RD is not set
| CONFIG_IPV6_NDISC_NODETYPE=y
| CONFIG_IPV6_TUNNEL=m
| CONFIG_IPV6_MULTIPLE_TABLES=y
| # CONFIG_IPV6_SUBTREES is not set
| # CONFIG_IPV6_MROUTE is not set
| # CONFIG_IPV6_SEG6_LWTUNNEL is not set
| # CONFIG_IPV6_SEG6_HMAC is not set
| # CONFIG_IPV6_RPL_LWTUNNEL is not set
| # CONFIG_NF_SOCKET_IPV6 is not set
| # CONFIG_NF_TPROXY_IPV6 is not set
| # CONFIG_NF_DUP_IPV6 is not set
| # CONFIG_NF_REJECT_IPV6 is not set
| # CONFIG_NF_LOG_IPV6 is not set
| CONFIG_NF_DEFRAG_IPV6=m

`----

Quoted 3 lines

Caused by commit

b9aaec8f0be5 ("fib: use indirect call wrappers in the most common

fib_rules_ops")

Quoted 4 lines

# CONFIG_IPV6_MULTIPLE_TABLES is not set

I have reverted that commit for today.

Cheers,
Sven

--
~Randy

Acked-by
#10 lore raw
Quoted 26 lines · Brian Vazquez
Quoted 8 lines · Randy Dunlap
Quoted 6 lines · Sven Joachim
Quoted 4 lines · Brian Vazquez

I've been trying to reproduce it with your config but I didn't succeed. I also looked at the file after the preprocessor and it looked good:

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

ret = ({ __builtin_expect(!!(ops->match == fib6_rule_match), 1) ? fib6_rule_match(rule, fl, flags) : ops->match(rule, fl, flags); })

However, in my configuration I have CONFIG_IPV6=m, and so fib6_rule_match is not available as a builtin. I think that's why ld is complaining about the undefined reference.

Same here FWIW. CONFIG_IPV6=m.

Oh I see,
I tried this and it seems to work fine for me, does this also fix your problem? if so, I'll prepare the patch, and thanks for helping!

net/core/fib_rules.c +0 -0
index 51678a528f85..40dfd1f55899 100644

net/core/fib_rules.c line 19

Quoted 5 lines
net/core/fib_rules.c +1 -1
@@ -16,7 +16,7 @@
 #include <net/ip_tunnels.h>
 #include <linux/indirect_call_wrapper.h>
 
-#ifdef CONFIG_IPV6_MULTIPLE_TABLES
+#if defined(CONFIG_IPV6_MULTIPLE_TABLES) && defined(CONFIG_IPV6)

Yes, that works for me.
You can add this to your patch:

thanks.

Signature · 1 line
~Randy
#11 lore raw
Quoted 30 lines · Randy Dunlap
Quoted 29 lines · Brian Vazquez
Quoted 8 lines · Randy Dunlap
Quoted 6 lines · Sven Joachim
Quoted 4 lines · Brian Vazquez

I've been trying to reproduce it with your config but I didn't succeed. I also looked at the file after the preprocessor and it looked good:

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

ret = ({ __builtin_expect(!!(ops->match == fib6_rule_match), 1) ? fib6_rule_match(rule, fl, flags) : ops->match(rule, fl, flags); })

However, in my configuration I have CONFIG_IPV6=m, and so fib6_rule_match is not available as a builtin. I think that's why ld is complaining about the undefined reference.

Same here FWIW. CONFIG_IPV6=m.

Oh I see,
I tried this and it seems to work fine for me, does this also fix your problem? if so, I'll prepare the patch, and thanks for helping!

net/core/fib_rules.c +0 -0
index 51678a528f85..40dfd1f55899 100644
@@ -16,7 +16,7 @@
 #include <net/ip_tunnels.h>
 #include <linux/indirect_call_wrapper.h>
 
Quoted 8 lines

net/core/fib_rules.c line 19

Quoted 2 lines
net/core/fib_rules.c +1 -1
-#ifdef CONFIG_IPV6_MULTIPLE_TABLES
+#if defined(CONFIG_IPV6_MULTIPLE_TABLES) && defined(CONFIG_IPV6)

Yes, that works for me.
You can add this to your patch:

Works for me as well.

Cheers,
Sven