From nobody Fri Sep 1 13:28:04 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 4Rcf3m5T1Fz4rGDM for ; Fri, 1 Sep 2023 13:28:04 +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 4Rcf3m3Tmnz4QqF for ; Fri, 1 Sep 2023 13:28:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693574884; a=rsa-sha256; cv=none; b=vkAYZLO8OVKcYwLNOnmzUoJgWjOB0gele8O0OEi43L/3SiW19iM5+A71j/QU2lp27tPTar AYqPY8Vy6Ty7oBDjmgZTcdF3D8iTFXEXUSYhhFLkXVspRwqEOR+blYDpAVyDFg+zg8ajVm KeXvuEwx0XH7c6wAWdlPo6r5QDWLu+3WJMJMa8JRfHIDkAt9FTp+Cx6XSCLhBARygkF9HZ oNHvgfZaWZIMaTlv/js5MI5VCSyCZAmWcPr89DllheGgzIHZsK7WvjTkmtJqSmf9JzBM+V BBj4hYP/oZW79IIyA2oJUDSPPL0tlG9IsZPbXC7OFiB4aSuUVQB2vwQNJVOK2w== 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=1693574884; 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=CSIFXn3gt4kYq4p2uFSEmRvvJN3AgAai+10NeYwPJkg=; b=QX3tw6v7BZsgXF2qePMbHZjul2M4bhdQ4YLYOhogbQ5v5v4LcIyw+8kDlw4S2tNFjF5fCp RX/kHnnTiUI+E60r+C4LGONHmpNnE8O+3cxj20lreuP7BC2dXCJiPljeKQYhz+uhFqfEB9 gL04Hq4WcKBcBuPACKwzl+tpmAsFNc4SE0FzzZda/M1rBvVADdJw+EdDs6NeAtG15c9XbG vpOySvHQjTi8DLAic9t0f5DFJv8p7LU4UqP51H2WtVcPmIMNRzsXu/czuWo1CVKipFC6Rs HYvlzqO9lh7a56KVSDyfO6+a1+8RYtMINXOjA2brCcYOl5zynwYHxDU2BQp1Iw== 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 4Rcf3m2S46z12pB for ; Fri, 1 Sep 2023 13:28:04 +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 381DS44O021655 for ; Fri, 1 Sep 2023 13:28:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 381DS4F5021654 for bugs@FreeBSD.org; Fri, 1 Sep 2023 13:28:04 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 212716] recv() with MSG_WAITALL doesn't always unblock on EOF Date: Fri, 01 Sep 2023 13:28:04 +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: greg@codeconcepts.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212716 Greg Becker changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #244523|0 |1 is obsolete| | --- Comment #12 from Greg Becker --- Created attachment 244557 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244557&action= =3Dedit sockets: re-check socket state after call to pr_rcvd() I tested the KASSERT in sbwait without the fix to soreceive_generic() and it panics as expected. I am now currently running kyua test to evaluate the before/after results. I'm not too worried about the apparent double test of (sb_mb =3D=3D NULL), = as I suspect the optimizer will eliminate the redundant test. I still haven't fully evaluated whether all data in the socket will be fully delivered before any socket errors or closed states are acted upon. --=20 You are receiving this mail because: You are the assignee for the bug.=