freebsd-skq/sys/compat
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
..
cloudabi Sync in the latest CloudABI system call definitions. 2016-03-31 18:50:06 +00:00
cloudabi64 Make CloudABI's way of doing TLS more friendly to userspace emulators. 2016-04-06 11:11:31 +00:00
freebsd32 The sendfile(2) allows to send extra data from userspace before the file 2016-03-29 19:57:11 +00:00
ia32 Implement vsyscall hack. Prior to 2.13 glibc uses vsyscall 2016-01-09 20:18:53 +00:00
linprocfs linprocfs_doproclimits: Initialize error return before use 2016-04-20 01:03:06 +00:00
linsysfs Add support to the jail framework to be able to mount linsysfs(5) and 2015-07-19 08:52:35 +00:00
linux sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00
linuxkpi/common Fix handling of IOCTLs in the LinuxKPI. 2016-05-12 11:38:28 +00:00
ndis ndis: spelling fixes in comments. 2016-04-30 00:35:46 +00:00
netbsd Remove some more NetBSD compat shims and other unused bits from these 2012-09-10 18:49:49 +00:00
svr4 Allow to build svr4 module with SYSV support separatelly from the kernel build. 2016-04-23 20:31:18 +00:00
x86bios x86bios: spelling fix in a comment. 2016-04-30 00:34:04 +00:00