From nobody Mon Nov 29 13:37:32 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 B6CAC18B9A37 for ; Mon, 29 Nov 2021 13:37:32 +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 4J2mcX2pgjz4vQg for ; Mon, 29 Nov 2021 13:37:32 +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 3FD16235A3 for ; Mon, 29 Nov 2021 13:37:32 +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 1ATDbWOX008197 for ; Mon, 29 Nov 2021 13:37:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ATDbWLe008196 for bugs@FreeBSD.org; Mon, 29 Nov 2021 13:37:32 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 260116] [sctp] POLLOUT/EVFILT_WRITE is always true for poll/kqueue Date: Mon, 29 Nov 2021 13:37:32 +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=1638193052; 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=KzXvjBv/+Y6AxS9Uzv5p8TOQmg0WmCmjwWeb5tzINOE=; b=U2+6OOQlTdxnFN/DFSD9ApJ86Ajuw5cRL8SOFz8pjmMNMwsU1YXlPj13zpjUG7QUBTOm5/ JEwUMPlyV4ReyrpjkwmXbBXl461ebFrTBKi8t0UQJgRuXCq35Ky+AqCiXqnh6mDDjzEyZA mCtWTo4m1QMgecwNO3cYiN0y8Hg5IFEr3L3YWYWv6j1Tddg99rp+5taz9oeusla4T0MxHS JZrjl310k7oPUjvFHfCrCzo2wBErJKbRY75ah7kohqkeLjUuONq/6paKfmUPUG7qR6Pe/f 8KhGbPfDNQo3F4lC8gtTQs1R4YFyUGAPhBfqidFYGdDV17H4diz1Eyf4ADhmlg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638193052; a=rsa-sha256; cv=none; b=FikWWwVJqkPNTBaXgms7t74CAcw9hRgcvnNicMbv/yqd+UQU8pt2XxnFcLrQtCIvE21XVv 3Qjhl9oFyVNCXaxiUqO74SY+MnlazsV2nweJjWeEUkOhjfPongxAvea4Fh3qW1mg2KJUQ/ Qpgqbtg3bw/iUfm6JDTtYLbSlgL/pqpMc3LVr+arKE02La1Ylxfu15dzND0PA7GUK/ywiP 9rmJXhwggPEVkH4ZQ3GpTjUgxEi/jwfp0Irqf5jkMrJIvd70CUvZdnspJB+2y0+y2BUrla cKgO/ZwIN3o/ytNK6SMLfGZFytV40DKu3wpruRvf7N9hpLPHOiKEfdqLnLbUWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260116 --- Comment #1 from Albin --- Created attachment 229791 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229791&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-pollout ./client --poll --ipv4 --sctp --test-pollout Or with kqueue: ./client --kqueue --ipv4 --sctp --test-pollout 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.=