From nobody Mon Nov 29 12:58:05 2021 X-Original-To: bugs@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 7FAB718CDBB3 for ; Mon, 29 Nov 2021 12:58:05 +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 4J2ll104L6z4hmd for ; Mon, 29 Nov 2021 12:58:05 +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 D7B6F22DD0 for ; Mon, 29 Nov 2021 12:58:04 +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 1ATCw4ND086390 for ; Mon, 29 Nov 2021 12:58:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ATCw4NM086389 for bugs@FreeBSD.org; Mon, 29 Nov 2021 12:58:04 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 260114] [sctp] SO_SNDLOWAT is not accounted for when sending data Date: Mon, 29 Nov 2021 12:58:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: albin.hellqvist@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638190685; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s6oiqj6GhY+gi3zih23SwtapTVnKaMHQOJ+a3cccIOI=; b=XkZWq8V4AEapSPVS2WSXa2ZxWpEkW3SQkBE0JffQ0vKNmLDIBIRdkBEmmOfmfwtOkw8VP0 cei1w/TveCY2YAEiqZ6xYxJy7EWoIFJcdml2FMXQD/X7zKeY+dzW47eyuothrX47ycG9do CE53eAYYhz5N8cXoA70aVLXyfSXnJIwTRl/o4VXArUOPWkAGM/x5YNvCp26o8k8tZrXFPd tg94QMxFeB6nQQKRdevq5yA8iNA2/lp71yUByBuW+wirIX1rHeiMZiduTb52Cm01fZrSY7 6l4LzPEuRo/RVcqs4k3VU/aaH7CSeDhm4XAvw5AXrSdYtLJj9jCJmDVgwRmfcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638190685; a=rsa-sha256; cv=none; b=LAmCnq0mGnGqyTT+hGzSq6NC8kPIJJBz3NE7QF5YEBe0JKVj429IHFbxp3eIJ+MIwrWsBv OCuDUVgSvHgvKlriSfxagf1qv+8uElCqmBmSVG23LiGAxt1Wg3TWy7adcs5YgVvo2gM6+A 4uGDXplbqmcscT6OBPk2m7v1XfSXeo85jbpbUb9kPUO2xa7oSFz1nqs1WqSx2qzIDhDc8K U0AgHtM4DBscLCihcx5TF3XBRSojgKiyeXFsu1Oz2CpWm0oBzAygIJIqP1EwzrVu4Sh1lX uGeN4LGC6NWONULZ7A6sSzZIGLB7Ct3g27NmkIBNfTxzPqVmiEqfd9wIukd5mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260114 --- Comment #1 from Albin --- Created attachment 229789 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229789&action= =3Dedit Test files for reproducing the bug I added some tests if it helps. They can be compiled using: g++ -o client client.cpp utils.cpp g++ -o server server.cpp utils.cpp I have tested it in VMs with the SCTP module enabled. I have also added ali= as addresses to the loopback interface so that I could run both the server and client over the loopback interface. These alias addresess were added: 127.0.0.2 127.0.0.3 127.0.0.4 127.0.0.5 127.0.0.6 127.0.0.7 ::2 ::3 ::4 ::5 ::6 ::7 The test can be started using: ./server --poll --ipv4 --sctp --test-lower-water-mark ./client --poll --ipv4 --sctp --test-lower-water-mark IPv6 as well as TCP can be tested as well to compare the behavior. --=20 You are receiving this mail because: You are the assignee for the bug.=