From: Jakub Kicinski <kuba@kernel.org>
To: Neal Cardwell <ncardwell@google.com>
Cc: Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org
Subject: Re: ICMP_PARAMETERPROB and ICMP_TIME_EXCEEDED during connect
Date: Tue, 26 Mar 2024 16:55:54 -0700 [thread overview]
Message-ID: <20240326165554.541551c3@kernel.org> (raw)
In-Reply-To: <CADVnQymqFELYQqpoDsxh=z2XxvhMSvdUfCyjgRYeA1QaesnpEg@mail.gmail.com>
On Tue, 26 Mar 2024 23:03:26 +0100 Neal Cardwell wrote:
> On Tue, Mar 26, 2024 at 9:34 PM Jakub Kicinski <kuba@kernel.org> wrote:
> >
> > Hi!
> >
> > I got a report from a user surprised/displeased that ICMP_TIME_EXCEEDED
> > breaks connect(), while TCP RFCs say it shouldn't. Even pointing a
> > finger at Linux, RFC5461:
> >
> > A number of TCP implementations have modified their reaction to all
> > ICMP soft errors and treat them as hard errors when they are received
> > for connections in the SYN-SENT or SYN-RECEIVED states. For example,
> > this workaround has been implemented in the Linux kernel since
> > version 2.0.0 (released in 1996) [Linux]. However, it should be
> > noted that this change violates section 4.2.3.9 of [RFC1122], which
> > states that these ICMP error messages indicate soft error conditions
> > and that, therefore, TCP MUST NOT abort the corresponding connection.
> >
> > Is there any reason we continue with this behavior or is it just that
> > nobody ever sent a patch?
>
> Back in November of 2023 Eric did merge a patch to bring the
> processing in line with section 4.2.3.9 of [RFC1122]:
>
> 0a8de364ff7a tcp: no longer abort SYN_SENT when receiving some ICMP
>
> However, the fixed behavior did not meet some expectations of Vagrant
> (see the netdev thread "Bug report connect to VM with Vagrant"), so
> for now it got reverted:
>
> b59db45d7eba tcp: Revert no longer abort SYN_SENT when receiving some ICMP
>
> I think the hope was to root-cause the Vagrant issue, fix Vagrant's
> assumptions, then resubmit Eric's commit. Eric mentioned on Jan 8,
> 2024: "We will submit the patch again for 6.9, once we get to the root
> cause." But I don't think anyone has had time to do that yet.
Ah.
Thank you!!
next prev parent reply other threads:[~2024-03-26 23:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-26 20:34 ICMP_PARAMETERPROB and ICMP_TIME_EXCEEDED during connect Jakub Kicinski
2024-03-26 22:03 ` Neal Cardwell
2024-03-26 23:55 ` Jakub Kicinski [this message]
2024-03-27 13:05 ` Eric Dumazet
2024-04-02 13:21 ` Leon Romanovsky
2024-04-02 13:31 ` Eric Dumazet
2024-04-02 14:17 ` Jason Xing
2024-04-02 17:32 ` Leon Romanovsky
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=20240326165554.541551c3@kernel.org \
--to=kuba@kernel.org \
--cc=edumazet@google.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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).