freebsd-dev/sys
Hans Petter Selasky 3a8bec33ef Fix handling of IOCTLs in the LinuxKPI.
Linux requires that all IOCTL data resides in userspace. FreeBSD
always moves the main IOCTL structure into a kernel buffer before
invoking the IOCTL handler and then copies it back into userspace,
before returning. Hide this difference in the "linux_copyin()" and
"linux_copyout()" functions by remapping userspace addresses in the
range from 0x10000 to 0x20000, to the kernel IOCTL data buffer.

It is assumed that the userspace code, data and stack segments starts
no lower than memory address 0x400000, which is also stated by "man 1
ld", which means any valid userspace pointer can be passed to regular
LinuxKPI handled IOCTLs.

Bump the FreeBSD version to force recompilation of all kernel modules.

Discussed with:	kmacy @
MFC after:	1 week
Sponsored by:	Mellanox Technologies
2016-05-12 11:38:28 +00:00
..
amd64 Add locking annotations to amd64 struct md_page members. 2016-05-10 09:58:51 +00:00
arm Add OF_prop_free function as a counterpart for OF_*prop_alloc 2016-05-11 18:20:02 +00:00
arm64 Call busdma_swi from swi_vm as is done from other architectures. 2016-05-11 18:48:47 +00:00
boot sys/boot/common: use of spaces vs. TAB. 2016-05-12 01:19:11 +00:00
bsm
cam Allow sleepable allocations in enclosure daemon threads. 2016-05-10 16:20:36 +00:00
cddl compat/opensolaris: Don't redefined off64_t if already defined 2016-05-11 16:05:32 +00:00
compat Fix handling of IOCTLs in the LinuxKPI. 2016-05-12 11:38:28 +00:00
conf Add gpiokeys driver 2016-05-11 17:57:26 +00:00
contrib Revert AccessWidth/BitOffset support for AcpiHwWrite() and AcpiHwRead() for 2016-04-30 06:48:48 +00:00
crypto aesni(4): Initialize error before use 2016-04-20 03:05:32 +00:00
ddb Revert r298938: Change x/a to work similar to gdb. 2016-05-06 20:28:28 +00:00
dev sfxge(4): update multicast filter insertion algorithm 2016-05-12 06:20:26 +00:00
fs nfsd: Fix use-after-free in NFS4 lock test service 2016-05-12 05:03:12 +00:00
gdb
geom Add missing include "opt_geom.h" to make GEOM_UZIP_DEBUG option working, 2016-05-06 20:32:39 +00:00
gnu Change OpenWRT imported dtsi files 2016-04-20 14:29:03 +00:00
i386 Add a new bus method to fetch device-specific CPU sets. 2016-05-09 20:50:21 +00:00
isa sys/isa: minor spelling fixes. 2016-05-03 21:51:52 +00:00
kern Stop hiding errors that result in failure to mount /dev. Otherwise, 2016-05-12 07:38:10 +00:00
kgssapi kgssapi: insignificant spelling fix. 2016-05-03 22:05:03 +00:00
libkern sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
mips Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
modules sfxge(4): make efx_sram_test Siena-only 2016-05-11 06:21:07 +00:00
net Improve performance and functionality of the bitstring(3) api 2016-05-04 22:34:11 +00:00
net80211 net80211: restore 'iflladdr_event' event handler. 2016-05-06 11:41:49 +00:00
netgraph sys/netgraph: spelling fixes in comments. 2016-04-29 21:25:05 +00:00
netinet tcp/syncache: Add comment for syncache_respond 2016-05-10 04:59:04 +00:00
netinet6 Remove obsolescent comments from nd6_purge(). 2016-05-09 23:43:12 +00:00
netipsec netipsec: Fix minor style nit 2016-05-10 20:14:11 +00:00
netnatm kernel: use our nitems() macro when it is available through param.h. 2016-04-19 23:48:27 +00:00
netpfil Fix memory leak possible in error case. 2016-05-11 10:04:32 +00:00
netsmb sys/net*: minor spelling fixes. 2016-05-03 18:05:43 +00:00
nfs NFS: spelling fixes on comments. 2016-04-29 16:07:25 +00:00
nfsclient
nfsserver
nlm Remove slightly used const values that can be replaced with nitems(). 2016-04-21 15:38:28 +00:00
ofed sys/ofed: minor spelling fix. 2016-05-06 15:37:06 +00:00
opencrypto sys/opencrypto: minor spelling fixes. 2016-05-06 23:37:19 +00:00
pc98 Move 'device pci' for the PCI bus driver to the MI NOTES file. 2016-04-29 23:53:55 +00:00
powerpc Native PCI-express HotPlug support. 2016-05-05 22:26:23 +00:00
riscv Rework the list of all pmaps: embed the list link into pmap. 2016-04-26 14:38:18 +00:00
rpc sys/rpc: minor spelling fixes. 2016-05-06 01:49:46 +00:00
security sys/security: minor spelling fixes. 2016-05-06 16:59:04 +00:00
sparc64 sys/sparc64: minor spelling fixes. 2016-05-04 15:52:40 +00:00
sys Fix handling of IOCTLs in the LinuxKPI. 2016-05-12 11:38:28 +00:00
teken
tests
tools Fix MFS builds when both MD_ROOT_SIZE and MFS_IMAGE are specified 2016-02-02 07:02:51 +00:00
ufs UFS: spelling fixes on comments. 2016-04-29 20:43:51 +00:00
vm Move vm_domain_rr_selectdomain() under #ifdef VM_NUMA_ALLOC. 2016-05-10 22:25:55 +00:00
x86 Allow orm(4) to be disabled from probing/attaching by a hints entry: 2016-05-10 22:28:06 +00:00
xdr RPC: for pointers replace 0 with NULL. 2016-04-14 17:06:37 +00:00
xen
Makefile Add riscv to the list of architectures for cscope. 2016-02-29 16:39:27 +00:00