freebsd-dev/sys/compat/linuxkpi/common/include/asm
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
..
atomic64.h Add more atomic LinuxKPI functions. 2016-05-11 07:58:43 +00:00
atomic-long.h LinuxKPI atomic fixes: 2016-01-21 17:52:55 +00:00
atomic.h Add more atomic LinuxKPI functions. 2016-05-11 07:58:43 +00:00
byteorder.h Use function macros when possible to avoid stray substitutions. 2016-05-10 11:39:36 +00:00
fcntl.h
io.h
pgtable.h
types.h
uaccess.h Fix handling of IOCTLs in the LinuxKPI. 2016-05-12 11:38:28 +00:00