Revision tags: release/14.0.0 |
|
#
6ecab394 |
| 17-Aug-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Drop bogus __arm__ condition due to lack of 32-bit arm support
MFC after: 1 month
|
#
95ee2897 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
Revision tags: release/13.2.0 |
|
#
a927409c |
| 04-Mar-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Rename struct l_ifreq members names to avoid conflicts with FreeBSD
For now we are using mixed names to access struct ifreq members, some of Linux (ifr_name, ifr_ifindex), others of FreeBS
linux(4): Rename struct l_ifreq members names to avoid conflicts with FreeBSD
For now we are using mixed names to access struct ifreq members, some of Linux (ifr_name, ifr_ifindex), others of FreeBSD. To avoid conflicts switch to use FreeBSD names.
Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D38792
show more ...
|
#
cabbfb60 |
| 04-Mar-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Reduce code duplication between MD files
Move struct ifnet definitions under compat/linux.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D38791
|
Revision tags: release/12.4.0 |
|
#
f8a66150 |
| 28-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Handle IP_ORIGDSTADDR socket option for IPPROTO_IP protocol level
MFC after: 2 weeks
|
#
71bc8bcf |
| 28-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Handle SO_TIMESTAMPNS socket option
The SO_TIMESTAMPNS enables or disables the receiving of the SCM_TIMESTAMPNS control message. The cmsg_data field is a struct timespec. To distinguish be
linux(4): Handle SO_TIMESTAMPNS socket option
The SO_TIMESTAMPNS enables or disables the receiving of the SCM_TIMESTAMPNS control message. The cmsg_data field is a struct timespec. To distinguish between SO_TIMESTAMP and SO_TIMESTAMPNS in the recvmsg() map the last one to the SO_BINTIME and convert bintime to the timespec. In the rest, implementation is identical to the SO_TIMESTAMP.
MFC after: 2 weeks
show more ...
|
#
0e26e54b |
| 28-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Handle 64-bit SO_TIMESTAMP for 32-bit binaries
To solve y2k38 problem in the recvmsg syscall the new SO_TIMESTAMP constant were added on v5.1 Linux kernel. So, old 32-bit binaries that kno
linux(4): Handle 64-bit SO_TIMESTAMP for 32-bit binaries
To solve y2k38 problem in the recvmsg syscall the new SO_TIMESTAMP constant were added on v5.1 Linux kernel. So, old 32-bit binaries that knows only 32-bit time_t uses the old value of the constant, and binaries that knows 64-bit time_t uses the new constant.
To determine what size of time_t type is expected by the user-space, store requested value (SO_TIMESTAMP) in the process emuldata structure.
MFC after: 2 weeks
show more ...
|
#
f409a7c5 |
| 28-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): For future use move SCM definitions below socket options
MFC after: 2 weeks
|
Revision tags: release/13.1.0 |
|
#
cf312f79 |
| 11-Apr-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Handle SO_DOMAIN in getsockopt syscall.
Differential revision: https://reviews.freebsd.org/D34714
|
Revision tags: release/12.3.0 |
|
#
99f563ed |
| 17-Oct-2021 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
linux: recognize TCP_INFO and ratelimit the warning
This ratelimits the "unsupported getsockopt level 6 optname 11" warnings that happen all the time when watching Netflix.
Sponsored By: EPSRC Diff
linux: recognize TCP_INFO and ratelimit the warning
This ratelimits the "unsupported getsockopt level 6 optname 11" warnings that happen all the time when watching Netflix.
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32454
show more ...
|
Revision tags: release/13.0.0 |
|
#
cd84c82c |
| 07-Feb-2021 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
linux: add support for SO_PEERGROUPS
The su(8) and sudo(8) from Ubuntu Bionic use it.
Sponsored By: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28165
|
#
e44a78ce |
| 07-Feb-2021 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
linux: add support for SO_PEERSEC getsockopt
It returns "unconfined", like Linux without SELinux would.
Sponsored By: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28164
|
#
8ec6c4a3 |
| 08-Nov-2020 |
Alexander Leidinger <netchild@FreeBSD.org> |
- add more linux socket options (sorted by value) - map those IPv4 / IPv6 socket options which exist in FreeBSD + most of them visually verified to have the same type/layout of arguments + not
- add more linux socket options (sorted by value) - map those IPv4 / IPv6 socket options which exist in FreeBSD + most of them visually verified to have the same type/layout of arguments + not tested with linux programs to behave as intended - be more human readable for known options which are not handled - be more verbose for unhandled socket message flags we know about - print the jail ID in linux_msg if run in a jail - add possibility to print debug message about known missing parts only once - add multiple levels of sysctl linux.debug: 1: print debug messages, tell about unimplemented stuff (only once) 2: like 1, but also print messages about implemented but not tested stuff (only once) 3+: like 2, but no rate limiting of messages - increase default linux debug level from 1 to 3
We are a lot more verbose in as we need to be (e.g. some of the IP socket options which are the same, and share the same memory layout, and are believed to work). The reason is that we have no good testsuite to test those linux-bits. The LTP or other test suites like the python one, are not fully up to the task we need. As such the excessive messages about emulated but not tested socket options.
IMO any MFC (possible, but most probably not by me) should set the default debug level to 1.
Discussed with: trasz
show more ...
|
Revision tags: release/12.2.0 |
|
#
4fe5361c |
| 28-Jun-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Make linux(4) support SO_PROTOCOL. Running Python test suite with python3.8 from Focal triggers those.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews
Make linux(4) support SO_PROTOCOL. Running Python test suite with python3.8 from Focal triggers those.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25491
show more ...
|
#
4beacc3b |
| 12-Jun-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Minor code cleanup; no functional changes.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25232
|
Revision tags: release/11.4.0 |
|
#
3bc69ad9 |
| 11-Jun-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Make linux(4) handle SO_REUSEPORT.
Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25216
|
#
c31a6a66 |
| 10-Jun-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Support SO_SNDBUFFORCE/SO_RCVBUFFORCE by aliasing them to the standard SO_SNDBUF/SO_RCVBUF. Mostly cosmetics, to get rid of the warning during 'apt upgrade'.
MFC after: 2 weeks Sponsored by: The Fr
Support SO_SNDBUFFORCE/SO_RCVBUFFORCE by aliasing them to the standard SO_SNDBUF/SO_RCVBUF. Mostly cosmetics, to get rid of the warning during 'apt upgrade'.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25173
show more ...
|
#
bc02c18c |
| 07-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r357408 through r357661.
|
#
fc7510ae |
| 05-Feb-2020 |
Ed Maste <emaste@FreeBSD.org> |
linuxulator: implement sendfile
Submitted by: Bora Özarslan <borako.ozarslan@gmail.com> Submitted by: Yang Wang <2333@outlook.jp> Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential
linuxulator: implement sendfile
Submitted by: Bora Özarslan <borako.ozarslan@gmail.com> Submitted by: Yang Wang <2333@outlook.jp> Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D19917
show more ...
|
#
bb1d0df5 |
| 29-Jan-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r357179 through r357269.
|
#
c2d47457 |
| 28-Jan-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Add TCP_CORK support to linux(4). This fixes one of the things Nginx trips over.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23171
|
#
da6d8ae6 |
| 28-Jan-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Add compat.linux.ignore_ip_recverr sysctl. This is a workaround for missing IP_RECVERR setsockopt(2) support. Without it, DNS resolution is broken for glibc >= 2.30 (glibc BZ #24047).
From the user
Add compat.linux.ignore_ip_recverr sysctl. This is a workaround for missing IP_RECVERR setsockopt(2) support. Without it, DNS resolution is broken for glibc >= 2.30 (glibc BZ #24047).
From the user point of view this fixes "yum update" on recent CentOS 8.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23234
show more ...
|
Revision tags: release/12.1.0, release/11.3.0 |
|
#
0269ae4c |
| 06-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @348740
Sponsored by: The FreeBSD Foundation
|
#
d5368bf3 |
| 13-May-2019 |
Dmitry Chagin <dchagin@FreeBSD.org> |
Our bsd_to_linux_sockaddr() and linux_to_bsd_sockaddr() functions alter the userspace sockaddr to convert the format between linux and BSD versions. That's the minimum 3 of copyin/copyout operations
Our bsd_to_linux_sockaddr() and linux_to_bsd_sockaddr() functions alter the userspace sockaddr to convert the format between linux and BSD versions. That's the minimum 3 of copyin/copyout operations for one syscall.
Also some syscall uses linux_sa_put() and linux_getsockaddr() when load sockaddr to userspace or from userspace accordingly.
To avoid this chaos, especially converting sockaddr in the userspace, rewrite these 4 functions to convert sockaddr only in kernel and leave only 2 of this functions.
Also in order to reduce duplication between MD parts of the Linuxulator put struct sockaddr conversion functions that are MI out into linux_common module.
PR: 232920 MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20157
show more ...
|
Revision tags: release/12.0.0, release/11.2.0 |
|
#
132f90c6 |
| 05-Feb-2018 |
Ed Maste <emaste@FreeBSD.org> |
Linuxolator whitespace cleanup
A version of each of the MD files by necessity exists for each CPU architecture supported by the Linuxolator. Clean these up so that new architectures do not inherit
Linuxolator whitespace cleanup
A version of each of the MD files by necessity exists for each CPU architecture supported by the Linuxolator. Clean these up so that new architectures do not inherit whitespace issues.
Clean up shared Linuxolator files while here.
Sponsored by: Turing Robotic Industries Inc.
show more ...
|