From nobody Tue Jul 26 14:56:52 2022 X-Original-To: net@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 4Lsg3m6LP6z4XDrM for ; Tue, 26 Jul 2022 14:56:52 +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 4Lsg3m4DJVz3FZY for ; Tue, 26 Jul 2022 14:56:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4Lsg3m380MzgwF for ; Tue, 26 Jul 2022 14:56:52 +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 26QEuq2k096518 for ; Tue, 26 Jul 2022 14:56:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26QEuqvJ096517 for net@FreeBSD.org; Tue, 26 Jul 2022 14:56:52 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: net@FreeBSD.org Subject: [Bug 265064] connect(2): unexpected EADDRINUSE when connecting from IPv6 wildcard to IPv4 address Date: Tue, 26 Jul 2022 14:56:52 +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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: firk@cantconnect.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658847412; 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=lH5wC1ZiT7SbruPetj1TNPgAFjP36Iu4seYo0i46wZQ=; b=oBPK1gG+fJEw93RPTeAuaOzJxL707oRCE4QqwkbrElg1ttUdEjMF66Tg7FiG/KORULj/+u WKAELQJCXCHXaVu877EHa7B4pm/40Sa4Hzwd9sOytagmVjHGmBjboC1moibnblpvJl2T2D XHcb224NhwazBurEgEl/bZh9hdIuxEA8tpHAmAwq/JvzYNyQuqgp1N4rjpfZTtc84E1zBp 1tANDecnSMuynGaN+lVPo+OxozwrEnoqMaerfu1wV+fmFFLgZmT5G78qn+vCfti8J7mczh IGn6lqE/yPG5GhKO7rjBohA0tBlxOmC1/l+fHHAbjICo8WpaIQEvizlR6x9oJw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658847412; a=rsa-sha256; cv=none; b=bscMIQfqkanz3U7Kb6nkevpo8oDuiPiVUz7+OW6BmGbodElgk0uQ0407GJDowvNoLuQ3yG wHcg1iommX1YUk021Pjs4bSOd6+Al7bUiY1pwPcTVOgwbl1KfSedTnnfIjvp3xNjDO6eK0 eke36TBoZTW7w9QZ7XvakpS/zhPvjumzwawHv9xAGOsegydNVtkIE+DmQDZ86NgyYFpHKV glWXn7fRmWNeAdZi/lOC82t+ZgFd70csvCbvw7UXx6zjTf8B0Akh47S57gQCW7qVJx/g0D 5fReqFBAse86XLSzDg/qvkSSIhwRp8we+Z61zVHM7KYyq24Fai1vBPRkwIuexQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265064 --- Comment #5 from firk@cantconnect.ru --- (In reply to Mike Karels from comment #2) No, wildcard ipv6 bind() shouldn't fail just because ipv4 port for the specifiec ipv4 address is busy. I'm not sure how this error should be repor= ted to userland, but it surely shouldn't be triggered until we try to connect()= to ipv6-wrapped ipv4 address. May be it will be okay to return EADDRNOTAVAIL f= rom such connect(), considering wildcard-bound socket as partially unbound sock= et as we really have to do new ipv4-bind() over existing ipv6-wildcard-bind. --=20 You are receiving this mail because: You are the assignee for the bug.=