From: Simon Horman <horms@verge.net.au>
To: Julian Anastasov <ja@ssi.bg>, Pablo Neira Ayuso <pablo@netfilter.org>
Cc: lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org,
Alex Gartrell <agartrell@fb.com>,
Jacky Hu <hengqing.hu@gmail.com>,
jacky.hu@walmart.com, jason.niesz@walmart.com
Subject: Re: [PATCH net] ipvs: do not schedule icmp errors from tunnels
Date: Wed, 3 Apr 2019 09:45:24 +0200 [thread overview]
Message-ID: <20190403074521.uijb34c6mo264nmg@verge.net.au> (raw)
In-Reply-To: <20190331102452.7415-1-ja@ssi.bg>
On Sun, Mar 31, 2019 at 01:24:52PM +0300, Julian Anastasov wrote:
> We can receive ICMP errors from client or from
> tunneling real server. While the former can be
> scheduled to real server, the latter should
> not be scheduled, they are decapsulated only when
> existing connection is found.
>
> Fixes: 6044eeffafbe ("ipvs: attempt to schedule icmp packets")
> Signed-off-by: Julian Anastasov <ja@ssi.bg>
Thanks Julian, I assume this is also relevant to -stable.
Pablo, please consider applying this to nf.
Signed-off-by: Simon Horman <horms@verge.net.au>
> ---
> net/netfilter/ipvs/ip_vs_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
> index 43bbaa32b1d6..14457551bcb4 100644
> --- a/net/netfilter/ipvs/ip_vs_core.c
> +++ b/net/netfilter/ipvs/ip_vs_core.c
> @@ -1678,7 +1678,7 @@ ip_vs_in_icmp(struct netns_ipvs *ipvs, struct sk_buff *skb, int *related,
> if (!cp) {
> int v;
>
> - if (!sysctl_schedule_icmp(ipvs))
> + if (ipip || !sysctl_schedule_icmp(ipvs))
> return NF_ACCEPT;
>
> if (!ip_vs_try_to_schedule(ipvs, AF_INET, skb, pd, &v, &cp, &ciph))
> --
> 2.17.1
>
next prev parent reply other threads:[~2019-04-03 7:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-31 10:24 [PATCH net] ipvs: do not schedule icmp errors from tunnels Julian Anastasov
2019-04-03 7:45 ` Simon Horman [this message]
2019-04-03 20:43 ` Julian Anastasov
2019-04-13 13:00 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190403074521.uijb34c6mo264nmg@verge.net.au \
--to=horms@verge.net.au \
--cc=agartrell@fb.com \
--cc=hengqing.hu@gmail.com \
--cc=ja@ssi.bg \
--cc=jacky.hu@walmart.com \
--cc=jason.niesz@walmart.com \
--cc=lvs-devel@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).