freebsd-dev/sys
Konstantin Belousov f69261f2f9 Fix fcntl(2) compat32 after r270691. The copyin and copyout of the
struct flock are done in the sys_fcntl(), which mean that compat32 used
direct access to userland pointers.

Move code from sys_fcntl() to new wrapper, kern_fcntl_freebsd(), which
performs neccessary userland memory accesses, and use it from both
native and compat32 fcntl syscalls.

Reported by:	jhibbits
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
2014-09-25 21:07:19 +00:00
..
amd64 ddb: allow specifying the exact address of the symtab and strtab 2014-09-25 08:28:10 +00:00
arm Add driver for Synopsys DesignWare 3504-0 Universal 10/100/1000 2014-09-25 18:03:14 +00:00
boot Add driver for Synopsys DesignWare 3504-0 Universal 10/100/1000 2014-09-25 18:03:14 +00:00
bsm IFp4 @1192291: 2014-04-07 20:44:00 +00:00
cam When reporting some major UNIT ATTENTION condition, like POWER ON OCCURRED 2014-09-23 20:35:48 +00:00
cddl Remove sys/types.h include as per style (9) 2014-09-18 20:38:18 +00:00
compat Fix fcntl(2) compat32 after r270691. The copyin and copyout of the 2014-09-25 21:07:19 +00:00
conf Merge the PC98 fdc(4) driver into the MI driver. While here, replace 2014-09-25 20:40:24 +00:00
contrib ipfilter bug #558 add in some missing frag table function comments. 2014-09-24 01:21:31 +00:00
crypto Put the aesni_cipher_setup() and aesni_cipher_process() functions into 2014-06-24 06:55:49 +00:00
ddb ddb: allow specifying the exact address of the symtab and strtab 2014-09-25 08:28:10 +00:00
dev Merge the PC98 fdc(4) driver into the MI driver. While here, replace 2014-09-25 20:40:24 +00:00
fs Fix thinko that, with two map entries like shown below, in that order, 2014-09-23 11:27:43 +00:00
gdb Add support for gdb's memory searching capabilities to our in-kernel gdb 2014-09-05 16:40:47 +00:00
geom Cache GELI passphrases entered at the console during the boot process, 2014-09-16 08:40:52 +00:00
gnu reiserfs: Use signed i_nlink 2014-09-25 19:10:32 +00:00
i386 ddb: allow specifying the exact address of the symtab and strtab 2014-09-25 08:28:10 +00:00
isa Remove vestiges of knowing the ISA bus, which we gave up on around 20 2014-03-19 21:03:04 +00:00
kern Fix fcntl(2) compat32 after r270691. The copyin and copyout of the 2014-09-25 21:07:19 +00:00
kgssapi
libkern Use __DECONST to avoid compiler warnings (and thus build failures) 2014-09-08 08:12:09 +00:00
mips Replace multiple nearly-identical copies of code to walk through an FDT 2014-09-25 15:02:33 +00:00
modules Merge the PC98 fdc(4) driver into the MI driver. While here, replace 2014-09-25 20:40:24 +00:00
net Improve transmit sending offload, TSO, algorithm in general. 2014-09-22 08:27:27 +00:00
net80211 Mechanically convert to if_inc_counter(). 2014-09-19 09:20:55 +00:00
netgraph Use callout(9) instead of timeout(9). 2014-09-20 16:43:14 +00:00
netinet Catch up with r271119. 2014-09-24 20:12:40 +00:00
netinet6 Revisions 264905 and 266860 added a "int fib" argument to ifa_ifwithnet and 2014-09-11 20:21:03 +00:00
netipsec Mechanically convert to if_inc_counter(). 2014-09-19 10:18:14 +00:00
netnatm
netpfil Fix NULL pointer deref in ipfw when using dummynet at layer 2. 2014-09-25 02:26:05 +00:00
netsmb Remove redundant unlock. 2014-04-17 12:22:08 +00:00
nfs Fix/improve fhe_stats sysctl output. 2014-06-14 12:26:12 +00:00
nfsclient Avoid an exclusive acquisition of the object lock on the expected execution 2014-09-14 18:07:55 +00:00
nfsserver Change NFS readdir() to only ignore cookies preceding the given offset for 2014-07-01 20:00:35 +00:00
nlm Correct a typo in nlm_find_host_by_addr(): the intention of the 2014-03-11 00:25:55 +00:00
ofed Update code to use new network counter API. 2014-09-24 08:28:34 +00:00
opencrypto Fix build for kernels without COMPAT_FREEBSD32. 2014-09-22 17:32:27 +00:00
pc98 Merge the PC98 fdc(4) driver into the MI driver. While here, replace 2014-09-25 20:40:24 +00:00
powerpc Replace multiple nearly-identical copies of code to walk through an FDT 2014-09-25 15:02:33 +00:00
rpc Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
security Replace dev_clone with cdevpriv(9) KPI in audit_pipe code. 2014-08-20 16:04:30 +00:00
sparc64 ddb: allow specifying the exact address of the symtab and strtab 2014-09-25 08:28:10 +00:00
sys Fix fcntl(2) compat32 after r270691. The copyin and copyout of the 2014-09-25 21:07:19 +00:00
teken Fix typo. 2014-02-06 13:28:06 +00:00
tools Allow the make_dtb script to work outside of a "make buildkernel" context 2014-08-30 22:39:15 +00:00
ufs Provide the unique implementation for the VOP_GETPAGES() method used 2014-09-15 12:28:29 +00:00
vm Fix ticks wrap issue of lowmem test in vm_pageout_scan 2014-09-24 14:35:08 +00:00
x86 ddb: allow specifying the exact address of the symtab and strtab 2014-09-25 08:28:10 +00:00
xdr
xen xen: implement event channel PIRQ support 2014-08-04 08:42:29 +00:00
Makefile Remove "pci" from CSCOPEDIRS. 2014-09-23 06:32:19 +00:00