From nobody Tue Nov 26 05:19:54 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 4Xy9qt6vMsz5dscQ for ; Tue, 26 Nov 2024 05:19:54 +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 4Xy9qt4kcgz4KPp for ; Tue, 26 Nov 2024 05:19:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732598394; 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=Hzqc9ATkHsaOvpQwrcvWcdwLgE5WREbnebW8gOGQZQk=; b=sdyULjdmej6IYOMzb9zhBtr7WXVTo7yF0d4JhaNYJlrXk5ID1eay81EccJrj4AKvo29pZH 0KNiFy9a+FXjZAbhPThq/GG2cr6MCDnFfuXz/hCUGAYelNgSSa9Jv4JiDtljQft2OkmTgA DFdApsxn3SYAsII1Vdy+WYIWOUtBpwmNN7+mdff7nibZ6MognJRcsyzst506kI5z0zgTeA DRdq25jYq/c0Fs9RDOwxaMUI7UoNDPB0dX9oiCGa/NI3/MXqZ9AFzKsGyk2F0Rgo5EBnWA yWjyUvWeWTYv8rsY489bfnbm9DuauYCoreLykVDldwWH40BuwneAYrACZp0vAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732598394; a=rsa-sha256; cv=none; b=YIK91r1NVLvIdAUe4vxrhcGnkbCvBqA9ug8+M5xV3ar3HffcW9cjt7aAhQfjAb9JnaU9WK o4hl2C8JwYFTAGHBpWU4uWuA3IbmSegMHa2+E/o7Rb+DgsHNqevEyiO+xw1Te3yFO7eKnG fOhXaBM7NyEriSKs3JJ1pTFf/ZTMJrcSZxcnWkEU21Gt3XLRU1LpxTt7gldlHtlMpEXP8l KGpLFoWaA/q5E0kv3EUXI1NBGURb30ixrh3hLNcEF4vbJsoy6eJO9TNn4zd7IvUFz+4Gi8 ZvT6jRv3aFpYyVIua9WduH+A1jqM5i68Zs3rN7aRj/l4DcEDYs1eS7XWe96w/Q== 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 4Xy9qt4L5rz19wg for ; Tue, 26 Nov 2024 05:19:54 +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 4AQ5JsWn075712 for ; Tue, 26 Nov 2024 05:19:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4AQ5Js9x075711 for bugs@FreeBSD.org; Tue, 26 Nov 2024 05:19:54 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 282982] ping fails silently, using 0.0.0.0 as source address, when routing goes over a link with no ipv4 address Date: Tue, 26 Nov 2024 05:19:54 +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: quentin.thebault@defenso.fr 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 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=3D282982 Bug ID: 282982 Summary: ping fails silently, using 0.0.0.0 as source address, when routing goes over a link with no ipv4 address 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: quentin.thebault@defenso.fr =3D=3D Setup =3D=3D Uses RFC7404-like addressing (link-local addresses on VNET jail epairs). Host - lo0 alias 192.168.2.1 - epair0a alias fe80::1 - route add 192.168.2.2 -6 fe80::1%epair0a Jail - VNET enabled - lo0 alias 192.168.2.2 - epair0b alias fe80::2 - route add default -6 fe80::2%epair0b =3D=3D Test =3D=3D From host: # ping 192.168.2.2 -> fails silently, ICMP packets can be seen with 0.0.0.0 source address # ping -S 192.168.2.1 192.168.2.2 -> succeeds From jail: # ping 192.168.2.1 -> fails with error "no route to host" # ping -S 192.168.2.2 192.168.2.1 -> succeeds =3D=3D Expected output =3D=3D In the first case, ping should tell the user it was not able to find an appropriate source address and stop. In the second case, the error message could be made more explicit. =3D=3D Cause =3D=3D Unless specified with -S, ping leaves the source address undefined (INADDR_ANY). From my understanding, the kernel will attempt to use the fir= st interface address as a source (https://cgit.freebsd.org/src/tree/sys/netinet/ip_output.c#n640). But if th= ere is no ipv4 set, it will leave the source as 0.0.0.0. =3D=3D Affected systems =3D=3D Encountered on 14.1-RELEASE. Most likely affects other releases and CURRENT too. --=20 You are receiving this mail because: You are the assignee for the bug.=