From nobody Wed Sep 27 12:53:15 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 4Rwc3b64fbz4vQcF for ; Wed, 27 Sep 2023 12:53:15 +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 4Rwc3b4pGgz4VMl for ; Wed, 27 Sep 2023 12:53:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695819195; a=rsa-sha256; cv=none; b=QetpVLuaz21afInkHCdtYp5P+nLCcLC8SnpA8Ox4REWhlHrr/S9aT51pPWsc2Gu8Iej1kM pyMwR0vAJnE0yIA7UzH3Doo0gDzYv3rF8L2sVXDu4fWrcjrCKXaQNqJ4bLAq95Ik2soBqP N0bZ0cTO+6ElC0WL1jmrAeITIVp52nDPsYaAHONirdh7P1CRlBCgR7QjbRFdpDtazyWpCR z0HVfz9uGFvOI2xc57s410iBjGgCLmny6kYsRr+88MB7ajCpWBUwmE5YGaN9Rm4z5Emuo1 4RI4G8c4gyYdlDisxgJSJ64s5l62AYtlaqtiZLJkfCYbmvUC4syhWy3PYY2fpQ== 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=1695819195; 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=b/DeblCP8weAG0P0zV+L3gP4EoXqN3q0X1t3c5zqrsI=; b=xcwuL5R3fZefayb0SpmRbulv78EdK5yc08qeKf5JNE7lqPr/YABPz7eMnEutCSIwdhgliE thHRXs1uj1L0mnz8FeVe2EWWfzOaCLDIaREVsx9aG7SAwvjtBDPzR8PN6nWYlkd1Jqwrdn rb3dAN9HY7l+WX0wII0vaDfxhRApqqAlu6tLdNi2s/9C6l658+n5IU1l8pnBZk3BPSMfce ZccfVgVZLgm1xQ4zJKbzraoNaJsTXrDRjouYvwUs5PuU5x/z9e1Byd1L0jmYaes9CSJykA N4YaqqsJ3JRuSUhSz7PKrgenZjt3ocJEWoNzifkCDTGcuuxnCHZ04CMNkvt/2A== 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 4Rwc3b3sj8zgW6 for ; Wed, 27 Sep 2023 12:53:15 +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 38RCrFbD012904 for ; Wed, 27 Sep 2023 12:53:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38RCrF6e012903 for bugs@FreeBSD.org; Wed, 27 Sep 2023 12:53:15 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:53:15 +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 #18 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D862d2d514cb782353bce1af99d670db08= b1e6c3c commit 862d2d514cb782353bce1af99d670db08b1e6c3c Author: Greg Becker AuthorDate: 2023-09-09 23:38:24 +0000 Commit: Mark Johnston CommitDate: 2023-09-27 12:33:08 +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.=