From nobody Tue Mar 11 00:30:05 2025 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 4ZBZR22fRfz5qNBv for ; Tue, 11 Mar 2025 00:30:06 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZBZR2131Sz42cY for ; Tue, 11 Mar 2025 00:30:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741653006; 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=vhpeH4OrBaaw5PwFDPYq0tthcvFBl6FcKGNuzAE2BcI=; b=It5Mw+ASs4Nj1Qn9L0mOcjGJ2SXfAX8aYGC44COuncxu8D1zdCGYEeg8y2vzlZpCr6ac1X mAYnK9o0AAwEBncc2U22DkldFjlu3j+hsKAIR+uXAiNVx8WJB/UvJy2yLdxZtYZIl9Ltfj aFzy7dO30iPI2LvxPEla6p8m9YzPHGDRChBax0/o6dmhEt89kvmOf9nsX3hObFjKWTN2SP A9GwmMFHH7jdHI9QlTl7uEiQzCAVb37sxO138Smyi0ES6S35i+qmkXGTXWRqNboj20XMFE 2e+ozQAi1sENpW6DV1kJUM+SB57LGW+zPKN4pgZoWUVlCAenaNqFT2xzohDamg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741653006; a=rsa-sha256; cv=none; b=FzVPlafDkqMkvYJtL84ic1d4GRuuGk6pobr7+CS5wrd4MZblB5RGtnJ+5GM7FdmIPgVtMa 9GzzpdSNaBQ/i7sh5ca+UIx5K+uCDmxDRhjpL0u52PnNeguYHIVTRVifQUaVgrWxKzrLMJ ZB1Vw1gqeLzoyemc7wZST61nNHtEgVHaAPdtz1yWZHJKa45bhoKD0Qcb9njV/BsunXsdjT NN3Sez/gtsK22INI1zvyzCuhAFiaYXc92AY5TPAsjcyw+HrYZ/H2ACYbqXuMI5jCH1arwo PzvN6fdfsBK7+i6l0urAv6wZxB1WEjHIAkrmaXGC9awMtw2TLHuCC9G7EpyQAg== 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=1741653006; 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=vhpeH4OrBaaw5PwFDPYq0tthcvFBl6FcKGNuzAE2BcI=; b=Ts8xM1uDFAtZvmJHtQDABoS4Ft6IwR22ghFGoEQsJKiiLi+W4JzGotd9iPBcZL+KxvUmpd NttmD7f62dFSfleAiHYyQkc2eSw8DMBkQqtpwsrKKdWyhw2AYDw2FHJthnoV6fYH9DOHOE 7zGgiE9MzgSiWDQDYVyiaQuNTtLt7bAS+hPCqmvB6xL7/1LnOaZARZ4sO5wJ1DQJ4DboRV vvTtQrnWIhnDxTUzwO4Iyl7PJ//XKEtSA60rpoGQhHMcBw4Ugpk4b3zvOCrZlT4DaOyF5W z+30chYygGcXwEhNsbcviqGR94V/I400dUDA7CtCAj7pYS0FV7wtkwUCNEy+HQ== 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 4ZBZR20FVkz12Kb for ; Tue, 11 Mar 2025 00:30:06 +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 52B0U51k094006 for ; Tue, 11 Mar 2025 00:30:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52B0U5X9094005 for bugs@FreeBSD.org; Tue, 11 Mar 2025 00:30:05 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 285315] The target address passed is not ignored when the socket is in a connected state Date: Tue, 11 Mar 2025 00:30:05 +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: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: nakayamakenjiro@gmail.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.created Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D285315 Bug ID: 285315 Summary: The target address passed is not ignored when the socket is in a connected state Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: nakayamakenjiro@gmail.com Created attachment 258546 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D258546&action= =3Dedit A patch to ignore the validation for target address when connected As per send(2) - https://man.freebsd.org/cgi/man.cgi?query=3Dsend, it says: ''' If the socket is in a connected state, the target address passed to sendto(), sendmsg() or sendmmsg() is ignored. ''' However, the the target address is not ignored. It seems that udp_send() has the validation. The attached patch can ignore = the target address. But is it a wrong man page or wrong validation? Just FYI, Linux (6.12.10-100.fc40.x86_64) ignores the target address with a socket in a connected state so an application with same code did not work. --=20 You are receiving this mail because: You are the assignee for the bug.=