Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp326787rdb; Thu, 30 Nov 2023 06:02:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgK7dxLfnNZNrvdlzwa+FnrZfmv/iv5aQlSrTd3Ch0Y82o7SC2Nd+sAtbLp8gKyUCENRKf X-Received: by 2002:a17:903:2309:b0:1d0:15d9:f4cd with SMTP id d9-20020a170903230900b001d015d9f4cdmr8190282plh.33.1701352975861; Thu, 30 Nov 2023 06:02:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701352975; cv=none; d=google.com; s=arc-20160816; b=DCTGXrmnckMX+HG6L7GoxRXNY46XTTGiDvzI/NwIjP/7Ukx+BA72Wgu7Qn66XbKbaw j7YU0vfxcin4o19RhdoTNnN+aeBVpRC87MzbfjEA8ru1rgiba7xJM6o6gpXZOrNj2ix9 ffHUaMPLhNQf/X8CMyZHG4v2/bj0hdc+kd9ZX7AqL+XjqxaRTr0YjIstgcbQ8I36KVi/ 5amo/LvQ6G7GMISskoe4373xfzNSUF3AxPFzLnMZKy9l2PopQoDWIhsw5X1a1QjkAYPI ZZX90SLdECYGiz8e2xpSvbtFclFkVaSQxVDE0sOxFA1qhwgoclQRsVYm1DvTOAr8FWJa 6tBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wxBMiGcAEd4doX2T6kUaaKToconnxbKJJPNo5nm1fd4=; fh=A4/l+pPyQmEaWBbb3/a2RpUIlOlG+XNpu+II/I4QetA=; b=kZZ0wXyb5V3M9z+ZdDbmrCTjEn5FO1xgkoI1zn+l67QAcuvIvX/o+tJV+OYpOv0gmm aYm1YC7dIdK3HYmFEHI4MVwKlqDfel6O5nN3ap3c5wthrS8v/QHHoaPW3WvtsHUcYuao mJ5h6lSOSURlEJeljOHSzRBASntPRb+nv4CyHo5GuzDLD/cYtAyTXhsz0rkidcF68q+B 7pRzkDVlrFZYzWZ+W1Tj/9z0Ss50StKjvNSbpMQhIZXl71wwpir8s4Jwq49ZDNxDa/Lc ovJXTUvX+blEf25GLwJZRrfsujSUL8FJg5D00ocXsA9ZlXJqFTxe3CiGzt57TRdEF25Q hkuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OCP2R1Rq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id t6-20020a170902e84600b001cf7c3a22c9si1310109plg.276.2023.11.30.06.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:02:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OCP2R1Rq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 37CC58080007; Thu, 30 Nov 2023 06:02:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345567AbjK3OCI (ORCPT + 99 others); Thu, 30 Nov 2023 09:02:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232021AbjK3OCG (ORCPT ); Thu, 30 Nov 2023 09:02:06 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE8E9B9 for ; Thu, 30 Nov 2023 06:02:12 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-548ae9a5eeaso9965a12.1 for ; Thu, 30 Nov 2023 06:02:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701352931; x=1701957731; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wxBMiGcAEd4doX2T6kUaaKToconnxbKJJPNo5nm1fd4=; b=OCP2R1RqAZDCq6wXGz74eZL+wxQIbqkSreG/uMzQADiOjLifhVwbq9Rtu79e/RTiUT g+BjpyARHtw2DSG1Yk/IJDtRNu9ckZvENcYrhc/oJFf28XTUK2WA4GDxX+zCSdyxKBoJ GMjCKG3L6V9K+DCtYmKgpWVf0nQpMuLDMbfg8h1Bj271OnpMx3TU/PA/jQZglZILAM7G aasOYD2bm254PNgOEmuM1U7o4QnbufgjrClkPhAwRUuTQkVcWBL7dxV3BXrtSZV4mk74 v0C1EzdsMLIoo/u2+HKtB1x3Ts/KlvnFWHfD1xOM4LwT+J2nbaXd8JYkoq8eJyniQ3GC t6Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701352931; x=1701957731; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wxBMiGcAEd4doX2T6kUaaKToconnxbKJJPNo5nm1fd4=; b=uM+rsdtpJsvp9+qCSKIGxNXP8YD8wPiodSe8a0jk4FCZPsCBs5IZIzku4TpDhyADoi +dph8Mw7juBe1t3GxZdXDtzV6eHjuz7uAz713iIoEZCUk/FepNkck3njHam//1dCUmKX RDrFe5sD+RloPpqGrxT3uZFYVkTuUG9I6IX3KwqqW+Gfk6jrUfO+kglyWTCsMbdexuMP izKEVQAvjPXcvE2Gmo9HmICFzv7eUEVhnx2Mr4aIjUlca6sFdpQkydw8lMDAkmxNcoHs X4zrWFFwW8jInVbZpuCb5tKmu/sXx3nqBPpPLsCstlBdpDeze5QdGMng34ftkNZqnK94 EADA== X-Gm-Message-State: AOJu0Ywpfh3XpWqYmdauvgE5L2jqnO0kRnNNL++tkMbe6sBxdIrGW1Fu U1gVqg3QLvWtj3yff8GeMuxMdgt6Yo86/+aEZ8K2+g== X-Received: by 2002:a50:8a8e:0:b0:54b:bf08:a95f with SMTP id j14-20020a508a8e000000b0054bbf08a95fmr167000edj.6.1701352931041; Thu, 30 Nov 2023 06:02:11 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eric Dumazet Date: Thu, 30 Nov 2023 15:01:56 +0100 Message-ID: Subject: Re: Bug report connect to VM with Vagrant To: Shachar Kagan Cc: "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "kuba@kernel.org" , Jason Gunthorpe , Yishai Hadas , Ido Kalir , Topaz Uliel , Shirly Ohnona , Ziyad Atiyyeh Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 06:02:25 -0800 (PST) On Thu, Nov 30, 2023 at 2:55=E2=80=AFPM Shachar Kagan w= rote: > > Hi Eric, > > I have an issue that bisection pointed at this patch: > commit 0a8de364ff7a14558e9676f424283148110384d6 > tcp: no longer abort SYN_SENT when receiving some ICMP > Please provide tcpdump/pcap captures. It is hard to say what is going on just by looking at some application log= s. > Full commit message at [1]. > > The issue appears while using Vagrant to manage nested VMs. > The steps are: > * create vagrant file > * vagrant up > * vagrant halt (VM is created but shut down) > * vagrant up - fail > > Turn on a VM with =E2=80=98Vagrant up=E2=80=99 fails when the VM is in ha= lt state. When the VM hasn't been created yet, 'Vagrant up' passes. > The failure occurs in the Net-SSH connection to the VM step. > Vagrant error is =E2=80=98Guest communication could not be established! T= his is usually because SSH is not running, the authentication information w= as changed, or some other networking issue.' > We use a new version of vagrant-libvirt. > Turn on the VM with virsh instead of vagrant works. > > Stdout[2] bellow. > > Any idea what may cause the error with your patch? > > Thanks, > Shachar Kagan > > [1] > commit 0a8de364ff7a14558e9676f424283148110384d6 > Author: Eric Dumazet > Date: Tue Nov 14 17:23:41 2023 +0000 > > tcp: no longer abort SYN_SENT when receiving some ICMP > > Currently, non fatal ICMP messages received on behalf > of SYN_SENT sockets do call tcp_ld_RTO_revert() > to implement RFC 6069, but immediately call tcp_done(), > thus aborting the connect() attempt. > > This violates RFC 1122 following requirement: > > 4.2.3.9 ICMP Messages > ... > o Destination Unreachable -- codes 0, 1, 5 > > Since these Unreachable messages indicate soft error > conditions, TCP MUST NOT abort the connection, and i= t > SHOULD make the information available to the > application. > > This patch makes sure non 'fatal' ICMP[v6] messages do not > abort the connection attempt. > > It enables RFC 6069 for SYN_SENT sockets as a result. > > Signed-off-by: Eric Dumazet > Cc: David Morley > Cc: Neal Cardwell > Cc: Yuchung Cheng > Signed-off-by: David S. Miller > > [2] > Vagrant up stdout: > Bringing machine 'player1' up with 'libvirt' provider... > =3D=3D> player1: Creating shared folders metadata... > =3D=3D> player1: Starting domain. > =3D=3D> player1: Domain launching with graphics connection settings... > =3D=3D> player1: -- Graphics Port: 5900 > =3D=3D> player1: -- Graphics IP: 127.0.0.1 > =3D=3D> player1: -- Graphics Password: Not defined > =3D=3D> player1: -- Graphics Websocket: 5700 > =3D=3D> player1: Waiting for domain to get an IP address... > =3D=3D> player1: Waiting for machine to boot. This may take a few minutes= ... > player1: SSH address: 192.168.123.61:22 > player1: SSH username: vagrant > player1: SSH auth method: private key > =3D=3D> player1: Attempting graceful shutdown of VM... > =3D=3D> player1: Attempting graceful shutdown of VM... > =3D=3D> player1: Attempting graceful shutdown of VM... > player1: Guest communication could not be established! This is usuall= y because > player1: SSH is not running, the authentication information was chang= ed, > player1: or some other networking issue. Vagrant will force halt, if > player1: capable. > =3D=3D> player1: Attempting direct shutdown of domain... > >