From nobody Wed Jun 7 21:49:03 2023 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 4Qc1FX37jXz4bRM2 for ; Wed, 7 Jun 2023 21:49:04 +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 4Qc1FX1SVGz4HL4 for ; Wed, 7 Jun 2023 21:49:04 +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=1686174544; 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=VJt7GyCGhFRtvIhObu117BCrYVAUKQeTQ3zs3RwG7v8=; b=l+tvIFdpJqBorEja5/vhxIbZSiMpr+0Z/7TgCTPYQwBFh7ZUPGGcLKJzDt8N9l5U4MdX/Z i/Qbp/oZs+cYmW76cEZduheWRHMGWrq18DckBCTFFm6ednZDYCC1m1JA1JCmrd/FWn1haJ EdnC0fHy4VCNLu/4BRKCzOAnIidPuxTVxAmLry+k06rVky6PXTaVgY7N/40cUni/GgWvy4 EWkyNU0JvrClJNQwUzp43t4DeOOBRfnRuoi8cmPRNDMEAkIkeyJfjRooi8ZBI7qCtg012b lzldH9at4TDdtpKaNsrRRnOidQj05LLCy3UV9SFctPzEVbO6UPVcuXYeyYMM2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686174544; a=rsa-sha256; cv=none; b=MdRF73YjxW+XdtoZYDVNlK2YEtFYVvtxCk8eMw3QKa+2MYgr0zSjlHfgfEA45c5pe9ImGM hHRGoduiRHmDUyFoXyPEoX/7Rc/eUnjYalCmWeuGoc9sGbcGa8kXR2zgwJDquR97i2SXAg 6tW7pSaqT+LfUsqdJeUGEy1LXIHzsLhopXXB/Wg5R1vHICmTxhiCpQTHI3sieXxZer8Gja A3H/AG6J1gQdUSYFl4SUDeXKf8ZUKmEI6pf0Ss/zu/hMNBYxXzE/wR1T25PlgOcfGXRipf 1bAQGAcPK288FrwszQCnThNkvcng23sXUfdenkVxTE1r+53CJ7Hd00V/56JPNQ== 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 4Qc1FX0S8BzShY for ; Wed, 7 Jun 2023 21:49:04 +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 357Ln48n035386 for ; Wed, 7 Jun 2023 21:49:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 357Ln4DB035385 for bugs@FreeBSD.org; Wed, 7 Jun 2023 21:49:04 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 271895] route(8) shows Invalid argument on an i386 jail when setting the default route Date: Wed, 07 Jun 2023 21:49:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: DtxdF@disroot.org 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271895 Bug ID: 271895 Summary: route(8) shows Invalid argument on an i386 jail when setting the default route Product: Base System Version: 13.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: DtxdF@disroot.org Description: When setting the default route on an i386 jail `route(8)` displays the error `Invalid argument` on an amd64 host. `route(8)` on an amd64 jail will work = as expected. Steps to reproduce this issue: ``` # pwd /var/jail/jtest # wget -O components/i386-13.2-RELEASE-base.txz https://download.freebsd.org/releases/i386/13.2-RELEASE/base.txz --2023-06-07 17:32:22--=20 https://download.freebsd.org/releases/i386/13.2-RELEASE/base.txz Resolving download.freebsd.org (download.freebsd.org)... 96.47.72.116, 2610:1c1:1:606c::15:0 Connecting to download.freebsd.org (download.freebsd.org)|96.47.72.116|:443= ... connected. HTTP request sent, awaiting response... 200 OK Length: 187400420 (179M) [application/octet-stream] Saving to: =E2=80=98components/i386-13.2-RELEASE-base.txz=E2=80=99 components/i386-13.2-RELEASE-base.txz=20=20=20=20 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] 178.72M 512KB/s in 4m 55s 2023-06-07 17:37:17 (621 KB/s) - =E2=80=98components/i386-13.2-RELEASE-base= .txz=E2=80=99 saved [187400420/187400420] # tar -C root -xpf components/i386-13.2-RELEASE-base.txz # jail -cf jail.conf jtest: created ELF ldconfig path: /lib /usr/lib /usr/lib/compat /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). Starting Network: lo0 em0. lo0: flags=3D8049 metric 0 mtu 16384 options=3D680003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=3D21 em0: flags=3D8862 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D481249b ether xx:xx:xx:xx:xx:xx media: Ethernet autoselect (100baseTX ) status: active nd6 options=3D29 route: writing to routing socket: Invalid argument add host 127.0.0.1: gateway lo0 fib 0: Invalid argument route: writing to routing socket: Invalid argument add host ::1: gateway lo0 fib 0: Invalid argument add net fe80::: gateway ::1 fib 0: route already in table add net ff02::: gateway ::1 fib 0: route already in table add net ::ffff:0.0.0.0: gateway ::1 fib 0: route already in table add net ::0.0.0.0: gateway ::1 fib 0: route already in table Clearing /tmp (X related). Creating and/or trimming log files. Updating motd:. Updating /var/run/os-release done. Starting syslogd. Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. Wed Jun 7 21:38:46 UTC 2023 # jexec -l jtest ifconfig em0 inet 192.168.1.146/24 root@dtxdf-test:/var/jail/jtest # jexec -l jtest ifconfig em0 em0: flags=3D8863 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D481249b ether xx:xx:xx:xx:xx:xx inet 192.168.1.146 netmask 0xffffff00 broadcast 192.168.1.255 media: Ethernet autoselect (100baseTX ) status: active nd6 options=3D29 root@dtxdf-test:/var/jail/jtest # jexec -l jtest ping -c4 192.168.1.1 PING 192.168.1.1 (192.168.1.1): 56 data bytes 64 bytes from 192.168.1.1: icmp_seq=3D0 ttl=3D64 time=3D0.756 ms 64 bytes from 192.168.1.1: icmp_seq=3D1 ttl=3D64 time=3D0.348 ms 64 bytes from 192.168.1.1: icmp_seq=3D2 ttl=3D64 time=3D0.404 ms 64 bytes from 192.168.1.1: icmp_seq=3D3 ttl=3D64 time=3D0.435 ms --- 192.168.1.1 ping statistics --- 4 packets transmitted, 4 packets received, 0.0% packet loss round-trip min/avg/max/stddev =3D 0.348/0.486/0.756/0.159 ms # jexec -l jtest netstat -4rn Routing tables (0) (0) UH 6968 (0) (0) U (0) (0) UHS 6968 # jexec -l jtest route add default 192.168.1.1 route: writing to routing socket: Invalid argument add net default: gateway 192.168.1.1 fib 0: Invalid argument ``` Jail configuration: ``` # cat /var/jail/jtest/jail.conf jtest { path =3D "/var/jail/${name}/root"; exec.start =3D "/bin/sh /etc/rc"; exec.stop =3D "/bin/sh /etc/rc.shutdown jail"; vnet; vnet.interface =3D em0; mount.devfs; } # jls -sj jtest devfs_ruleset=3D0 enforce_statfs=3D2 host=3Dnew ip4=3Dinherit ip6=3Dinherit= jid=3D12 name=3Djtest osreldate=3D1302001 osrelease=3D13.2-RELEASE path=3D/var/jail/= jtest/root nopersist securelevel=3D-1 sysvmsg=3Ddisable sysvsem=3Ddisable sysvshm=3Ddi= sable vnet=3Dnew zfs=3Dnew allow.nochflags allow.nomlock allow.nomount allow.mount.nodevfs allow.mount.nofdescfs allow.mount.nonullfs allow.mount.noprocfs allow.mount.notmpfs allow.mount.nozfs allow.noquotas allow.noraw_sockets allow.noread_msgbuf allow.reserved_ports allow.set_host= name allow.nosocket_af allow.suser allow.nosysvipc allow.unprivileged_proc_debug children.max=3D0 host.domainname=3D"" host.hostid=3D0 host.hostname=3D"" host.hostuuid=3D00000000-0000-0000-0000-000000000000 zfs.mount_snapshot=3D0 ``` Host information: ``` # uname -a FreeBSD dtxdf-test 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64 ``` --=20 You are receiving this mail because: You are the assignee for the bug.=