From nobody Sat Jul 27 17:14:53 2024 X-Original-To: freebsd-arm@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 4WWWTW4QFvz5RLWm for ; Sat, 27 Jul 2024 17:15:11 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WWWTV15zVz4gYd for ; Sat, 27 Jul 2024 17:15:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=pMbReMYM; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1722100507; bh=X7xrehhMcW+MKE/n7S3AkRtUiU1s+XkiOQ3oUM6eY0M=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=pMbReMYMoNHCcCDKGZPlFRi7dG35EgmTlLADoaBapmhLfsgWWqjQFXrNCd4+ftraaIde5+chDAtldaFfP6g5Z6prJ4MBslrMroE/EMUjhjQAF4Jd3Uc3rU/5L1Yx1DZ4dHDFSxuFLLBz/oUcXptuk9GRFDde7Fp7JKjNMG/t2tw5ZFX34Sa6Jxu0zKXJbFsC01ay5GpIaOs5kRBJChgiZmiwMqUi7FUtpkZ3yLKhPSYbheaDogevav7NzaZTa4WCNmxwQXJoXKISUmShExiVL4QCjvsLh5hAUWWdxlSTa00ftv4RIXs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j0za8KLik5O7Lm5hyCqdTN2VFEmm2O33nHrGx6PDPxaz1RXSJZtM2CVDMk RNastVofHwK24jzLIYkVXqrH26GVwLS8jLqrf_HJFlJv8VTW5Tgs7Vd692WGkBF_mqtvpSxe9L9H 1L5TuG2.YmQXiWdwb9iJM_VTCLo_QBvjRu3Pi3FKXK.rx80trsqpFVfXTO60QB7cujcIDbKNuDfp N2heYIpfihPUu6.FA72rtb4QFcR2SZyaEUBZqm_8CuOVaOh.QA8j0HOpD1IqU8WbP56MVs1Ftc1n efG0IJHnVYg0tgza.mailZZKv6wO9ztAGcfPmU8wy8J8qd_MXd0cQz1mRAF7vnJGxjq.yqcEZaW2 Pd8w0q8WlNRK3iEZb5AyrbmhteJeWauiCIIQ.1TiqgfiorKOgW6sjuv0z.DC7txpLtqwv3kAgfmH rZta6sqr4RSNceey7Z2My36uynmFcJthpZlxp5ebxa8kNNUA4ZtoBu1qMMwlf4mjvgvdeBDjrJgl 5cwmXIYfGzSO3s3xHsaAmRyaQoZKnJSgkJTu18bCniHZnEnE8a8xpzxeYheOSw1SeY86MNi29OTo vx.L1my3XIia2V7rhmSMZSjqIUC.0zOvO3jidV6pMEuyWwQjkAHH8Ho0i6ap2Sy_an9iKzAKjOGV sJMC22jh6BL9JobG1xkmt1cI6xbUH5aGvPifzFIhpRRqnKkCUVc9QjdYjZvI7FeTSbDLyFbZwD0M salaa X-Sonic-MF: X-Sonic-ID: 5785cf82-8dc8-468e-b22d-f1c9cd91f52a Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Sat, 27 Jul 2024 17:15:07 +0000 Received: by hermes--production-gq1-799bb7c8cf-t9jf4 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3934b490e8ebfdbfc481e5badadba27a; Sat, 27 Jul 2024 17:15:04 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: armv7 chroot [and lib32] on aarch64 is getting "nfssvc() ERR#78 'Function not implemented'" for "umount /mnt" of a nfs mounted UFS file system Date: Sat, 27 Jul 2024 10:14:53 -0700 References: <87D92513-97C9-4CFC-8A11-9819375FACAF@yahoo.com> To: FreeBSD ARM List , Current FreeBSD In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3774.600.62) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.92 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.92)[-0.919]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_FROM(0.00)[yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.148:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.148:from] X-Rspamd-Queue-Id: 4WWWTV15zVz4gYd On Jul 26, 2024, at 21:58, Mark Millard wrote: > On Jul 26, 2024, at 21:20, Mark Millard wrote: >=20 >> The original mount was: >>=20 >> mount -onoatime 192.168.1.140:/ /mnt >>=20 >> For reference: >> 192.168.1.140:/ on = /usr/obj/DESTDIRs/main-armv7-chroot-ports-official/mnt (nfs, noatime) >>=20 >> gdb reports: >>=20 >> Reading symbols from /sbin/umount... >> Reading symbols from /usr/lib/debug//sbin/umount.debug... >> [New LWP 100137] >> Core was generated by `umount /mnt'. >> Program terminated with signal SIGSYS, Bad system call. >> Sent by kernel. >> #0 nfssvc () at nfssvc.S:4 >>=20 >> warning: 4 nfssvc.S: No such file or directory >> (gdb) bt >> #0 nfssvc () at nfssvc.S:4 >> #1 0x00021be8 in umountfs (sfs=3Dsfs@entry=3D0xffffce90) at = /home/pkgbuild/worktrees/main/sbin/umount/umount.c:396 >> #2 0x00022400 in checkname (mntname=3D0xffffddfb "/mnt", = typelist=3Dtypelist@entry=3D0x0) at = /home/pkgbuild/worktrees/main/sbin/umount/umount.c:327 >> #3 0x000218a4 in main (argc=3D, argv=3D) at /home/pkgbuild/worktrees/main/sbin/umount/umount.c:195 >>=20 >>=20 >> truss's output ends with: >>=20 >> . . . >> = mmap(0x0,20480,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(12),-= 1,0x0) =3D 537321472 (0x2006e000) >> statfs("/mnt",{ = fstypename=3Dnfs,mntonname=3D/usr/obj/DESTDIRs/main-armv7-chroot-ports-off= icial/mnt,mntfromname=3D192.168.1.140:/,fsid=3D18ff003a3a000000 }) =3D 0 = (0x0) >> fstatat(AT_FDCWD,"/mnt",{ mode=3Ddrwxr-xr-x = ,inode=3D2,size=3D1536,blksize=3D4096 },0x0) =3D 0 (0x0) >> fstatat(AT_FDCWD,"/mnt/..",{ mode=3Ddrwxr-xr-x = ,inode=3D73557804,size=3D512,blksize=3D32768 },0x0) =3D 0 (0x0) >> = mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(12),-1= ,0x0) =3D 537219072 (0x20055000) >> = mmap(0x0,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(12),-= 1,0x0) =3D 537341952 (0x20073000) >> nfssvc() ERR#78 'Function not implemented' >> SIGNAL 12 (SIGSYS) code=3DSI_KERNEL >> process killed, signal =3D 12 (core dumped) >>=20 >>=20 >> For reference: >>=20 >> if (nfssvc(NFSSVC_DUMPMNTOPTS, &dumpmntopts) >=3D 0) { >>=20 >>=20 >> armv7 chroot: >>=20 >> # uname -apKU >> FreeBSD aarch64-main-pbase 15.0-CURRENT FreeBSD 15.0-CURRENT = main-n271408-4fab5f005482 GENERIC-NODEBUG arm armv7 1500021 1500021 >>=20 >> # ls -lodTt /var/cache/pkg/*.snap*.pkg | grep -v "^l" | sed -E = 's@^[^/]*(/.*/pkg/([^-]*-)(.*)(\.snap[^~]*)~[^.]*\.pkg)$@\2\4@' | sort = -ru >> FreeBSD-.snap20240726110821 >>=20 >>=20 >> aarch64 host: >>=20 >> # uname -apKU >> FreeBSD aarch64-main-pbase 15.0-CURRENT FreeBSD 15.0-CURRENT = main-n271408-4fab5f005482 GENERIC-NODEBUG arm64 aarch64 1500021 1500021 >>=20 >> # ls -lodTt /var/cache/pkg/*.snap*.pkg | grep -v "^l" | sed -E = 's@^[^/]*(/.*/pkg/([^-]*-)(.*)(\.snap[^~]*)~[^.]*\.pkg)$@\2\4@' | sort = -ru >> FreeBSD-.snap20240726112037 >>=20 >>=20 >> After exiting the chroot, the aarch64 environment did the unmount = /mnt just fine. >=20 >=20 > I set up a context where aarch64 ends up seeing (after chroot > exit): >=20 > # df -m > Filesystem 1M-blocks Used Avail Capacity Mounted on > /dev/gpt/PBaseUFS 1114846 184896 840761 18% / > devfs 0 0 0 0% /dev > /dev/gpt/PBaseEFI 244 26 218 11% /boot/efi > 192.168.1.140:/ 823229 74755 682616 10% = /usr/obj/DESTDIRs/main-armv7-chroot-ports-official/mnt >=20 > I then used the armv7 umount: >=20 > # /usr/obj/DESTDIRs/main-armv7-chroot-ports-official/sbin/umount = /usr/obj/DESTDIRs/main-armv7-chroot-ports-official/mnt > Bad system call (core dumped) >=20 > The truss output for such shows: >=20 > . . . > freebsd32_getfsstat(0x2004e000,11720,MNT_NOWAIT) =3D 4 (0x4) > = freebsd32_mmap(0x0,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALI= GNED(12),-1,0x0) =3D 537411584 (0x20084000) > = freebsd32_mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIG= NED(12),-1,0x0) =3D 537423872 (0x20087000) > = freebsd32_mmap(0x0,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALI= GNED(12),-1,0x0) =3D 537427968 (0x20088000) > #155() ERR#78 'Function not implemented' > SIGNAL 12 (SIGSYS) code=3DSI_KERNEL > process killed, signal =3D 12 (core dumped) >=20 >=20 > Side note: >=20 > # more ~/pkgbase-snapshot-list.sh=20 > #! /bin/sh > ls -lodTt /var/cache/pkg/*.snap*.pkg | grep -v "^l" | sed -E = 's@^[^/]*(/.*/pkg/([^-]*-)(.*)(-[0-9][0-9]\.snap[^~]*)~[^.]*\.pkg)$@\2*\4@= ' | sort -ru >=20 > results in the likes of: >=20 > # ~/pkgbase-snapshot-list.sh > FreeBSD-*-15.snap20240726112037 >=20 > that reads a little better. I looked around and this lack of support is deliberate and has been long term. That tells me that, despite the amount of nfs mount/umount activity of UFS file systems I've done over the years, I just happened to have not done such from a chroot context before, at least for the umount side of the pair. =3D=3D=3D Mark Millard marklmi at yahoo.com