From nobody Wed Sep 27 12:54:17 2023 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 4Rwc4n6Pqjz4vR0v for ; Wed, 27 Sep 2023 12:54:17 +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 4Rwc4n5Nf2z4XQY for ; Wed, 27 Sep 2023 12:54:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695819257; a=rsa-sha256; cv=none; b=dX3OCGx17L+Xf38nWsTs1PMd9KOGqkkNjEBLn4U4JP45NVtYf9GU89gsLnqQ3kIdnn+W+N FFPxmzkYHDnUCByf3E+UjAxgg1H9p/DV6oYa+kGaSKkj8dhVHK5svbaLp60+5eNglN/ynM KGLyeCsWHwAKYZuxSVcjjUXsrOj6KcJKr8TqSnP9nd5Qv6HMMl7I2KGXwbNCTJRJRD6v70 HpoOTY1r7q5YizPPDO5SwUwqa1Tfk86EPIqXQ09OurM/3U5l6hEvXhD9ouxNUckz72H9uO ddF8K7wtReIcdaWmv6FGD0hhDRDl9abk7E+vxiH3felOB9hQsIJ6Dg+xmEXQwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695819257; 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=3ZECysDmRESJsiAgE0g73WsjopyWJVhufMfqF/mtBG4=; b=ushpCSHVKr0Bfb0WcWBGIHos3kyVEeQhdFpU8q8Vj9HNkHdQ5VPXUQpwk4jUNr5OJ/aLpF upnG229RLwL5CbE1/zXL/TAiShaPSgjpm6cDnOXAX4IPIreM4c8FnxH2DortxXnXh8PuVR K96Dm1bJOHA25VXkasHdeaDVpHoIjMTiarnP4cFMbIcWqD6pAn0u1Y94LRTycXIFC55oW3 LdLsP7fBaEYG6a+PTADVa6AmSlHLuQq9Kpwh/V8xKzYfCDvEtH9cCo+qik2zQOoW7KScjr Zikj17cZi717AvwHCDR7VciDOwto/52W5degbCDyklbvsEcNuxlbzEs3i+iqDA== 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 4Rwc4n4SFTzgWB for ; Wed, 27 Sep 2023 12:54:17 +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 38RCsH37013252 for ; Wed, 27 Sep 2023 12:54:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38RCsHdb013251 for bugs@FreeBSD.org; Wed, 27 Sep 2023 12:54:17 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: bugs@FreeBSD.org Subject: [Bug 212716] recv() with MSG_WAITALL doesn't always unblock on EOF Date: Wed, 27 Sep 2023 12:54:17 +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.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: 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: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212716 --- Comment #20 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dcaaea455773898bee9a0c59466a842561= 92e0980 commit caaea455773898bee9a0c59466a84256192e0980 Author: Greg Becker AuthorDate: 2023-09-09 23:38:24 +0000 Commit: Mark Johnston CommitDate: 2023-09-27 12:33:05 +0000 sockets: re-check socket state after call to pr_rcvd() Socket state may have changed after dropping the receive buffer lock in order to call pr_rcvd(). If the buffer is empty, re-check the state after reaquiring the lock and skip calling sbwait() if the socket is in error or the peer has closed. PR: 212716 Reviewed by: markj, glebius MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D41783 (cherry picked from commit f44102411e1b16363e91a074c9c403069c550e4d) sys/kern/uipc_socket.c | 4 ++++ 1 file changed, 4 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=