From nobody Sat Sep 16 09:28:00 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 4Rnm1s127sz4ssfb for ; Sat, 16 Sep 2023 09:28:01 +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 4Rnm1r3tx4z4XpL for ; Sat, 16 Sep 2023 09:28:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694856480; a=rsa-sha256; cv=none; b=vRcTNeOxpfyC/TT69U9KqPlZ2khWf81MMn+aVomhaSlODD7RIMmtczJiyneIFrzzy8SpNB qpcuEbIaM7Ysdast7cMQYHl5RxO0eFhoaWjfHjiHuYCmSom7fs4Yv8LEoOko7J3AcRP5SI Iev03rgW6y9qklw59vRLJFDrFneVJW58NP3S56HQ+WPJwfY5EM0+jIwUkEwlRgVYaCQwdZ T1pTAC7UCVA1cqqIz4lQqv4UpzveFwDSqEc2COvUsQDuOg4/WGL77FqtF8LAFmxZF+Py1F T+KX72pGJLotHissXtTP9tWpexU3xBs2LPQgvEa9Wuwbe/FnquirfXT5ivshoA== 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=1694856480; 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=1Xb9Id0h8vXLhsIpJYYkvhR0lcbr06hFceclmfQlOjs=; b=eTuKW1smVI6bXseeLbdzLmRBHU3UK4mDZO5CIC89bHYvLBP/g6TgvV7ObqzTuZFBwyEFt0 izk2HUXt+cWJnZWFqHBbyJJU1db0juiJ5ljiHKRUicEZtXED7tyoC/GL01LN9fPiNCm920 rG/CQMUGpHNQqhCWvrL86lYI+ziPlbHbh5z1aCPa0SOp+0zTjP3+5v3PR5hdrxcrORPzLI C8XRjPpvGvJ/gx5MzkZp5CVigjiKlaDlFaCvmGO2ephLGtXpo/XXUNVaCq07Ok3wxLpBZE YV49bGMpuNWH8Ai9J/tBsBMeuuL129LfDJwF1bFt51EZPgsN6VlcZIBL0hdyoQ== 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 4Rnm1r2sKJz11HF for ; Sat, 16 Sep 2023 09:28:00 +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 38G9S0b7024098 for ; Sat, 16 Sep 2023 09:28:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38G9S0pC024097 for bugs@FreeBSD.org; Sat, 16 Sep 2023 09:28:00 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: Sat, 16 Sep 2023 09:28:00 +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 #16 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Df44102411e1b16363e91a074c9c403069= c550e4d commit f44102411e1b16363e91a074c9c403069c550e4d Author: Greg Becker AuthorDate: 2023-09-09 23:38:24 +0000 Commit: Mark Johnston CommitDate: 2023-09-15 16:59:46 +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 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.=