From nobody Tue Sep 07 09:47:30 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 663A217AEDC5; Tue, 7 Sep 2021 09:47:35 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H3gRW191Rz3FHT; Tue, 7 Sep 2021 09:47:35 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-lf1-x12a.google.com with SMTP id h16so18346210lfk.10; Tue, 07 Sep 2021 02:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c0Ug/ycyNAh5YDjI3m6iA2hoblDyB7rSXq1PUxtVvrY=; b=RngwoCd/9cW+FyaDI4RwMEQlq7yCP4a2oAh43wTIgpAGEWRz/umPkPWc48VtGzkaUT iEme54TgRiD1G7CsZdTsfMpVYhsjBIPiM48aL0WRqN6eoSb+IDj9tdQfe2JfJmJFRgso YfaVHW80Ptdi1jFLONHIPDz7/QqCqPE+Fzuh7DIyPmKMYxbsmjltjDpzw1e6a5ZYNt9c RiSiBgb9tbDRCbDis8JImWAZDlQillirxnzPo0Hkq3uqffJYW/GZcv9YEw2DKB5uuWPR I+KS1BjYaCuwFssJuvP5FH43d/IrZGeRPOOcNHpJL5OKBJlVCdV0UZykryqOcABiD7Wa TwMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=c0Ug/ycyNAh5YDjI3m6iA2hoblDyB7rSXq1PUxtVvrY=; b=ii4h0DRVOrUSFTEiJZZL5cFuWz9q9vLmCeZW0XGVtb4HP8f5bCkBcDEKWE0J2yq4zj UJzkHwtxRcT8ZnoJq60wwhSGSUGLWnbLrWuCEc8QvhuzhFFCLjyeBKtZDQXofQReNqlY 6XmorH4Q0BqQ25e3MD3VfKm/SRzkd3rqXdhCcfKvDePUjmGok7qjEdQFvmhUSgMez/7K XppJoYnR1UgaWa5hd7iUpfP+U84cEJsq6lY12QGf0Eyi+V47cFW4su2F/pBB3vkqrQ9Q MSgYcjhc2cUbVRJ2cuyGeW33+UUPUBG8+INRA4MQR8eHjFaJOUMDVlJfLJsUkcQi4xj+ AQDQ== X-Gm-Message-State: AOAM530AZcV3/DjOLenMBtDDCaWh1VMRl/eJHdjl9lGoBPYkVj6LEyaS CQgMrSL5JDd7Z4DqBiQzlaigHhK7nBs= X-Google-Smtp-Source: ABdhPJyKmYiUkWn9raJzqsqKAhWFyvy1WbZl0iWpYQI+JuZTcXy8F2zNghtqT+5aHgH7y1A+NJDnlA== X-Received: by 2002:a05:6512:3b12:: with SMTP id f18mr11644108lfv.423.1631008053578; Tue, 07 Sep 2021 02:47:33 -0700 (PDT) Received: from rimwks.local ([2001:470:1f15:3d8:7285:c2ff:fe37:5722]) by smtp.gmail.com with ESMTPSA id m19sm958429lfu.1.2021.09.07.02.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 02:47:33 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Tue, 7 Sep 2021 12:47:30 +0300 To: Michael Tuexen Cc: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: TCP connection ignore RST Message-ID: <20210907124730.7a4a3b9a@rimwks.local> In-Reply-To: <1804249E-FD55-4A4A-9895-BCEDF2323137@lurchi.franken.de> References: <20210904023730.5eddd6fd@rimwks.local> <927CA9E9-AB74-443D-83A7-931325DB7686@lurchi.franken.de> <20210907051034.5669a02d@rimwks.local> <1804249E-FD55-4A4A-9895-BCEDF2323137@lurchi.franken.de> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4H3gRW191Rz3FHT X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, 7 Sep 2021 10:47:01 +0200 Michael Tuexen wrote: > >>> I have strange case: FreeBSD 12.2 ignore TCP RST from windows host > >>> and continue retransmitting packets. sockstat show that socket > >>> connected even after many tcp rst packets received. > >>> > >>> Any ideas how to fix it? > >> Where is the trace taken? On the Windows side or on the FreeBSD > >> side or somewhere else? Could you provide the .pcap file? > >> > > > > From FreeBSD side. > > > > https://reviews.freebsd.org/D28142 > > e82353f84c58da9a5c38bd471a09936c16a5b6ea > > https://reviews.freebsd.org/D28143 > > d05d908d6d3c85479c84c707f931148439ae826b sysctl > > net.inet.tcp.tolerate_missing_ts=1 this fixes issue for me. > That was my first guess, but after double checking, this code is not > present in FreeBSD 12.2. However, it is present in stable/12. > So could it be that you are using stable/12 and not 12.2? > System build from: commit 8c01699f9194cfa3805ac734ae912529a10c063a CommitDate: Wed Jan 20 14:40:13 2021 +0100 Add some examples to script.1... It is not "clean" 12.2, and it is a bit early than commits with fixes.