svn commit: r313495 - head/sys/kern

Cy Schubert Cy.Schubert at komquats.com
Fri Feb 10 05:30:15 UTC 2017


In message <201702092335.v19NZvSQ026869 at repo.freebsd.org>, Konstantin 
Belousov
writes:
> Author: kib
> Date: Thu Feb  9 23:35:57 2017
> New Revision: 313495
> URL: https://svnweb.freebsd.org/changeset/base/313495
> 
> Log:
>   Do not establish advisory locks when doing open(O_EXLOCK) or open(O_SHLOCK)
>   for files which do not have DTYPE_VNODE type.
>   
>   Both flock(2) and fcntl(2) syscalls refuse to acquire advisory lock on
>   a file which type is not DTYPE_VNODE.  Do the same when lock is
>   requested from open(2).
>   
>   Restructure the block in vn_open_vnode() which handles O_EXLOCK and
>   O_SHLOCK open flags to make it easier to quit its execution earlier
>   with an error.
>   
>   Tested by:	pho (previous version)
>   Sponsored by:	The FreeBSD Foundation
>   MFC after:	2 weeks
> 
> Modified:
>   head/sys/kern/vfs_vnops.c
> 
> Modified: head/sys/kern/vfs_vnops.c
> =============================================================================
> =
> --- head/sys/kern/vfs_vnops.c	Thu Feb  9 23:33:06 2017	(r313494)
> +++ head/sys/kern/vfs_vnops.c	Thu Feb  9 23:35:57 2017	(r313495)
> @@ -349,8 +349,12 @@ vn_open_vnode(struct vnode *vp, int fmod
>  	if ((error = VOP_OPEN(vp, fmode, cred, td, fp)) != 0)
>  		return (error);
>  
> -	if (fmode & (O_EXLOCK | O_SHLOCK)) {
> +	while ((fmode & (O_EXLOCK | O_SHLOCK)) != 0) {
>  		KASSERT(fp != NULL, ("open with flock requires fp"));
> +		if (fp->f_type != DTYPE_VNODE) {
> +			error = EBADF;
> +			break;
> +		}

Hi kib@,

This broke dhclient. I've attached typescript output at the end of this 
email.

>  		lock_flags = VOP_ISLOCKED(vp);
>  		VOP_UNLOCK(vp, 0);
>  		lf.l_whence = SEEK_SET;
> @@ -367,8 +371,12 @@ vn_open_vnode(struct vnode *vp, int fmod
>  		if (error == 0)
>  			fp->f_flag |= FHASLOCK;
>  		vn_lock(vp, lock_flags | LK_RETRY);
> -		if (error == 0 && vp->v_iflag & VI_DOOMED)
> +		if (error != 0)
> +			break;
> +		if ((vp->v_iflag & VI_DOOMED) != 0) {
>  			error = ENOENT;
> +			break;
> +		}
>  
>  		/*
>  		 * Another thread might have used this vnode as an
> @@ -376,20 +384,20 @@ vn_open_vnode(struct vnode *vp, int fmod
>  		 * Ensure the vnode is still able to be opened for
>  		 * writing after the lock has been obtained.
>  		 */
> -		if (error == 0 && accmode & VWRITE)
> +		if ((accmode & VWRITE) != 0)
>  			error = vn_writechk(vp);
> +		break;
> +	}
>  
> -		if (error != 0) {
> -			fp->f_flag |= FOPENFAILED;
> -			fp->f_vnode = vp;
> -			if (fp->f_ops == &badfileops) {
> -				fp->f_type = DTYPE_VNODE;
> -				fp->f_ops = &vnops;
> -			}
> -			vref(vp);
> +	if (error != 0) {
> +		fp->f_flag |= FOPENFAILED;
> +		fp->f_vnode = vp;
> +		if (fp->f_ops == &badfileops) {
> +			fp->f_type = DTYPE_VNODE;
> +			fp->f_ops = &vnops;
>  		}
> -	}
> -	if (error == 0 && fmode & FWRITE) {
> +		vref(vp);
> +	} else if  ((fmode & FWRITE) != 0) {
>  		VOP_ADD_WRITECOUNT(vp, 1);
>  		CTR3(KTR_VFS, "%s: vp %p v_writecount increased to %d",
>  		    __func__, vp, vp->v_writecount);
> 
> 

Script started on Thu Feb  9 20:22:12 2017
slippy# dhclient lagg0
can't open and lock /var/db/dhclient.leases.lagg0: Bad file descriptor
exiting.
slippy# truss dhclient lagg0
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 
740511744 (0x2c235000)
issetugid()					 = 0 (0x0)
lstat("/etc",{ mode=drwxr-xr-x ,inode=119424,size=3584,blksize=16384 }) = 0 
(0x0)
lstat("/etc/libmap.conf",{ mode=-rw-r--r-- ,inode=119627,size=5672,blksize=1
6384 }) = 0 (0x0)
openat(AT_FDCWD,"/etc/libmap.conf",O_RDONLY|O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=119627,size=5672,blksize=16384 }) = 0 (0x0)
mmap(0x0,5672,PROT_READ,MAP_PRIVATE,3,0x0)	 = 740544512 (0x2c23d000)
close(3)					 = 0 (0x0)
mmap(0x0,36864,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 
740552704 (0x2c23f000)
munmap(0x2c23d000,5672)				 = 0 (0x0)
openat(AT_FDCWD,"/var/run/ld-elf.so.hints",O_RDONLY|O_CLOEXEC,00) = 3 (0x3)
read(3,"Ehnt\^A\0\0\0\M^@\0\0\0\M-7\^C\0"...,128) = 128 (0x80)
fstat(3,{ mode=-r--r--r-- ,inode=318545,size=1079,blksize=16384 }) = 0 (0x0)
lseek(3,0x80,SEEK_SET)				 = 128 (0x80)
read(3,"/lib:/usr/lib:/usr/lib/compat:/u"...,951) = 951 (0x3b7)
close(3)					 = 0 (0x0)
access("/lib/libutil.so.9",F_OK)		 = 0 (0x0)
openat(AT_FDCWD,"/lib/libutil.so.9",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 3 
(0x3)
fstat(3,{ mode=-r--r--r-- ,inode=358296,size=74256,blksize=16384 }) = 0 
(0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 740544512 
(0x2c23d000)
mmap(0x0,2174976,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 
742612992 (0x2c436000)
mmap(0x2c436000,69632,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|M
AP_PREFAULT_READ,3,0x0) = 742612992 (0x2c436000)
mmap(0x2c646000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT
_READ,3,0x10000) = 744775680 (0x2c646000)
mmap(0x2c648000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,
0x0) = 744783872 (0x2c648000)
munmap(0x2c23d000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/lib/libc.so.7",F_OK)			 = 0 (0x0)
openat(AT_FDCWD,"/lib/libc.so.7",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=358279,size=1785024,blksize=16384 }) = 0 
(0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 740544512 
(0x2c23d000)
mmap(0x0,3928064,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 
744787968 (0x2c649000)
mmap(0x2c649000,1679360,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE
|MAP_PREFAULT_READ,3,0x0) = 744787968 (0x2c649000)
mmap(0x2c9e2000,53248,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAUL
T_READ,3,0x199000) = 748560384 (0x2c9e2000)
mmap(0x2c9ef000,102400,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-
1,0x0) = 748613632 (0x2c9ef000)
munmap(0x2c23d000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
munmap(0x2c244000,16384)			 = 0 (0x0)
mmap(0x0,102400,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 
740573184 (0x2c244000)
sysarch(AMD64_SET_FSBASE,0x7fffffffe328)	 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
readlink("/etc/malloc.conf",0x7fffffffda20,1024) ERR#2 'No such file or 
directory'
issetugid()					 = 0 (0x0)
__sysctl(0x7fffffffd8c0,0x2,0x7fffffffd910,0x7fffffffd908,0x2c7ac7b7,0xd) = 
0 (0x0)
__sysctl(0x7fffffffd910,0x2,0x7fffffffd9d4,0x7fffffffd9c8,0x0,0x0) = 0 (0x0)
mmap(0x0,2097152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 
748716032 (0x2ca08000)
munmap(0x2ca08000,2097152)			 = 0 (0x0)
mmap(0x0,4190208,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 
748716032 (0x2ca08000)
munmap(0x2ca08000,2064384)			 = 0 (0x0)
munmap(0x2ce00000,28672)			 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
socket(PF_LOCAL,SOCK_DGRAM|SOCK_CLOEXEC,0)	 = 3 (0x3)
connect(3,{ AF_UNIX "/var/run/logpriv" },106)	 = 0 (0x0)
mmap(0x0,2097152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 
752877568 (0x2ce00000)
openat(AT_FDCWD,"/var/run/dhclient.lagg0.pid",O_WRONLY|O_NONBLOCK|O_CREAT|O_
CLOEXEC,0644) = 4 (0x4)
flock(0x4,0x6)					 = 0 (0x0)
stat("/var/run/dhclient.lagg0.pid",{ mode=-rw-r--r-- 
,inode=318523,size=0,blksize=16384 }) = 0 (0x0)
fstat(4,{ mode=-rw-r--r-- ,inode=318523,size=0,blksize=16384 }) = 0 (0x0)
ftruncate(4,0x0)				 = 0 (0x0)
fstat(4,{ mode=-rw-r--r-- ,inode=318523,size=0,blksize=16384 }) = 0 (0x0)
issetugid()					 = 0 (0x0)
open("/usr/share/zoneinfo/America/Vancouver",O_RDONLY,00) = 5 (0x5)
fstat(5,{ mode=-r--r--r-- ,inode=164043,size=2875,blksize=16384 }) = 0 (0x0)
read(5,"TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0"...,41448) = 2875 (0xb3b)
close(5)					 = 0 (0x0)
issetugid()					 = 0 (0x0)
open("/usr/share/zoneinfo/posixrules",O_RDONLY,00) = 5 (0x5)
fstat(5,{ mode=-r--r--r-- ,inode=164324,size=3519,blksize=16384 }) = 0 (0x0)
read(5,"TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0"...,41448) = 3519 (0xdbf)
close(5)					 = 0 (0x0)
open("/etc/dhclient.conf",O_RDONLY,0666)	 = 5 (0x5)
fstat(5,{ mode=-rw-r--r-- ,inode=120257,size=2514,blksize=16384 }) = 0 (0x0)
read(5,"# $FreeBSD: head/etc/dhclient.co"...,16384) = 2514 (0x9d2)
read(5,0x2ce34600,16384)			 = 0 (0x0)
close(5)					 = 0 (0x0)
fstat(4,{ mode=-rw-r--r-- ,inode=318523,size=0,blksize=16384 }) = 0 (0x0)
ftruncate(4,0x0)				 = 0 (0x0)
getpid()					 = 3061 (0xbf5)
pwrite(0x4,0x7fffffffe810,0x4,0x0)		 = 4 (0x4)
socket(PF_INET,SOCK_DGRAM,0)			 = 5 (0x5)
ioctl(5,SIOCGIFMEDIA,0xffffe870)		 = 0 (0x0)
close(5)					 = 0 (0x0)
openat(AT_FDCWD,"/dev/null",O_RDWR,00)		 = 5 (0x5)
stat("/etc/nsswitch.conf",{ mode=-rw-r--r-- ,inode=119871,size=400,blksize=1
6384 }) = 0 (0x0)
open("/etc/nsswitch.conf",O_RDONLY|O_CLOEXEC,0666) = 6 (0x6)
ioctl(6,TIOCGETA,0xffffe4f0)			 ERR#25 'Inappropriate ioctl for device'
fstat(6,{ mode=-rw-r--r-- ,inode=119871,size=400,blksize=16384 }) = 0 (0x0)
read(6,"#\n# nsswitch.conf(5) - name ser"...,16384) = 400 (0x190)
read(6,0x2ce34600,16384)			 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
access("/lib/nss_files.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/nss_files.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_files.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/nss_files.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/compat/pkg/nss_files.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/krb5/lib/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/kde4/lib/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/compat/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/ffmpeg0/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/freeradius-2.2.9/nss_files.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/gcc47/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc48/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc49/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc5/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc6/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gegl-0.2/nss_files.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/graphviz/nss_files.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/httrack/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/itcl3.4/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/jitsi/lib/native/nss_files.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/libxul/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/mysql/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/mysql/plugin/nss_files.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/lib/nss/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/opencollada/nss_files.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/lib/perl5/5.20/mach/CORE/nss_files.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/perl5/5.22/mach/CORE/nss_files.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/perl5/5.24/mach/CORE/nss_files.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/pgtcl/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/pidgin/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/pth/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/qt4/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/samba4/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/xmms/Input/nss_files.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/xrdp/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/libexec/openldap/nss_files.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/llvm34/lib/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm35/lib/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm36/lib/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm37/lib/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm38/lib/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm39/lib/nss_files.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/lib/casper/nss_files.so.1",F_OK)	 ERR#2 'No such file or directory'
access("/lib/nss_files.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/nss_files.so.1",F_OK)		 ERR#2 'No such file or directory'
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
access("/lib/nss_nis.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/nss_nis.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_nis.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/nss_nis.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/compat/pkg/nss_nis.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/krb5/lib/nss_nis.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/kde4/lib/nss_nis.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/compat/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/ffmpeg0/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/freeradius-2.2.9/nss_nis.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/lib/gcc47/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc48/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc49/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc5/nss_nis.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc6/nss_nis.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/gegl-0.2/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/graphviz/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/httrack/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/itcl3.4/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/jitsi/lib/native/nss_nis.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/lib/libxul/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/mysql/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/mysql/plugin/nss_nis.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/nss/nss_nis.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/opencollada/nss_nis.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/perl5/5.20/mach/CORE/nss_nis.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/perl5/5.22/mach/CORE/nss_nis.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/perl5/5.24/mach/CORE/nss_nis.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/pgtcl/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/pidgin/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/pth/nss_nis.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/qt4/nss_nis.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/samba4/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/xmms/Input/nss_nis.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/xrdp/nss_nis.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/libexec/openldap/nss_nis.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/llvm34/lib/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm35/lib/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm36/lib/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm37/lib/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm38/lib/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm39/lib/nss_nis.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/lib/casper/nss_nis.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/lib/nss_nis.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/nss_nis.so.1",F_OK)		 ERR#2 'No such file or directory'
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
access("/lib/nss_dns.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/nss_dns.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_dns.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/nss_dns.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/compat/pkg/nss_dns.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/krb5/lib/nss_dns.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/kde4/lib/nss_dns.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/compat/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/ffmpeg0/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/freeradius-2.2.9/nss_dns.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/lib/gcc47/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc48/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc49/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc5/nss_dns.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc6/nss_dns.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/gegl-0.2/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/graphviz/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/httrack/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/itcl3.4/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/jitsi/lib/native/nss_dns.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/lib/libxul/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/mysql/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/mysql/plugin/nss_dns.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/nss/nss_dns.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/opencollada/nss_dns.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/perl5/5.20/mach/CORE/nss_dns.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/perl5/5.22/mach/CORE/nss_dns.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/perl5/5.24/mach/CORE/nss_dns.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/pgtcl/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/pidgin/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/pth/nss_dns.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/qt4/nss_dns.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/samba4/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/xmms/Input/nss_dns.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/xrdp/nss_dns.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/libexec/openldap/nss_dns.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/llvm34/lib/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm35/lib/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm36/lib/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm37/lib/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm38/lib/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm39/lib/nss_dns.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/lib/casper/nss_dns.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/lib/nss_dns.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/nss_dns.so.1",F_OK)		 ERR#2 'No such file or directory'
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
access("/lib/nss_compat.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/nss_compat.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_compat.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/nss_compat.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/usr/local/lib/compat/pkg/nss_compat.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/krb5/lib/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/kde4/lib/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/compat/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/ffmpeg0/nss_compat.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/freeradius-2.2.9/nss_compat.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/gcc47/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc48/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc49/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc5/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gcc6/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/gegl-0.2/nss_compat.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/graphviz/nss_compat.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/httrack/nss_compat.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/itcl3.4/nss_compat.so.1",F_OK) ERR#2 'No such file 
or directory'
access("/usr/local/lib/jitsi/lib/native/nss_compat.so.1",F_OK) ERR#2 'No 
such file or directory'
access("/usr/local/lib/libxul/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/mysql/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/mysql/plugin/nss_compat.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/lib/nss/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/opencollada/nss_compat.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/lib/perl5/5.20/mach/CORE/nss_compat.so.1",F_OK) ERR#2 
'No such file or directory'
access("/usr/local/lib/perl5/5.22/mach/CORE/nss_compat.so.1",F_OK) ERR#2 
'No such file or directory'
access("/usr/local/lib/perl5/5.24/mach/CORE/nss_compat.so.1",F_OK) ERR#2 
'No such file or directory'
access("/usr/local/lib/pgtcl/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/pidgin/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/pth/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/qt4/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/samba4/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/lib/xmms/Input/nss_compat.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/lib/xrdp/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/libexec/openldap/nss_compat.so.1",F_OK) ERR#2 'No such 
file or directory'
access("/usr/local/llvm34/lib/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm35/lib/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm36/lib/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm37/lib/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm38/lib/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/usr/local/llvm39/lib/nss_compat.so.1",F_OK) ERR#2 'No such file or 
directory'
access("/lib/casper/nss_compat.so.1",F_OK)	 ERR#2 'No such file or 
directory'
access("/lib/nss_compat.so.1",F_OK)		 ERR#2 'No such file or directory'
access("/usr/lib/nss_compat.so.1",F_OK)		 ERR#2 'No such file or directory'
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
ioctl(6,TIOCGETA,0xffffe4c0)			 ERR#25 'Inappropriate ioctl for device'
close(6)					 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
geteuid()					 = 0 (0x0)
open("/etc/spwd.db",O_RDONLY|O_CLOEXEC,00)	 = 6 (0x6)
fstat(6,{ mode=-rw------- ,inode=119874,size=57344,blksize=16384 }) = 0 
(0x0)
read(6,"\0\^F\^Ua\0\0\0\^B\0\0\^D\M-R\0"...,260) = 260 (0x104)
pread(0x6,0x2ce76000,0x1000,0x6000)		 = 4096 (0x1000)
pread(0x6,0x2ce77000,0x1000,0x8000)		 = 4096 (0x1000)
close(6)					 = 0 (0x0)
__sysctl(0x7fffffffe8a0,0x2,0x629820,0x7fffffffe898,0x0,0x0) = 0 (0x0)
fork()						 = 3062 (0xbf6)
wait4(-1,{ EXITED,val=0 },0x0,0x0)		 = 3062 (0xbf6)
__sysctl(0x7fffffffe810,0x6,0x0,0x7fffffffe808,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe810,0x6,0x2ce80000,0x7fffffffe808,0x0,0x0) = 0 (0x0)
openat(AT_FDCWD,"/dev/bpf0",O_RDONLY,00)	 = 6 (0x6)
ioctl(6,BIOCSETIF,0x2ce2a040)			 = 0 (0x0)
ioctl(6,BIOCVERSION,0xffffe828)			 = 0 (0x0)
ioctl(6,BIOCIMMEDIATE,0xffffe814)		 = 0 (0x0)
ioctl(6,BIOCGBLEN,0xffffe810)			 = 0 (0x0)
ioctl(6,BIOCSETF,0xffffe818)			 = 0 (0x0)
ioctl(6,BIOCLOCK,0x0)				 = 0 (0x0)
cap_rights_limit(0x6,0x7fffffffe830)		 = 0 (0x0)
cap_ioctls_limit(0x6,0x4116e0,0x2)		 = 0 (0x0)
openat(AT_FDCWD,"/dev/bpf0",O_WRONLY,00)	 = 7 (0x7)
ioctl(7,BIOCSETIF,0x2ce2a040)			 = 0 (0x0)
ioctl(7,BIOCVERSION,0xffffe830)			 = 0 (0x0)
ioctl(7,BIOCSETWF,0xffffe820)			 = 0 (0x0)
ioctl(7,BIOCLOCK,0x0)				 = 0 (0x0)
cap_rights_limit(0x7,0x7fffffffe838)		 = 0 (0x0)
socket(PF_INET,SOCK_RAW,17)			 = 8 (0x8)
setsockopt(0x8,0x0,0x2,0x7fffffffe81c,0x4)	 = 0 (0x0)
pipe2(0x7fffffffe8e8,0)				 = 0 (0x0)
fork()						 = 3067 (0xbfb)
close(8)					 = 0 (0x0)
close(7)					 = 0 (0x0)
close(9)					 = 0 (0x0)
cap_rights_limit(0xa,0x7fffffffe8d8)		 = 0 (0x0)
openat(AT_FDCWD,"/var/db/dhclient.leases.lagg0",O_RDONLY|O_EXLOCK|O_CREAT,00
) ERR#9 'Bad file descriptor'
stat("/usr/share/nls/C/libc.cat",0x7fffffffe288) ERR#2 'No such file or 
directory'
stat("/usr/share/nls/libc/C",0x7fffffffe288)	 ERR#2 'No such file or 
directory'
stat("/usr/local/share/nls/C/libc.cat",0x7fffffffe288) ERR#2 'No such file 
or directory'
stat("/usr/local/share/nls/libc/C",0x7fffffffe288) ERR#2 'No such file or 
directory'
getpid()					 = 3061 (0xbf5)
sendto(3,"<27>Feb  9 20:22:24 dhclient[306"...,106,0x0,NULL,0x0) = 106 
(0x6a)
can't open and lock /var/db/dhclient.leases.lagg0: Bad file 
descriptorwrite(2,"can't open and lock /var/db/dhcl"...,70) = 70 (0x46)

write(2,"\n",1)					 = 1 (0x1)
getpid()					 = 3061 (0xbf5)
sendto(3,"<26>Feb  9 20:22:24 dhclient[306"...,44,0x0,NULL,0x0) = 44 (0x2c)
exiting.
write(2,"exiting.\n",9)				 = 9 (0x9)
fstat(4,{ mode=-rw-r--r-- ,inode=318523,size=4,blksize=16384 }) = 0 (0x0)
unlink("/var/run/dhclient.lagg0.pid")		 = 0 (0x0)
close(4)					 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTER
M|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF
SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0)		 = 0 (0x0)
exit(0x1)					
process exit, rval = 1
slippy# exit

Script done on Thu Feb  9 20:22:26 2017



-- 
Cheers,
Cy Schubert <Cy.Schubert at cschubert.com>
FreeBSD UNIX:  <cy at FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.





More information about the svn-src-head mailing list