freebsd-skq/sys/compat/linux
dchagin c0a24efce9 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
..
check_error.d Switch linuxulator to use the native 1:1 threads. 2015-05-24 14:53:16 +00:00
check_internal_locks.d sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00
linux_common.c Move FEATURE macros for v4l and v4l2 to the common module. 2015-05-24 16:00:01 +00:00
linux_dtrace.h Fix style issues around existing SDT probes. 2015-12-16 23:39:27 +00:00
linux_emul.c Finish r283544. In exec case properly detach threads from user space 2015-06-06 06:12:14 +00:00
linux_emul.h Print out unsupported futex operation message only once for the process. 2015-05-24 17:25:57 +00:00
linux_event.c When write(2) on eventfd object fails with the error EAGAIN do not return 2016-03-26 19:16:53 +00:00
linux_event.h Add EPOLLRDHUP support. 2015-06-20 05:40:35 +00:00
linux_file.c Minor style(9) cleanup, no functional changes. 2016-05-22 12:26:03 +00:00
linux_file.h Add several fcntl flags. 2015-05-24 16:32:52 +00:00
linux_fork.c Update comments for the MD functions managing contexts for new 2016-06-16 12:05:44 +00:00
linux_futex.c For future use move futex timeout code to the separate function and 2016-05-22 12:37:40 +00:00
linux_futex.h Switch linuxulator to use the native 1:1 threads. 2015-05-24 14:53:16 +00:00
linux_getcwd.c Where possible we will use M_LINUX malloc(9) type. 2015-05-24 16:14:41 +00:00
linux_ioctl.c Fix kernel stack disclosures in the Linux and 4.3BSD compat layers. 2016-05-31 16:56:30 +00:00
linux_ioctl.h The latest cp tool is trying to use the btrfs clone operation that is 2015-05-24 18:12:04 +00:00
linux_ipc.c x86_64 Linux do not use multiplexing on ipc system calls. 2015-05-24 15:44:41 +00:00
linux_ipc.h x86_64 Linux do not use multiplexing on ipc system calls. 2015-05-24 15:44:41 +00:00
linux_mib.c osd(9): Change array pointer to array pointer type from void* 2016-04-26 19:57:35 +00:00
linux_mib.h Update Linux compat revision to 32. 2015-05-24 16:55:32 +00:00
linux_misc.c Fix kernel stack disclosures in the Linux and 4.3BSD compat layers. 2016-05-31 16:56:30 +00:00
linux_misc.h More complete implementation of /proc/self/limits. 2016-04-10 07:11:29 +00:00
linux_signal.c Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
linux_signal.h Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
linux_socket.c Fix a bug introduced in r283433. 2016-06-26 16:59:59 +00:00
linux_socket.h sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00
linux_stats.c Check bsd_to_linux_statfs() return value. Forgotten in r297070. 2016-03-20 19:06:21 +00:00
linux_sysctl.c Where possible we will use M_LINUX malloc(9) type. 2015-05-24 16:14:41 +00:00
linux_sysproto.h
linux_time.c Linux nanosleep() and clock_nanosleep() system calls always 2015-05-24 18:14:38 +00:00
linux_timer.c Return EINVAL in case of incorrect sigev_signo value specified instead of panicing. 2015-12-26 09:09:49 +00:00
linux_timer.h Delete the duplicate of linux_to_native_clockid() function. 2015-05-24 17:30:31 +00:00
linux_uid16.c Where possible we will use M_LINUX malloc(9) type. 2015-05-24 16:14:41 +00:00
linux_util.c Implement epoll family system calls. This is a tiny wrapper 2015-05-24 16:41:39 +00:00
linux_util.h As <machine/vmparam.h> is included from <vm/vm_param.h>, there is no 2016-02-22 09:08:04 +00:00
linux_vdso.c Add 64 bit support to the vdso. 2015-05-24 15:45:36 +00:00
linux_vdso.h Add 64 bit support to the vdso. 2015-05-24 15:45:36 +00:00
linux_videodev2_compat.h
linux_videodev_compat.h
linux.c Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
linux.h Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
stats_timing.d Switch linuxulator to use the native 1:1 threads. 2015-05-24 14:53:16 +00:00
trace_futexes.d sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00