Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jul 2024 21:20:45 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        FreeBSD ARM List <freebsd-arm@freebsd.org>, Current FreeBSD <freebsd-current@freebsd.org>
Subject:   armv7 chroot on aarch64 is getting "nfssvc() ERR#78 'Function not implemented'" for "umount /mnt" of a nfs mounted UFS file system
Message-ID:  <87D92513-97C9-4CFC-8A11-9819375FACAF@yahoo.com>
References:  <87D92513-97C9-4CFC-8A11-9819375FACAF.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
The original mount was:

mount -onoatime 192.168.1.140:/ /mnt

For reference:
192.168.1.140:/ on =
/usr/obj/DESTDIRs/main-armv7-chroot-ports-official/mnt (nfs, noatime)

gdb reports:

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

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<optimized out>, argv=3D<optimized out>) =
at /home/pkgbuild/worktrees/main/sbin/umount/umount.c:195


truss's output ends with:

. . .
=
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)


For reference:

    if (nfssvc(NFSSVC_DUMPMNTOPTS, &dumpmntopts) >=3D 0) {


armv7 chroot:

# uname -apKU
FreeBSD aarch64-main-pbase 15.0-CURRENT FreeBSD 15.0-CURRENT =
main-n271408-4fab5f005482 GENERIC-NODEBUG arm armv7 1500021 1500021

# ls -lodTt /var/cache/pkg/*.snap*.pkg | grep -v "^l" | sed -E =
's@^[^/]*(/.*/pkg/([^-]*-)(.*)(\.snap[^~]*)~[^.]*\.pkg)$@\2\4@' | sort =
-ru
FreeBSD-.snap20240726110821


aarch64 host:

# uname -apKU
FreeBSD aarch64-main-pbase 15.0-CURRENT FreeBSD 15.0-CURRENT =
main-n271408-4fab5f005482 GENERIC-NODEBUG arm64 aarch64 1500021 1500021

# ls -lodTt /var/cache/pkg/*.snap*.pkg | grep -v "^l" | sed -E =
's@^[^/]*(/.*/pkg/([^-]*-)(.*)(\.snap[^~]*)~[^.]*\.pkg)$@\2\4@' | sort =
-ru
FreeBSD-.snap20240726112037


After exiting the chroot, the aarch64 environment did the unmount /mnt =
just fine.


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87D92513-97C9-4CFC-8A11-9819375FACAF>