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
..
2014-09-23 02:56:40 +00:00
2014-03-18 21:34:11 +00:00
2014-08-24 09:04:09 +00:00
2014-09-03 08:40:16 +00:00
2014-07-07 00:27:09 +00:00
2014-03-14 06:29:43 +00:00
2014-09-17 17:43:32 +00:00
2014-06-26 13:57:44 +00:00
2014-05-01 22:28:14 +00:00
2014-08-11 15:06:07 +00:00
2014-03-18 21:34:11 +00:00
2014-03-18 21:34:11 +00:00
2014-08-03 22:37:21 +00:00