ipvs: fix ipv6 hook registration for local replies
Subsystems (3)
Julian Anastasov
maintainerPATCH 1/1 ipvs: fix ipv6 hook registration for local replies
commit fc604767613b6d2036cdc35b660bc39451040a47 ("ipvs: changes for local real server") from 2.6.37 introduced DNAT support to local real server but the IPv6 LOCAL_OUT handler ip_vs_local_reply6() is registered incorrectly as IPv4 hook causing any outgoing IPv4 traffic to be dropped depending on the IP header values.
Chris tracked down the problem to CONFIG_IP_VS_IPV6=y
Bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349768
--- net/netfilter/ipvs/ip_vs_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/ipvs/ip_vs_core.c +1 -1
@@ -1906,7 +1906,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = { { .hook = ip_vs_local_reply6, .owner = THIS_MODULE, - .pf = NFPROTO_IPV4, + .pf = NFPROTO_IPV6, .hooknum = NF_INET_LOCAL_OUT, .priority = NF_IP6_PRI_NAT_DST + 1, },
Signature · 1 line
1.9.0
Simon Horman
maintainerQuoted 7 lines · Julian Anastasov
commit
fc604767613b6d2036cdc35b660bc39451040a47("ipvs: changes for local real server") from 2.6.37 introduced DNAT support to local real server but the IPv6LOCAL_OUThandlerip_vs_local_reply6()is registered incorrectly as IPv4 hook causing any outgoing IPv4 traffic to be dropped depending on the IP header values.
Quoted 6 lines
Chris tracked down the problem to
CONFIG_IP_VS_IPV6=y
Bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349768Reported-by Chris J Arges <[email protected]>Tested-by Chris J Arges <[email protected]>Signed-off-by Julian Anastasov <[email protected]>
Thanks, and sorry for the delay.
I have queued this up in the ipvs tree as a fix for v3.17. I also plan to ask for it to be considered for -stable.
Quoted 20 lines
--- net/netfilter/ipvs/ip_vs_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/netfilter/ipvs/ip_vs_core.c +1
-1@@ -1906,7 +1906,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = { { .hook = ip_vs_local_reply6, .owner = THIS_MODULE, - .pf = NFPROTO_IPV4, + .pf = NFPROTO_IPV6, .hooknum = NF_INET_LOCAL_OUT, .priority = NF_IP6_PRI_NAT_DST + 1, },Signature · 1 line
1.9.0
Quoted 11 lines · Simon Horman
Quoted 10 lines · Julian Anastasov
commit
fc604767613b6d2036cdc35b660bc39451040a47("ipvs: changes for local real server") from 2.6.37 introduced DNAT support to local real server but the IPv6LOCAL_OUThandlerip_vs_local_reply6()is registered incorrectly as IPv4 hook causing any outgoing IPv4 traffic to be dropped depending on the IP header values.Chris tracked down the problem to
CONFIG_IP_VS_IPV6=y
Bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349768
Quoted 8 lines
Quoted 3 lines
Reported-by Chris J Arges <[email protected]>Tested-by Chris J Arges <[email protected]>Signed-off-by Julian Anastasov <[email protected]>Thanks, and sorry for the delay.
I have queued this up in the ipvs tree as a fix for v3.17. I also plan to ask for it to be considered for -stable.
Julian,
Has this been queued up for netdev stable? Or should I send an email? Thanks,
--chris j arges
Quoted 21 lines
Quoted 20 lines
--- net/netfilter/ipvs/ip_vs_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/netfilter/ipvs/ip_vs_core.c +1
-1@@ -1906,7 +1906,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = { { .hook = ip_vs_local_reply6, .owner = THIS_MODULE, - .pf = NFPROTO_IPV4, + .pf = NFPROTO_IPV6, .hooknum = NF_INET_LOCAL_OUT, .priority = NF_IP6_PRI_NAT_DST + 1, },Signature · 1 line
1.9.0
Simon Horman
maintainer[CC Pablo]
Quoted 16 lines · Chris J Arges
Quoted 15 lines · Simon Horman
Quoted 13 lines · Julian Anastasov
commit
fc604767613b6d2036cdc35b660bc39451040a47("ipvs: changes for local real server") from 2.6.37 introduced DNAT support to local real server but the IPv6LOCAL_OUThandlerip_vs_local_reply6()is registered incorrectly as IPv4 hook causing any outgoing IPv4 traffic to be dropped depending on the IP header values.Chris tracked down the problem to
CONFIG_IP_VS_IPV6=y
Bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349768Reported-by Chris J Arges <[email protected]>Tested-by Chris J Arges <[email protected]>Signed-off-by Julian Anastasov <[email protected]>
Quoted 7 lines
Quoted 4 lines
Thanks, and sorry for the delay.
I have queued this up in the ipvs tree as a fix for v3.17. I also plan to ask for it to be considered for -stable.Julian,
Has this been queued up for netdev stable? Or should I send an email? Thanks,
Pablo I'm not sure that this has been queued up for stable (possibly due to some error on my part). What is the best way forwards?
Quoted 28 lines
--chris j arges
Quoted 4 lines
Quoted 4 lines
--- net/netfilter/ipvs/ip_vs_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 17 lines
Quoted 16 lines
net/netfilter/ipvs/ip_vs_core.c +1
-1@@ -1906,7 +1906,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = { { .hook = ip_vs_local_reply6, .owner = THIS_MODULE, - .pf = NFPROTO_IPV4, + .pf = NFPROTO_IPV6, .hooknum = NF_INET_LOCAL_OUT, .priority = NF_IP6_PRI_NAT_DST + 1, },Signature · 1 line
1.9.0--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Pablo Neira Ayuso
maintainerQuoted 23 lines · Simon Horman
[CC Pablo]
Quoted 20 lines · Chris J Arges
Quoted 19 lines · Simon Horman
Quoted 7 lines · Julian Anastasov
commit
fc604767613b6d2036cdc35b660bc39451040a47("ipvs: changes for local real server") from 2.6.37 introduced DNAT support to local real server but the IPv6LOCAL_OUThandlerip_vs_local_reply6()is registered incorrectly as IPv4 hook causing any outgoing IPv4 traffic to be dropped depending on the IP header values.Quoted 6 lines
Chris tracked down the problem to
CONFIG_IP_VS_IPV6=y
Bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349768Reported-by Chris J Arges <[email protected]>Tested-by Chris J Arges <[email protected]>Signed-off-by Julian Anastasov <[email protected]>Thanks, and sorry for the delay.
I have queued this up in the ipvs tree as a fix for v3.17. I also plan to ask for it to be considered for -stable.
Quoted 7 lines
Quoted 3 lines
Julian,
Has this been queued up for netdev stable? Or should I send an email? Thanks,Pablo I'm not sure that this has been queued up for stable (possibly due to some error on my part). What is the best way forwards?
Just sent a batch with pending Netfilter/IPVS to -stable. The patch authors has been Cc'ed. I didn't Cc'ed the mailing list to not generate more load on redudant patches, but I can do it if you prefer so.
Let me know if we don't get any feedback from -stable soon to get this patches in. Thanks.
Simon Horman
maintainerQuoted 32 lines · Pablo Neira Ayuso
Quoted 23 lines · Simon Horman
[CC Pablo]
Quoted 20 lines · Chris J Arges
Quoted 19 lines · Simon Horman
Quoted 7 lines · Julian Anastasov
commit
fc604767613b6d2036cdc35b660bc39451040a47("ipvs: changes for local real server") from 2.6.37 introduced DNAT support to local real server but the IPv6LOCAL_OUThandlerip_vs_local_reply6()is registered incorrectly as IPv4 hook causing any outgoing IPv4 traffic to be dropped depending on the IP header values.Quoted 6 lines
Chris tracked down the problem to
CONFIG_IP_VS_IPV6=y
Bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349768Reported-by Chris J Arges <[email protected]>Tested-by Chris J Arges <[email protected]>Signed-off-by Julian Anastasov <[email protected]>Thanks, and sorry for the delay.
I have queued this up in the ipvs tree as a fix for v3.17. I also plan to ask for it to be considered for -stable.Quoted 7 lines
Quoted 3 lines
Julian,
Has this been queued up for netdev stable? Or should I send an email? Thanks,Pablo I'm not sure that this has been queued up for stable (possibly due to some error on my part). What is the best way forwards?
Quoted 7 lines
Just sent a batch with pending Netfilter/IPVS to -stable. The patch authors has been Cc'ed. I didn't Cc'ed the mailing list to not generate more load on redudant patches, but I can do it if you prefer so.
Let me know if we don't get any feedback from -stable soon to get this patches in. Thanks.
Thanks Pablo.