freebsd-nq/sys/compat
Dmitry Chagin 3a49978f45 Fix a bug introduced in r283433.
[1] Remove unneeded sockaddr conversion before kern_recvit() call as the from
argument is used to record result (the source address of the received message) only.

[2] In Linux the type of msg_namelen member of struct msghdr is signed but native
msg_namelen has a unsigned type (socklen_t). So use the proper storage to fetch fromlen
from userspace and than check the user supplied value and return EINVAL if it is less
than 0 as a Linux do.

Reported by:	Thomas Mueller <tmueller at sysgo dot com> [1]
Reviewed by:	kib@
Approved by:	re (gjb, kib)
MFC after:	3 days
2016-06-26 16:59:59 +00:00
..
cloudabi Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00
cloudabi64 Make CloudABI's way of doing TLS more friendly to userspace emulators. 2016-04-06 11:11:31 +00:00
freebsd32 Generate syscall tables and update pipe() implementation after r302094. 2016-06-22 21:18:19 +00:00
ia32 Implement vsyscall hack. Prior to 2.13 glibc uses vsyscall 2016-01-09 20:18:53 +00:00
linprocfs swap_dev_info() does not require Giant, so Giant locking around 2016-06-12 11:13:38 +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 Fix a bug introduced in r283433. 2016-06-26 16:59:59 +00:00
linuxkpi/common Add a missing error check for a malloc() call in idr_get(). 2016-06-14 03:57:00 +00:00
ndis ndis(4): Undo unneeded workarounds in ndis' rand(). 2016-05-22 14:13:20 +00:00
netbsd
svr4 Regen post r302096 and implement svr4_pipe(). 2016-06-23 00:30:09 +00:00
x86bios x86bios: spelling fix in a comment. 2016-04-30 00:34:04 +00:00