Runktrace /usr/local/libexec/fcdm-jail
, kill the process, runkdump
Code:
elgrande@elfreebsdo1:~ % ktrace /usr/local/libexec/fcdm-jail
Abgebrochen
elgrande@elfreebsdo1:~ % kdump
2708 ktrace RET ktrace 0
2708 ktrace CALL execve(0xbe4d4f9cb0f,0xbe4d4f9c758,0xbe4d4f9c768)
2708 ktrace NAMI "/usr/local/libexec/fcdm-jail"
2708 ktrace NAMI "/libexec/ld-elf.so.1"
2708 fcdm-jail RET execve JUSTRETURN
2708 fcdm-jail CALL mmap(0,0x21000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
2708 fcdm-jail RET mmap 12317787947008/0xb33f5600000
2708 fcdm-jail CALL mprotect(0x121f38c9e000,0x1000,0x1<PROT_READ>)
2708 fcdm-jail RET mprotect 0
2708 fcdm-jail CALL issetugid
2708 fcdm-jail RET issetugid 1
2708 fcdm-jail CALL sigfastblock(0x1,0x121f38ca0b20)
2708 fcdm-jail RET sigfastblock 0
2708 fcdm-jail CALL open(0x121f38c83ab9,0x100000<O_RDONLY|O_CLOEXEC>)
2708 fcdm-jail NAMI "/etc/libmap.conf"
2708 fcdm-jail RET open 3
2708 fcdm-jail CALL fstat(0x3,0x820482cc8)
2708 fcdm-jail STRU struct stat {dev=7055066794989372921, ino=1128, mode=0100644, nlink=1, uid=0, gid=0, rdev=18446744073709551615, atime=1701179126.368894000, mtime=1680841173, ctime=1694358697.934528000, birthtime=1680841173, size=47, blksize=4096, blocks=2, flags=0x800 }
2708 fcdm-jail RET fstat 0
2708 fcdm-jail CALL read(0x3,0xb33f5604008,0x2f)
2708 fcdm-jail GIO fd 3 read 47 bytes
"# $FreeBSD$
includedir /usr/local/etc/libmap.d
"
2708 fcdm-jail RET read 47/0x2f
2708 fcdm-jail CALL close(0x3)
2708 fcdm-jail RET close 0
2708 fcdm-jail CALL open(0x82048286b,0x120004<O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC>)
2708 fcdm-jail NAMI "/usr/local/etc/libmap.d"
2708 fcdm-jail RET open 3
2708 fcdm-jail CALL fcntl(0x3,F_ISUNIONSTACK,0x0)
2708 fcdm-jail RET fcntl 0
2708 fcdm-jail CALL getdirentries(0x3,0xb33f5605008,0x1000,0xb33f5601030)
2708 fcdm-jail RET getdirentries 144/0x90
2708 fcdm-jail CALL open(0x820482460,0x100000<O_RDONLY|O_CLOEXEC>)
2708 fcdm-jail NAMI "/usr/local/etc/libmap.d/nvidia.conf"
2708 fcdm-jail RET open 4
2708 fcdm-jail CALL fstat(0x4,0x820481f48)
2708 fcdm-jail STRU struct stat {dev=7055066794989372921, ino=291554, mode=0100644, nlink=1, uid=0, gid=0, rdev=18446744073709551615, atime=1701179126.368976000, mtime=1700616729, ctime=1701111250.798129000, birthtime=1700616729, size=40, blksize=4096, blocks=1, flags=0x800 }
2708 fcdm-jail RET fstat 0
2708 fcdm-jail CALL read(0x4,0xb33f56040c8,0x28)
2708 fcdm-jail GIO fd 4 read 40 bytes
"libGLX_indirect.so.0 libGLX_nvidia.so.0
"
2708 fcdm-jail RET read 40/0x28
2708 fcdm-jail CALL close(0x4)
2708 fcdm-jail RET close 0
2708 fcdm-jail CALL open(0x820482460,0x100000<O_RDONLY|O_CLOEXEC>)
2708 fcdm-jail NAMI "/usr/local/etc/libmap.d/mesa.conf"
2708 fcdm-jail RET open 4
2708 fcdm-jail CALL fstat(0x4,0x820481f48)
2708 fcdm-jail STRU struct stat {dev=7055066794989372921, ino=32614, mode=0100644, nlink=1, uid=0, gid=0, rdev=18446744073709551615, atime=1701179126.369012000, mtime=1700533788, ctime=1701111229.925323000, birthtime=1700533788, size=38, blksize=4096, blocks=1, flags=0x800 }
2708 fcdm-jail RET fstat 0
2708 fcdm-jail CALL read(0x4,0xb33f56040c8,0x26)
2708 fcdm-jail GIO fd 4 read 38 bytes
"libGLX_indirect.so.0 libGLX_mesa.so.0
"
2708 fcdm-jail RET read 38/0x26
2708 fcdm-jail CALL close(0x4)
2708 fcdm-jail RET close 0
2708 fcdm-jail CALL getdirentries(0x3,0xb33f5605008,0x1000,0xb33f5601030)
2708 fcdm-jail RET getdirentries 0
2708 fcdm-jail CALL close(0x3)
2708 fcdm-jail RET close 0
2708 fcdm-jail CALL open(0x121f38c8362d,0x100000<O_RDONLY|O_CLOEXEC>)
2708 fcdm-jail NAMI "/var/run/ld-elf.so.hints"
2708 fcdm-jail RET open 3
2708 fcdm-jail CALL read(0x3,0x121f38ca09a8,0x80)
2708 fcdm-jail GIO fd 3 read 128 bytes
0x0000 4568 6e74 0100 0000 8000 0000 1d01 0000 0000 |Ehnt..............|
0x0012 0000 1c01 0000 0000 0000 0000 0000 0000 0000 |..................|
0x0024 0000 0000 0000 0000 0000 0000 0000 0000 0000 |..................|
0x0036 0000 0000 0000 0000 0000 0000 0000 0000 0000 |..................|
0x0048 0000 0000 0000 0000 0000 0000 0000 0000 0000 |..................|
0x005a 0000 0000 0000 0000 0000 0000 0000 0000 0000 |..................|
0x006c 0000 0000 0000 0000 0000 0000 0000 0000 0000 |..................|
0x007e 0000 |..|
2708 fcdm-jail RET read 128/0x80
2708 fcdm-jail CALL fstat(0x3,0x820481d80)
2708 fcdm-jail STRU struct stat {dev=18446744071679573761, ino=4, mode=0100444, nlink=1, uid=0, gid=0, rdev=18446744073709551615, atime=1701179126.370419000, mtime=1701177665.765062000, ctime=1701177665.765448000, birthtime=1701177665.765011000, size=413, blksize=4096, blocks=8, flags=0x0 }
2708 fcdm-jail RET fstat 0
2708 fcdm-jail CALL pread(0x3,0xb33f5608008,0x11d,0x80)
2708 fcdm-jail GIO fd 3 read 285 bytes
"/lib:/usr/lib:/usr/lib/compat:/usr/local/lib:/usr/local/lib/compat/pkg:/usr/lo\
cal/lib/alsa-lib:/usr/local/lib/gcc12:/usr/local/lib/mysql:/usr/local/lib/perl\
5/5.36/mach/CORE:/usr/local/lib/qt5:/usr/local/lib/qt6:/usr/local/llvm15/lib:/\
usr/local/share/chromium:/usr/local/share/code-oss\0"
2708 fcdm-jail RET pread 285/0x11d
2708 fcdm-jail CALL close(0x3)
2708 fcdm-jail RET close 0
2708 fcdm-jail CALL open(0xb33f5609008,0x300000<O_RDONLY|O_CLOEXEC|O_VERIFY>)
2708 fcdm-jail NAMI "/lib/libjail.so.1"
2708 fcdm-jail RET open 3
2708 fcdm-jail CALL fstat(0x3,0x820482380)
2708 fcdm-jail STRU struct stat {dev=7055066794989372921, ino=788481, mode=0100444, nlink=1, uid=0, gid=0, rdev=18446744073709551615, atime=1701177839.864832000, mtime=1695365747.900344000, ctime=1695365747.902358000, birthtime=1695365747.899980000, size=21264, blksize=21504, blocks=28, flags=0x800 }
2708 fcdm-jail RET fstat 0
2708 fcdm-jail CALL mmap(0,0x1000,0x1<PROT_READ>,0x40002<MAP_PRIVATE|MAP_PREFAULT_READ>,0x3,0)
2708 fcdm-jail RET mmap 34907983872/0x820ad9000
2708 fcdm-jail CALL mmap(0,0x8000,0<PROT_NONE>,0x2000<MAP_GUARD>,0xffffffff,0)
2708 fcdm-jail RET mmap 34915778560/0x821248000
2708 fcdm-jail CALL mmap(0x821248000,0x2000,0x1<PROT_READ>,0x60012<MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ>,0x3,0)
2708 fcdm-jail RET mmap 34915778560/0x821248000
2708 fcdm-jail CALL mmap(0x82124a000,0x4000,0x5<PROT_READ|PROT_EXEC>,0x60012<MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ>,0x3,0x1000)
2708 fcdm-jail RET mmap 34915786752/0x82124a000
2708 fcdm-jail CALL mmap(0x82124e000,0x1000,0x3<PROT_READ|PROT_WRITE>,0x40012<MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ>,0x3,0x4000)
2708 fcdm-jail RET mmap 34915803136/0x82124e000
2708 fcdm-jail CALL mmap(0x82124f000,0x1000,0x3<PROT_READ|PROT_WRITE>,0x40012<MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ>,0x3,0x4000)
2708 fcdm-jail RET mmap 34915807232/0x82124f000
2708 fcdm-jail CALL munmap(0x820ad9000,0x1000)
2708 fcdm-jail RET munmap 0
2708 fcdm-jail CALL close(0x3)
2708 fcdm-jail RET close 0
2708 fcdm-jail CALL open(0xb33f5609008,0x300000<O_RDONLY|O_CLOEXEC|O_VERIFY>)
2708 fcdm-jail NAMI "/lib/libutil.so.9"
2708 fcdm-jail RET open 3
2708 fcdm-jail CALL fstat(0x3,0x820482380)
2708 fcdm-jail STRU struct stat {dev=7055066794989372921, ino=688521, mode=0100444, nlink=1, uid=0, gid=0, rdev=18446744073709551615, atime=1700225794.990163000, mtime=1698746903.997320000, ctime=1698746903.997420000, birthtime=1698746903.989794000, size=80800, blksize=80896, blocks=102, flags=0x800 }
2708 fcdm-jail RET fstat 0
2708 fcdm-jail CALL mmap(0,0x1000,0x1<PROT_READ>,0x40002<MAP_PRIVATE|MAP_PREFAULT_READ>,0x3,0)
2708 fcdm-jail RET mmap 34926297088/0x821c50000
2708 fcdm-jail CALL mmap(0,0x19000,0<PROT_NONE>,0x2000<MAP_GUARD>,0xffffffff,0)
2708 fcdm-jail RET mmap 34929762304/0x821f9e000
2708 fcdm-jail CALL mmap(0x821f9e000,0x8000,0x1<PROT_READ>,0x60012<MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ>,0x3,0)
2708 fcdm-jail RET mmap 34929762304/0x821f9e000
2708 fcdm-jail CALL mmap(0x821fa6000,0xc000,0x5<PROT_READ|PROT_EXEC>,0x60012<MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ>,0x3,0x7000)
2708 fcdm-jail RET mmap 34929795072/0x821fa6000
2708 fcdm-jail CALL mmap(0x821fb2000,0x1000,0x3<PROT_READ|PROT_WRITE>,0x40012<MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ>,0x3,0x12000)
2708 fcdm-jail RET mmap 34929844224/0x821fb2000
2708 fcdm-jail CALL mmap(0x821fb3000,0x2000,0x3<PROT_READ|PROT_WRITE>,0x40012<MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ>,0x3,0x12000)
2708 fcdm-jail RET mmap 34929848320/0x821fb3000
2708 fcdm-jail CALL mmap(0x821fb5000,0x2000,0x3<PROT_READ|PROT_WRITE>,0x1012<MAP_PRIVATE|MAP_FIXED|MAP_ANON>,0xffffffff,0)
2708 fcdm-jail RET mmap 34929856512/0x821fb5000
2708 fcdm-jail CALL munmap(0x821c50000,0x1000)
2708 fcdm-jail RET munmap 0
2708 fcdm-jail CALL close(0x3)
2708 fcdm-jail RET close 0
2708 fcdm-jail CALL open(0xb33f5609008,0x300000<O_RDONLY|O_CLOEXEC|O_VERIFY>)
2708 fcdm-jail NAMI "/lib/libc.so.7"
2708 fcdm-jail RET open 3
2708 fcdm-jail CALL fstat(0x3,0x820482380)
2708 fcdm-jail STRU struct stat {dev=7055066794989372921, ino=262472, mode=0100444, nlink=1, uid=0, gid=0, rdev=18446744073709551615, atime=1701177673.179988000, mtime=1699876619.861937000, ctime=1699876619.870784000, birthtime=1699876619.855000000, size=1946744, blksize=131072, blocks=2272, flags=0x20000 }
2708 fcdm-jail RET fstat 0
2708 fcdm-jail CALL mmap(0,0x1000,0x1<PROT_READ>,0x40002<MAP_PRIVATE|MAP_PREFAULT_READ>,0x3,0)
2708 fcdm-jail RET mmap 34952933376/0x8235b7000
2708 fcdm-jail CALL mmap(0,0x400000,0<PROT_NONE>,0x2000<MAP_GUARD>,0xffffffff,0)
2708 fcdm-jail RET mmap 34945732608/0x822ed9000
2708 fcdm-jail CALL mmap(0x822ed9000,0x84000,0x1<PROT_READ>,0x60012<MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ>,0x3,0)
2708 fcdm-jail RET mmap 34945732608/0x822ed9000
2708 fcdm-jail CALL mmap(0x822f5d000,0x149000,0x5<PROT_READ|PROT_EXEC>,0x60012<MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ>,0x3,0x83000)
2708 fcdm-jail RET mmap 34946273280/0x822f5d000
2708 fcdm-jail CALL mmap(0x8230a6000,0xa000,0x3<PROT_READ|PROT_WRITE>,0x40012<MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ>,0x3,0x1cb000)
2708 fcdm-jail RET mmap 34947620864/0x8230a6000
2708 fcdm-jail CALL mmap(0x8230b0000,0x7000,0x3<PROT_READ|PROT_WRITE>,0x40012<MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ>,0x3,0x1d4000)
2708 fcdm-jail RET mmap 34947661824/0x8230b0000
2708 fcdm-jail CALL mmap(0x8230b7000,0x222000,0x3<PROT_READ|PROT_WRITE>,0x1012<MAP_PRIVATE|MAP_FIXED|MAP_ANON>,0xffffffff,0)
2708 fcdm-jail RET mmap 34947690496/0x8230b7000
2708 fcdm-jail CALL munmap(0x8235b7000,0x1000)
2708 fcdm-jail RET munmap 0
2708 fcdm-jail CALL close(0x3)
2708 fcdm-jail RET close 0
2708 fcdm-jail CALL mprotect(0x8230a6000,0x9000,0x1<PROT_READ>)
2708 fcdm-jail RET mprotect 0
2708 fcdm-jail CALL mprotect(0x8230a6000,0x9000,0x3<PROT_READ|PROT_WRITE>)
2708 fcdm-jail RET mprotect 0
2708 fcdm-jail CALL mprotect(0x8230a6000,0x9000,0x1<PROT_READ>)
2708 fcdm-jail RET mprotect 0
2708 fcdm-jail CALL readlink(0x822f21849,0x8204824d0,0x400)
2708 fcdm-jail NAMI "/etc/malloc.conf"
2708 fcdm-jail RET readlink -1 errno 2 No such file or directory
2708 fcdm-jail CALL issetugid
2708 fcdm-jail RET issetugid 1
2708 fcdm-jail CALL mmap(0,0x200000,0x3<PROT_READ|PROT_WRITE>,0x15001002<MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(21)>,0xffffffff,0)
2708 fcdm-jail RET mmap 12317790044160/0xb33f5800000
2708 fcdm-jail CALL mmap(0,0x200000,0x3<PROT_READ|PROT_WRITE>,0xc001002<MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(12)>,0xffffffff,0)
2708 fcdm-jail RET mmap 12317792141312/0xb33f5a00000
2708 fcdm-jail CALL mmap(0,0x400000,0x3<PROT_READ|PROT_WRITE>,0x15001002<MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(21)>,0xffffffff,0)
2708 fcdm-jail RET mmap 12317794238464/0xb33f5c00000
2708 fcdm-jail CALL geteuid
2708 fcdm-jail RET geteuid 0
2708 fcdm-jail CALL access(0x8204840b9,0x7<X_OK|W_OK|R_OK>)
2708 fcdm-jail NAMI "/var/run/user/1001"
2708 fcdm-jail RET access 0
2708 fcdm-jail CALL chdir(0x8204840b9)
2708 fcdm-jail NAMI "/var/run/user/1001"
2708 fcdm-jail RET chdir 0
2708 fcdm-jail CALL openat(AT_FDCWD,0x20131f,0x200<O_RDONLY|O_CREAT>,0444<S_IRUSR|S_IRGRP|S_IROTH>)
2708 fcdm-jail NAMI ".fcdm-lock"
2708 fcdm-jail RET openat 3
2708 fcdm-jail CALL flock(0x3,0x2<LOCK_EX>)
2708 fcdm-jail RET flock RESTART
2708 fcdm-jail PSIG SIGKILL SIG_DFL code=SI_NOINFO
elgrande@elfreebsdo1:~ %
Maybe it actually _is_ related to Wayland, it gets lost somewhere in XDG_RUNTIME_DIR which is tmpfs.
Code:
elgrande@elfreebsdo1:/var/run/user/1001 % mount
root on / (zfs, local, nfsv4acls)
devfs on /dev (devfs)
/dev/diskid/DISK-S69ENF0R212341Fp1 on /boot/efi (msdosfs, local)
tmpfs on /var/run (tmpfs, local)
fdescfs on /dev/fd (fdescfs)
procfs on /proc (procfs, local)
linprocfs on /compat/linux/proc (linprocfs, local)
linsysfs on /compat/linux/sys (linsysfs, local)
devfs on /compat/linux/dev (devfs)
fdescfs on /compat/linux/dev/fd (fdescfs)
tmpfs on /compat/linux/dev/shm (tmpfs, local)
tmpfs on /var/run/user/1001/.fcdm-jail (tmpfs, local, read-only)
/compat/linux/bin on /var/run/user/1001/.fcdm-jail/bin (nullfs, local, nosuid, read-only, nfsv4acls)
/compat/linux/etc on /var/run/user/1001/.fcdm-jail/etc (nullfs, local, nosuid, read-only, nfsv4acls)
/compat/linux/lib on /var/run/user/1001/.fcdm-jail/lib (nullfs, local, nosuid, read-only, nfsv4acls)
/compat/linux/lib64 on /var/run/user/1001/.fcdm-jail/lib64 (nullfs, local, nosuid, read-only, nfsv4acls)
/compat/linux/usr on /var/run/user/1001/.fcdm-jail/usr (nullfs, local, nosuid, read-only, nfsv4acls)
devfs on /var/run/user/1001/.fcdm-jail/dev (devfs)
linprocfs on /var/run/user/1001/.fcdm-jail/proc (linprocfs, local)
linsysfs on /var/run/user/1001/.fcdm-jail/sys (linsysfs, local)
/usr/local/lib/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so on /var/run/user/1001/.fcdm-jail/opt/cdm.so (nullfs, local, nosuid, read-only, nfsv4acls)
/usr/local/libexec/fcdm-worker on /var/run/user/1001/.fcdm-jail/opt/worker (nullfs, local, nosuid, read-only, nfsv4acls)
elgrande@elfreebsdo1:/var/run/user/1001 % ls -alG
total 1
drwxr-xr-x 7 elgrande elgrande 512 28 Nov. 14:23 .
drwxr-xr-x 3 root wheel 64 28 Nov. 14:22 ..
dr-xr-xr-x 11 elgrande elgrande 640 28 Nov. 14:23 .fcdm-jail
-r--r--r-- 1 elgrande elgrande 0 28 Nov. 14:23 .fcdm-lock
drwx------ 2 elgrande elgrande 64 28 Nov. 14:22 at-spi
drwx------ 3 elgrande elgrande 64 28 Nov. 14:22 dbus-1
drwx------ 2 elgrande elgrande 64 28 Nov. 14:22 dconf
drwx------ 2 elgrande elgrande 128 28 Nov. 14:22 pulse
srwxr-xr-x 1 elgrande elgrande 0 28 Nov. 14:22 wayland-0
-rw-r----- 1 elgrande elgrande 0 28 Nov. 14:22 wayland-0.lock
elgrande@elfreebsdo1:/var/run/user/1001 %