From nobody Sat Jul 27 04:58:52 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 4WWC8G3ZkCz5RM05 for ; Sat, 27 Jul 2024 04:59:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-23.consmr.mail.gq1.yahoo.com (sonic303-23.consmr.mail.gq1.yahoo.com [98.137.64.204]) (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 4WWC8F2kkZz4ZKj for ; Sat, 27 Jul 2024 04:59:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=PGXdwqTz; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.204 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1722056347; bh=DbJMWjGJfCUA2fYDBct/OFGhkG19s31T1NWocPM0Jp0=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=PGXdwqTzm4ckWLSMJb5Ttt9VUbfS1zPybrzWDP5o7l59wdX0yZCTujLWDLP4utfNFlobI8V4P1FhaujiaTdZbnLSaFKQ13lyVp+BQlcfaSdt6DCpC3lYaaFGTkonFiBU1qwRTxEkHMBo8I/r6wl9D+YE4eOK7XlpyByH0P0wuChEPhjcoUwk+4YlHoVxIKVjHmFNjWKuL4ZiW8YdqXdVfkq7aiA/QynrG63SsIBj7azKfSiMHIk6IZyhTb0QRHhe7jY1Vu2c1zLvRRkgGfxRA12TM6Pc6axPfd0+KFTNxy79gE++R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x5_L75SLV3GbIpUvZv.6AaMU31Wqq3_GOWAYZfZi90Ksct dPB9uWXJWKIaR8Cq8XdkiKHwzPcKI5FJQ29q77nGTKLyzCpkvTC_laAqPo6kNq6mBZBF_idxoOtp m_V8EanIxUdnKIEFc2AS_BezEfqmx0hWeJc1KlMKBipp44I4mALKF_8iOsCWc5pHYppKb7jop5zR R_E2LuqUD8YpthBeSTsW98bcOdi0fiJ9SH5Ko9R.4tjxTUW8HP3ghNoJ4CXUQS4SM94oVOYz47pj qyHZrzb.aE90y0xThvV3b1FGZhSGK3KlKl3obV45dL7CMrylPRv98dHBxVYLK.foLg4Jul972VTY oMiv45REITv.RtZ1ZDdLhsydBCI_EcyCgD72QaiXeRFWh3eIq_1TYxilv_UTblk4UB9yvk2fE3jB WOjW6HGiTLEQK4XONYcxfEOj1_E1cyEAq6yaUs8dC6cRkiZcb1_ByRvPgzdKEuPnhctYEBGSUYhZ PNtBi9MzMIZCohx8woDCXPne_y6bvv7BkEogGrcuyrpcx_var1nRAsv0xLvfX2AyiWQfjycd44PD cQcsGbcnlgW1ILUkBWEZz6Jhap7PBQUcJoPKrzNIkRt.WnPyiXmNewBQS4.fWiOJdNxmN1Ggvg32 qtY_T_FM6DK9X9aT.QeB7G9IbZTjpYx27VEaQqh_UVxVJUZtS1zOtfPiaoKZBEY.KTOBJ0gxg4.4 z5A-- X-Sonic-MF: X-Sonic-ID: 689c3d76-c41f-410c-aaa2-561833572e8c Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Sat, 27 Jul 2024 04:59:07 +0000 Received: by hermes--production-gq1-799bb7c8cf-dkgg4 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 600a5b9332022d8375e2a8327fe714ad; Sat, 27 Jul 2024 04:59:03 +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: Fri, 26 Jul 2024 21:58:52 -0700 References: <87D92513-97C9-4CFC-8A11-9819375FACAF@yahoo.com> To: FreeBSD ARM List , Current FreeBSD In-Reply-To: <87D92513-97C9-4CFC-8A11-9819375FACAF@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3774.600.62) X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; 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.204:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.204:from] X-Rspamd-Queue-Id: 4WWC8F2kkZz4ZKj On Jul 26, 2024, at 21:20, Mark Millard wrote: > 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. I set up a context where aarch64 ends up seeing (after chroot exit): # 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 I then used the armv7 umount: # /usr/obj/DESTDIRs/main-armv7-chroot-ports-official/sbin/umount = /usr/obj/DESTDIRs/main-armv7-chroot-ports-official/mnt Bad system call (core dumped) The truss output for such shows: . . . 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) Side note: # 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 results in the likes of: # ~/pkgbase-snapshot-list.sh FreeBSD-*-15.snap20240726112037 that reads a little better. =3D=3D=3D Mark Millard marklmi at yahoo.com