From nobody Mon Oct 02 23:23:43 2023 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 4Rzxpl54Clz4wcXN for ; Mon, 2 Oct 2023 23:23:43 +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 4Rzxpl3qM5z3cZj for ; Mon, 2 Oct 2023 23:23:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696289023; a=rsa-sha256; cv=none; b=LADii2MOeTh3KIhI8E5IfZt+5XelOQahh4yZcQW7Y239PUyFFzJU2rnez+sPua8L4R8HBf x5meraFFKC5pEL2DFwTjXwoBbtTH0zpMQDvJpJpsS4bK7IIbiNRzeZHkzEHJtqqU1sPGT0 thxeKyMPEJsjwxjIwHC/t3r+0morcxh7ZmZL2B2NQhbLidrelZtdJKebGlTyRrnmxt1EvM bbFyxrQlt1+0Idaim8JPOpBsNsyC5Ptg/4Ab3LV4WzI4jnqA70uJewMrFV3Zqg498PcDoo hZ6JPpq2mgXjSGYYPOT66T/hnjPEPinVqLOG7vuQdY8kQ3sdocXX7MSRqo/WcQ== 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=1696289023; 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=NJjJn6cgtFKo4JsmSYo7lozSYRByif94/qFc9wH1lto=; b=Vg6HxZAWO4wu66PiIW7C7zJIv/Gms4VrqBL00DO7d9u7UJU4idqsXwjdeVZHBGVjM36/EK Fv0MLZaG/VlbSKhjj1PZ240K3y2N5n8bssXGVftGmD7CzWa5sxU76Jc33Pyg6SKpXIObUN MA9tHDgJmr5RdPJmMCXiMVGqOwg0Cd7NRWPd2nvSg2G/1btNpvBJ/jyEHIShV+WJ5RYU3+ JJs1OdATKxUJF4mfX7O22RTBNUyq1I68o7/CRCAweIdVn1jcnWtlGHNoNosHr3W/dzAU/0 wQGEpUI/I+lttXIzLgEmE8Eem5WAB3dTBKbsKYZZtg2PquqCcmIZC2LD/oIo6A== 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 4Rzxpl2sDvzXRD for ; Mon, 2 Oct 2023 23:23:43 +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 392NNhYb071886 for ; Mon, 2 Oct 2023 23:23:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 392NNhbc071885 for net@FreeBSD.org; Mon, 2 Oct 2023 23:23:43 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 206544] sendmsg(2) (sendto(2) too?) can fail with EINVAL; isn't documented in manpage Date: Mon, 02 Oct 2023 23:23:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: peterj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: doc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206544 Peter Jeremy changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peterj@FreeBSD.org --- Comment #7 from Peter Jeremy --- I've bumped into the lack of documentation as well, though the triggers were hidden far more deeply in the kernel: 1) An incorrect cmsg_len will typically trigger EINVAL. 2) Using IPv6-level messages (i.e. cmsg_level=3D=3DIPPROTO_IPV6) with at IPv4-mapped IPv6 connection will trigger EINVAL in at least some cases. This appears to be a duplicate of bug 99356. I won't close it as a duplica= te because there's different analysis in both bugs. --=20 You are receiving this mail because: You are on the CC list for the bug.=