From owner-freebsd-bugs@freebsd.org Sat Feb 13 07:28:59 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A081C5430DE for ; Sat, 13 Feb 2021 07:28:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Dd26g3z9Vz3NyC for ; Sat, 13 Feb 2021 07:28:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 885B2542D6D; Sat, 13 Feb 2021 07:28:59 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 881F45430DC for ; Sat, 13 Feb 2021 07:28:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dd26g3Jg2z3P3F for ; Sat, 13 Feb 2021 07:28:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 64E1012E70 for ; Sat, 13 Feb 2021 07:28:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 11D7SxMv032861 for ; Sat, 13 Feb 2021 07:28:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 11D7Sxmg032860 for bugs@FreeBSD.org; Sat, 13 Feb 2021 07:28:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 253476] ipfw keepalive: tcp_do_segment: Timestamp missing, segment silently dropped Date: Sat, 13 Feb 2021 07:28:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shoesoft@gmx.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Feb 2021 07:28:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253476 Bug ID: 253476 Summary: ipfw keepalive: tcp_do_segment: Timestamp missing, segment silently dropped Product: Base System Version: 13.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: shoesoft@gmx.net After upgrading from 12.2 to 13.0-BETA1 TCP connections can no longer trans= fer data after being idle. git bisect revealed the regression was introduced in 283c76c7c3f2f634f19f303a771a3f81fe890cab The problem is that the keepalive packets for keep-state rules are dropped. Dynamic rules are removed and the existing connections no longer work. As a workaround net.inet.tcp.tolerate_missing_ts=3D1 can be used. How to reproduce: The test setup uses epair for network communication to rule out a faulty 3rd party TCP stack. I can also reproduce the problem with real network hosts. Tested with 13.0-BETA1 amd64 VM-image in virtualbox. Terminal 1: kldload ipfw sysctl net.inet.tcp.log_debug=3D1 sysctl net.inet.ip.fw.dyn_ack_lifetime=3D60 # optional, speeds up testing ipfw add allow tcp from me to any setup keep-state ifconfig epair0 create ifconfig epair0a 10.0.0.101 up ifconfig epair0b 10.0.0.102 up while true; do ipfw -Da list; sleep 1; done # list dynamic rules, sh syntax Terminal 2: nc -l 10.0.0.101 12345 Terminal 3: nc -s 10.0.0.102 10.0.0.101 12345 With TCP debug enabled, I can see the following log entry: TCP: [10.0.0.102]:13140 to [10.0.0.101]:12345 tcpflags 0x10; tcp_do_segment: Timestamp missing, segment silently dropped The timer of the dynamic rule expires and is removed. --=20 You are receiving this mail because: You are the assignee for the bug.=