Skip to contentSkip to conversation

netfilter: nf_reject: bridge: fix build errors due to code movement

PATCH In review Randy Dunlap 2 participants 3 messages Nov 16, 2020

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

PATCH 1/1 netfilter: nf_reject: bridge: fix build errors due to code movement

Fix build errors in net/bridge/netfilter/nft_reject_bridge.ko by selecting NF_REJECT_IPV4, which provides the missing symbols.

ERROR: modpost: "nf_reject_skb_v4_tcp_reset" [net/bridge/netfilter/nft_reject_bridge.ko] undefined!
ERROR: modpost: "nf_reject_skb_v4_unreach" [net/bridge/netfilter/nft_reject_bridge.ko] undefined!

Fixes fa538f7cf05a ("netfilter: nf_reject: add reject skbuff creation helpers")
Cc kernel test robot <[email protected]>
Cc Jose M. Guisado Gomez <[email protected]>
Cc Pablo Neira Ayuso <[email protected]>
Cc Jozsef Kadlecsik <[email protected]>
Cc Florian Westphal <[email protected]>
Cc Jakub Kicinski <[email protected]>
---
 net/bridge/netfilter/Kconfig |    1 +
 1 file changed, 1 insertion(+)
net/bridge/netfilter/Kconfig +1 -0
@@ -18,6 +18,7 @@ config NFT_BRIDGE_META
 config NFT_BRIDGE_REJECT
 	tristate "Netfilter nf_tables bridge reject support"
 	depends on NFT_REJECT
+	depends on NF_REJECT_IPV4
 	help
 	  Add support to reject packets.
 
#1 lore raw

Hi,

Thanks for catching up this.

Quoted 24 lines · Randy Dunlap

Fix build errors in net/bridge/netfilter/nft_reject_bridge.ko by selecting NF_REJECT_IPV4, which provides the missing symbols.

ERROR: modpost: "nf_reject_skb_v4_tcp_reset" [net/bridge/netfilter/nft_reject_bridge.ko] undefined!
ERROR: modpost: "nf_reject_skb_v4_unreach" [net/bridge/netfilter/nft_reject_bridge.ko] undefined!

Fixes fa538f7cf05a ("netfilter: nf_reject: add reject skbuff creation helpers")
Cc kernel test robot <[email protected]>
Cc Jose M. Guisado Gomez <[email protected]>
Cc Pablo Neira Ayuso <[email protected]>
Cc Jozsef Kadlecsik <[email protected]>
Cc Florian Westphal <[email protected]>
Cc Jakub Kicinski <[email protected]>
---
 net/bridge/netfilter/Kconfig |    1 +
 1 file changed, 1 insertion(+)

net/bridge/netfilter/Kconfig config NFT_BRIDGE_META · line 21

Quoted 4 lines
net/bridge/netfilter/Kconfig +1 -0
@@ -18,6 +18,7 @@ config NFT_BRIDGE_META
 config NFT_BRIDGE_REJECT
 	tristate "Netfilter nf_tables bridge reject support"
 	depends on NFT_REJECT
+	depends on NF_REJECT_IPV4

I can update the patch here before applying to add:

depends on NF_REJECT_IPV6

as well. It seems both dependencies (IPv4 and IPv6) are missing.

Thanks.

Quoted 3 lines
net/bridge/netfilter/Kconfig +0 -0
 	help
 	  Add support to reject packets.
 
#2 lore raw
Quoted 36 lines · Pablo Neira Ayuso

Hi,

Thanks for catching up this.

Quoted 24 lines · Randy Dunlap

Fix build errors in net/bridge/netfilter/nft_reject_bridge.ko by selecting NF_REJECT_IPV4, which provides the missing symbols.

ERROR: modpost: "nf_reject_skb_v4_tcp_reset" [net/bridge/netfilter/nft_reject_bridge.ko] undefined!
ERROR: modpost: "nf_reject_skb_v4_unreach" [net/bridge/netfilter/nft_reject_bridge.ko] undefined!

Fixes fa538f7cf05a ("netfilter: nf_reject: add reject skbuff creation helpers")
Cc kernel test robot <[email protected]>
Cc Jose M. Guisado Gomez <[email protected]>
Cc Pablo Neira Ayuso <[email protected]>
Cc Jozsef Kadlecsik <[email protected]>
Cc Florian Westphal <[email protected]>
Cc Jakub Kicinski <[email protected]>
---
 net/bridge/netfilter/Kconfig |    1 +
 1 file changed, 1 insertion(+)

net/bridge/netfilter/Kconfig config NFT_BRIDGE_META · line 21

Quoted 4 lines
net/bridge/netfilter/Kconfig +1 -0
@@ -18,6 +18,7 @@ config NFT_BRIDGE_META
 config NFT_BRIDGE_REJECT
 	tristate "Netfilter nf_tables bridge reject support"
 	depends on NFT_REJECT
+	depends on NF_REJECT_IPV4

I can update the patch here before applying to add:

Quoted 9 lines

depends on NF_REJECT_IPV6

as well. It seems both dependencies (IPv4 and IPv6) are missing.

Thanks.

Quoted 3 lines
net/bridge/netfilter/Kconfig +0 -0
 	help
 	  Add support to reject packets.
 

Yes, that's good.

Thanks.

Signature · 1 line
~Randy