freebsd-dev/sys
Konstantin Belousov 7903b00087 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
2017-02-09 23:35:57 +00:00
..
amd64 Regen after r313284. 2017-02-05 14:19:19 +00:00
arm Rename timer.c to a10_timer.c 2017-02-07 19:28:32 +00:00
arm64 Push reading of ESR_EL1 to assembly. Among other uses this will allow us 2017-02-07 18:19:11 +00:00
boot loader: possible NULL pointer dereference in bcache.c 2017-02-08 18:32:53 +00:00
bsm
cam Revert crap accidentally committed 2017-01-28 16:31:23 +00:00
cddl Fix setting birthtime in ZFS 2017-02-09 21:30:53 +00:00
compat Add kern_vm_mmap2(), kern_vm_mprotect(), kern_vm_msync(), kern_vm_munlock(), 2017-02-06 20:57:12 +00:00
conf [iwm] back this out to version 16 for now. 2017-02-08 07:07:23 +00:00
contrib [iwm] add this 3 megabyte firmware image. 2017-02-08 07:03:09 +00:00
crypto Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
ddb Revert crap accidentally committed 2017-01-28 16:31:23 +00:00
dev [ath_hal] implement NULL methods for ah_setQuiet for AR5210, AR5211. 2017-02-09 23:20:55 +00:00
fs Revert crap accidentally committed 2017-01-28 16:31:23 +00:00
gdb
geom Defer startup of gjournal switcher kproc. 2017-02-07 22:45:59 +00:00
gnu Add Ingenic X1000 DTS files (unofficial). 2016-11-19 15:03:49 +00:00
i386 Regen after r313284. 2017-02-05 14:19:19 +00:00
isa Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
kern Do not establish advisory locks when doing open(O_EXLOCK) or open(O_SHLOCK) 2017-02-09 23:35:57 +00:00
kgssapi
libkern calculate_crc32c: Add SSE4.2 implementation on x86 2017-01-31 03:26:32 +00:00
mips Add I2C device hints for Onion Omega 2017-02-09 15:16:08 +00:00
modules [iwm] back this out to version 16 for now. 2017-02-08 07:07:23 +00:00
net Merge projects/ipsec into head/. 2017-02-06 08:49:57 +00:00
net80211 [net80211] don't bother doing fragmentation if the driver supports fragmentation offload. 2017-02-09 23:29:57 +00:00
netgraph mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION. 2017-01-20 00:02:11 +00:00
netinet Fix garbage IP addresses in UDP log_in_vain messages 2017-02-07 18:57:57 +00:00
netinet6 Merge projects/ipsec into head/. 2017-02-06 08:49:57 +00:00
netipsec Merge projects/ipsec into head/. 2017-02-06 08:49:57 +00:00
netnatm
netpfil Fix typos in comments (returing -> returning) 2017-02-07 00:09:48 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Move the ConnectX-3 and ConnectX-2 driver from sys/ofed into sys/dev/mlx4 2016-09-30 08:23:06 +00:00
opencrypto Add support for the fpu_kern(9) KPI on arm64. It hooks into the existing 2016-10-20 09:22:10 +00:00
powerpc Define the vm_ooffset_t and vm_pindex_t types as machine-independend. 2017-02-04 12:26:38 +00:00
riscv Implement atomic_fcmpset_*() for RISC-V. 2017-02-05 00:32:12 +00:00
rpc
security Audit 'fd' and 'cmd' arguments to fcntl(2), and when generating BSM, 2016-11-22 00:41:24 +00:00
sparc64 Define the vm_ooffset_t and vm_pindex_t types as machine-independend. 2017-02-04 12:26:38 +00:00
sys Define ELF_ST_VISIBILITY(). 2017-02-09 23:32:03 +00:00
teken
tests
tools Replace using of objdump with elfdump 2017-01-10 18:46:40 +00:00
ufs ufs: Use UFS_MAXNAMLEN constant 2017-02-09 17:47:01 +00:00
vm Add kern_vm_mmap2(), kern_vm_mprotect(), kern_vm_msync(), kern_vm_munlock(), 2017-02-06 20:57:12 +00:00
x86 Ensure the idle thread's loop services interrupts in a timely way when 2017-02-08 16:46:57 +00:00
xdr
xen "Buses" is the preferred plural of "bus" 2017-01-15 17:54:01 +00:00
Makefile Remove pc98 support completely. 2017-01-28 02:22:15 +00:00