From nobody Thu Feb 15 18:49:10 2024 X-Original-To: net@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 4TbPHF01pQz59tCp for ; Thu, 15 Feb 2024 18:49:13 +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 4TbPHD5RM3z4tn3 for ; Thu, 15 Feb 2024 18:49:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708022952; 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=gWmIx0/dstMnmiPbbgbfWYMZwoTBOsatju+ON3v0Bes=; b=QrQmsbhHdrSk02NzjEtw2N2/P1vDaVDp6urrSzna6f5IKBOX0JorQTqTTkRG0RRKQGcmIu w6qyTn3vjOlr6fvBQ6IbYULPjhFXWXRBGOSEwSzht+NjOUEhTW5FKbk6xn5SEDE0heuNpD e1HqpcgfzGDGG5hraLigVwkQogiFAf1fExtshvW94mAW1gtgiZEu7tMs0fXWL6z8v2kRET eQs/qO/EFMUYJ/8hvQDV8g9cFwEtG02K+ZB81f0g9ECyP2KJrV5qiBhbNjxVYBqpHVBu+z kn5ZgfiF5YyFqsXsow61A3CznEPnMKYIV3T1+5NZ7XeusoDLQx38kS6YgKpM7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708022952; a=rsa-sha256; cv=none; b=iFglwloNTNlzIoCr9XY+h2phZvPzK+q8xHQ6hBFQRB4pp+23UbscKf6iMZuYaTlWrtUgsx E9wVTDMY2ZSI2Pv2mz3AM43B7Wa44pu4OgleiyZobkX66IfYfKCLT3YaV2eK7f2fiheukD 5SqC/1jXWGWH/+P/7T1ZfcBumFluBCnhq8lkJs0UlPRuGEDS1My/OFWejk4q4UsYU7rzC3 L+TRFxdQ4r5LCNXihIERln8ddluwvSFL+lD4ltHaICZaasYdOLBZtX4lS+lGHEOoNtBghx sy/AXbdcrmypRjgo1ByOimo75Du6iOzbhcMEZmeSI3XRo+gOeEBOwwZuOklx8w== 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 4TbPHD4XSpzsrs for ; Thu, 15 Feb 2024 18:49:12 +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 41FInCPG037167 for ; Thu, 15 Feb 2024 18:49:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41FInCDG037164 for net@FreeBSD.org; Thu, 15 Feb 2024 18:49:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Thu, 15 Feb 2024 18:49:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: needs-qa, patch, regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jtl@freebsd.org X-Bugzilla-Flags: mfc-stable11+ X-Bugzilla-Changed-Fields: 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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 --- Comment #19 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dbc9107f8c405ce83f47abc915ae95baad= b770d6d commit bc9107f8c405ce83f47abc915ae95baadb770d6d Author: Gleb Smirnoff AuthorDate: 2024-02-15 18:48:44 +0000 Commit: Gleb Smirnoff CommitDate: 2024-02-15 18:48:44 +0000 socket tests: add listener_wakeup This test runs several scenarios when sleep(9) on a listen(2)ing socket= is interrupted by shutdown(2) or by close(2). What should happen in that case is not specified, neither is documented. However, there is certain behavior that we have and this test makes sure it is preserved. There = is software that relies on it, see bug 227259. This test is based on submission with this bug, bugzilla attachment 192260. The test checks TCP and unix(4) stream socket behavior and SCTP can be added easily if needed. The test passes on FreeBSD 11 to 15. It won't pass on FreeBSD 10, although the wakeup behavior of shutdown(2) is the same, but it doesn't return error. PR: 227259 tests/sys/kern/Makefile | 2 + tests/sys/kern/listener_wakeup.c (new) | 293 +++++++++++++++++++++++++++++= ++++ 2 files changed, 295 insertions(+) --=20 You are receiving this mail because: You are on the CC list for the bug.=