|
Revision tags: release/12.4.0, release/13.1.0 |
|
| #
0cde6986 |
| 08-Jan-2022 |
Alexander V. Chernikov <[email protected]> |
linux: fix linux_recvmsg() MSG_PEEK flag handling
Reviewed by: kib Approved by: re(gjb) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D33790
(cherry picked from commit 96
linux: fix linux_recvmsg() MSG_PEEK flag handling
Reviewed by: kib Approved by: re(gjb) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D33790
(cherry picked from commit 96c524d8b2c9abe3927abf948fbbd73a7cb42c4a) (cherry picked from commit 0b6161db7eff92a37bc6d410ff9c9d5c3ac6f443)
show more ...
|
|
Revision tags: release/12.3.0, release/13.0.0 |
|
| #
3931de89 |
| 07-Feb-2021 |
Edward Tomasz Napierala <[email protected]> |
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
(cherry picked
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
(cherry picked from commit cd84c82c6ad73c804b828bad9caec176e41ab79d)
show more ...
|
| #
c80c9fd9 |
| 23-Oct-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: Fix ENOTSOCK handling in sendfile(2)
The Linux way for sendfile(2) to tell the application to fallback to another way of copying data is by EINVAL, not ENOTSOCK. This fixes package installat
linux: Fix ENOTSOCK handling in sendfile(2)
The Linux way for sendfile(2) to tell the application to fallback to another way of copying data is by EINVAL, not ENOTSOCK. This fixes package installation scripts for Mono packages from Focal.
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32604
(cherry picked from commit 2c7f7982825442c851e8bb17555a086a232ef4d9)
show more ...
|
| #
e19cb5cc |
| 17-Oct-2021 |
Edward Tomasz Napierala <[email protected]> |
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
(cherry picked from commit 99f563ed76f49c541e587a2f81bc43c62c86c0e5)
show more ...
|
| #
47d6ee40 |
| 07-Feb-2021 |
Edward Tomasz Napierala <[email protected]> |
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/D2816
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
(cherry picked from commit e44a78ce6f249f1eb7df94cb6953698953ebd88b)
show more ...
|
| #
9d930fb0 |
| 05-Feb-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: fix handling of flags for 32 bit send(2) syscall
Previously the flags were passed as-is, which could resulted in spurious EAGAIN returned for non-blocking sockets, which broke some Steam game
linux: fix handling of flags for 32 bit send(2) syscall
Previously the flags were passed as-is, which could resulted in spurious EAGAIN returned for non-blocking sockets, which broke some Steam games.
PR: 248065 Reported By: Alex S <[email protected]> Tested By: Alex S <[email protected]> Reviewed By: emaste MFC After: 3 days Sponsored By: The FreeBSD Foundation
(cherry picked from commit f6e8256a965d5b7a7d43034ea31b2430a3b51066)
show more ...
|
| #
feb96ee9 |
| 12-Jan-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: mute "unsupported socket(AF_NETLINK, 3, NETLINK_AUDIT)" warnings
They are way too noisy with Focal.
Sponsored by: The FreeBSD Foundation
|
| #
ede4af47 |
| 17-Nov-2020 |
Conrad Meyer <[email protected]> |
unix(4): Enhance LOCAL_CREDS_PERSISTENT ABI
As this ABI is still fresh (r367287), let's correct some mistakes now:
- Version the structure to allow for future changes - Include sender's pid in cont
unix(4): Enhance LOCAL_CREDS_PERSISTENT ABI
As this ABI is still fresh (r367287), let's correct some mistakes now:
- Version the structure to allow for future changes - Include sender's pid in control message structure - Use a distinct control message type from the cmsgcred / sockcred mess
Discussed with: kib, markj, trasz Differential Revision: https://reviews.freebsd.org/D27084
show more ...
|
| #
8ec6c4a3 |
| 08-Nov-2020 |
Alexander Leidinger <[email protected]> |
- 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 ...
|
| #
9e47480e |
| 03-Nov-2020 |
Conrad Meyer <[email protected]> |
linux(4): Improve netlink diagnostics
Add some missing netlink_family definitions and produce vaguely human-readable error messages for those definitions, like we used to do for just ROUTE and KOBJE
linux(4): Improve netlink diagnostics
Add some missing netlink_family definitions and produce vaguely human-readable error messages for those definitions, like we used to do for just ROUTE and KOBJECT_UEVENTS.
Additionally, if we know it's a netfilter socket but didn't find it in the table, fall back to printing that instead of the generic handler ("socket domain 16, ...").
No change to the emulator correctness, just mildly improved diagnostics for gaps.
show more ...
|
| #
443d8a07 |
| 03-Nov-2020 |
Conrad Meyer <[email protected]> |
linux(4): Emulate Linux SOL_SOCKET:SO_PASSCRED
This is required by some major linux applications, such as Chrome and Firefox. (As well as Electron-using applications, which are essentially a bundle
linux(4): Emulate Linux SOL_SOCKET:SO_PASSCRED
This is required by some major linux applications, such as Chrome and Firefox. (As well as Electron-using applications, which are essentially a bundled version of Chrome.)
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D27012
show more ...
|
| #
866b1f51 |
| 27-Oct-2020 |
Edward Tomasz Napierala <[email protected]> |
Fix misnomer - linux_to_bsd_errno() does the exact opposite.
Reported by: arichardson MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26965
|
| #
b3be0b4d |
| 24-Oct-2020 |
Edward Tomasz Napierala <[email protected]> |
Tweak linux(4) socket(2) debug messages.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26900
|
|
Revision tags: release/12.2.0 |
|
| #
f4d91df5 |
| 21-Oct-2020 |
Edward Tomasz Napierala <[email protected]> |
Make linux(4) warn about unsupported socket(2) types.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25680
|
| #
106a784b |
| 17-Sep-2020 |
Edward Tomasz Napierala <[email protected]> |
Reduce code duplication by introducing linux_copyout_sockaddr() helper function. No functional changes.
Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revi
Reduce code duplication by introducing linux_copyout_sockaddr() helper function. No functional changes.
Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25804
show more ...
|
| #
70890254 |
| 17-Sep-2020 |
Edward Tomasz Napierala <[email protected]> |
Get rid of sv_errtbl and SV_ABI_ERRNO().
Reviewed by: kib Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26388
|
| #
1a180032 |
| 01-Sep-2020 |
Mateusz Guzik <[email protected]> |
compat: clean up empty lines in .c and .h files
|
| #
a7044c60 |
| 18-Aug-2020 |
Mark Johnston <[email protected]> |
Fix handling of ancillary data on non-AF_UNIX Linux sockets.
After r340674, the "continue" would restart the loop without having updated clen, resulting in an infinite loop. Restore the old behavio
Fix handling of ancillary data on non-AF_UNIX Linux sockets.
After r340674, the "continue" would restart the loop without having updated clen, resulting in an infinite loop. Restore the old behaviour of simply ignoring all control messages on such sockets, since we currently only implement handling for AF_UNIX-specific messages.
Reported by: syzkaller Reviewed by: tijl MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26093
show more ...
|
| #
4d2b7be5 |
| 05-Jul-2020 |
Edward Tomasz Napierala <[email protected]> |
Fix Linux recvmsg(2) when msg_namelen returned is 0. Previously it would fail with EINVAL, breaking some of the Python regression tests.
While here, cap the user-controlled message length.
Note th
Fix Linux recvmsg(2) when msg_namelen returned is 0. Previously it would fail with EINVAL, breaking some of the Python regression tests.
While here, cap the user-controlled message length.
Note that the code doesn't seem to be copying out the new length in either (success or failure) case. This will be addressed separately.
Reviewed by: kib MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25392
show more ...
|
| #
6d76adbb |
| 01-Jul-2020 |
Edward Tomasz Napierala <[email protected]> |
Rework linux accept(2). This makes the code flow easier to follow, and fixes a bug where calling accept(2) could result in closing fd 0.
Note that the code still contains a number of problems: it m
Rework linux accept(2). This makes the code flow easier to follow, and fixes a bug where calling accept(2) could result in closing fd 0.
Note that the code still contains a number of problems: it makes assumptions about l_sockaddr_in being the same as sockaddr_in, the EFAULT-related code looks like it doesn't work at all, and the socket type check is racy. Those will be addressed later on; I'm trying to work in small steps to avoid breaking one thing while fixing another.
It fixes Redis, among other things.
Reviewed by: kib MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25461
show more ...
|
| #
4fe5361c |
| 28-Jun-2020 |
Edward Tomasz Napierala <[email protected]> |
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 ...
|
| #
889cd285 |
| 14-Jun-2020 |
Edward Tomasz Napierala <[email protected]> |
Make linux(4) warn about unsupported CMSG level/type.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25255
|
| #
599dadca |
| 12-Jun-2020 |
Edward Tomasz Napierala <[email protected]> |
Fix naming clash.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
|
| #
4beacc3b |
| 12-Jun-2020 |
Edward Tomasz Napierala <[email protected]> |
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 <[email protected]> |
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
|