From nobody Fri Jun 21 04:25:34 2024 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 4W54672WvWz5PQH5 for ; Fri, 21 Jun 2024 04:25:35 +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 4W54666Pdzz4nQ8 for ; Fri, 21 Jun 2024 04:25:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718943934; a=rsa-sha256; cv=none; b=unqnjMXHnlrMddqeI+JZWD7BcLTtvOjkcyfGDbrKRaf/xauP60sBI4w5jQ4GJGoWH3DTuD v2LUuhU/1tXa+vV4p4p3tioqlqqlP8WyBoQbSo6q3b/vgZJa4JLSRM++/pUZlP7lJ8vThJ j0AX3Ia4/SBCW9i07Fbm8EdWeZzCkBvBWCVK1YrVA1oXIEMabjDDXnJ20Cnn/dcnHPvM+t 0DA6r6/eAeuC6ZkWHkIyDZY52DxAY2enf/iZrHalxo+f1QYNeBkgH+rEKPJczvaoczxSJ8 01p0Uyc0sX5lc1w6bVnkLHlTfePLEruJp/5d8H+0NBP5aUQ0weMYbjfquFXdXA== 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=1718943934; 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; bh=qVKLkZKLbKOzid/ErNEu5BZuj0thDBqEAAACYzJ2Drw=; b=s8hwCCD80Dv9bNJXuMORKy89UG11LG021IxC0sURf04LehlfObYwX+Vdns00DLpLce1xXI 54YZhViiuAvCqwP4x9RoygeHxnNePDl1ys7J9gyCYSILqWIEZmLCkntZBA5HfKuMd5cf2T zZJE3K9vRzViqMqo4ciKUvZgmgGGeA6fczsIMwQMcT+5c1D/RzvXUS4zNoqv1lS7M2RPj+ ABYAq27gyKfuAPhONOKFsamuFC/aEDyZel5V/9dYiJO3QomjjYytCtrao18FpjDOJKPlLJ ou/7dNP0+wi4tbOLiocZ25fYXJNQUQHQkGbHxRrV7PcivwATVvVeYmbLXQbhiQ== 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 4W54665vXcztxh for ; Fri, 21 Jun 2024 04:25:34 +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 45L4PY8M071555 for ; Fri, 21 Jun 2024 04:25:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45L4PYND071554 for bugs@FreeBSD.org; Fri, 21 Jun 2024 04:25:34 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 279886] wrong implemetaion of kern_getpeername when client side closed. Date: Fri, 21 Jun 2024 04:25:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: shichun_ma@dell.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.mimetype attachments.created Message-ID: 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=3D279886 Bug ID: 279886 Summary: wrong implemetaion of kern_getpeername when client side closed. Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: shichun_ma@dell.com Attachment #251596 text/plain mime type: Created attachment 251596 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D251596&action= =3Dedit test app for the peername for the define of getpeername() system call returns the name of the peer connected to socket s. it doesn't require keeping connected when do the que= ry. one example is: one client connects a socket,then send msg to that socket, = and close.from server side, it still can recv msg from the socket even after cl= ient socket is closed. attached one test application to show the case. --=20 You are receiving this mail because: You are the assignee for the bug.=