#
321022 |
|
15-Jul-2017 |
dchagin |
MFC r296503:
Linux accept() system call return EOPNOTSUPP errno instead of EINVAL for UDP sockets.
MFC r296504:
Does not leak fp. While here remove bogus cast of fp->f_data.
MFC r313913:
Initialize cap_rights before use.
|
#
302259 |
|
29-Jun-2016 |
dchagin |
MFC r302213:
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] Tested by: Thomas Mueller <tmueller at sysgo dot com> [both] Reviewed by: kib@
|
#
301431 |
|
05-Jun-2016 |
dchagin |
MFC r300431:
Convert proto family in both directions. The linux and native values for local and inet are identical, but for inet6 values differ.
PR: 155040 Reported by: Simon Walton
|
#
301429 |
|
05-Jun-2016 |
dchagin |
MFC r300416:
Add a missing errno translation for SO_ERROR optname.
PR: 135458 Reported by: Stefan Schmidt
|
#
297518 |
|
03-Apr-2016 |
dchagin |
MFC r297309:
Whitespaces and style(9) fix. No functional changes.
|
#
297306 |
|
27-Mar-2016 |
dchagin |
Revert r297303.
|
#
297303 |
|
27-Mar-2016 |
dchagin |
MFC r296503, r296504:
Linux accept() system call return EOPNOTSUPP errno instead of EINVAL for UDP sockets.
|
#
297211 |
|
23-Mar-2016 |
ae |
MFC r296557: Add support for IPPROTO_IPV6 socket layer for getsockopt/setsockopt calls. Also add mapping for several options from RFC 3493 and 3542.
|
#
294529 |
|
21-Jan-2016 |
dchagin |
MFC 294233:
Prevent double free of control in common sendmsg path as sosend already freeing it.
|
#
293605 |
|
09-Jan-2016 |
dchagin |
MFC r284166 (by jkim):
Properly initialize flags for accept4(2) not to return spurious EINVAL. Note this fixes a Linuxulator regression introduced in r283490.
PR: 200662
|
#
293597 |
|
09-Jan-2016 |
dchagin |
MFC r283497:
Convert SCM_TIMESTAMP in recvmsg().
|
#
293594 |
|
09-Jan-2016 |
dchagin |
MFC r283494:
Fix an mbuf(9) leak in sendmsg() under failure condition and remove unneeded check for failed M_WAITOK allocation.
|
#
293590 |
|
09-Jan-2016 |
dchagin |
MFC r283490:
Since FreeBSD supports SOCK_CLOEXEC & SOCK_NONBLOCK options remove its emulation via fcntl call from Linuxulator.
|
#
293588 |
|
09-Jan-2016 |
dchagin |
MFC r283488:
Implement recvmmsg() and sendmmsg() system calls.
|
#
293541 |
|
09-Jan-2016 |
dchagin |
MFC r283437:
To avoid code duplication move open/fcntl definitions to the MI header file.
|
#
293537 |
|
09-Jan-2016 |
dchagin |
MFC r283433:
Rewrite linux_recvfrom. To avoid double conversion of sockaddr use kern_recvit() directly. And check fromlen parameter before sockaddr copyin and conversion.
|
#
293532 |
|
09-Jan-2016 |
dchagin |
MFC r283427:
Where possible we will use M_LINUX malloc(9) type. Move M_FUTEX defines to the linux_common.ko.
|
#
293521 |
|
09-Jan-2016 |
dchagin |
MFC r283415:
Disable i386 call for x86-64 Linux.
|
#
293519 |
|
09-Jan-2016 |
dchagin |
MFC r283413:
64-bit paltforms, like x86_64, do not use multiplexing on socketcall system calls.
|
#
280258 |
|
19-Mar-2015 |
rwatson |
Merge r263233 from HEAD to stable/10:
Update kernel inclusions of capability.h to use capsicum.h instead; some further refinement is required as some device drivers intended to be portable over FreeBSD versions rely on __FreeBSD_version to decide whether to include capability.h.
Sponsored by: Google, Inc.
|
#
276813 |
|
08-Jan-2015 |
dchagin |
MFC r276512: Fix Clang -Wpointer-sign warnings.
|
#
280258 |
|
19-Mar-2015 |
rwatson |
Merge r263233 from HEAD to stable/10:
Update kernel inclusions of capability.h to use capsicum.h instead; some further refinement is required as some device drivers intended to be portable over FreeBSD versions rely on __FreeBSD_version to decide whether to include capability.h.
Sponsored by: Google, Inc.
|
#
276813 |
|
08-Jan-2015 |
dchagin |
MFC r276512: Fix Clang -Wpointer-sign warnings.
|