|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0 |
|
| #
7256167d |
| 21-May-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: refactor bsd_to_linux_regset() out of linux_ptrace.c
This will be used for Linux coredump support.
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D30365
(cherry pick
linux: refactor bsd_to_linux_regset() out of linux_ptrace.c
This will be used for Linux coredump support.
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D30365
(cherry picked from commit 95c19e1d65619624db4a7a21afc1685f122a05c1)
show more ...
|
| #
26105b4c |
| 06-May-2021 |
Edward Tomasz Napierala <[email protected]> |
linux(4): make arch_prctl(2) support GET_CET_STATUS, report unknown codes
This is largely a no-op, to make future debugging slightly easier.
Sponsored By: EPSRC Differential Revision: https://revie
linux(4): make arch_prctl(2) support GET_CET_STATUS, report unknown codes
This is largely a no-op, to make future debugging slightly easier.
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D30035
(cherry picked from commit 916f3dba4523d1b2d478538875d45df56b20bcdb)
show more ...
|
| #
187a6353 |
| 13-Apr-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: adjust ordering of Linux auxv and add dummy AT_HWCAP2
This should be a no-op; the purpose of this is to reduce a spurious difference between Linuxulator and Linux, to make debugging core dump
linux: adjust ordering of Linux auxv and add dummy AT_HWCAP2
This should be a no-op; the purpose of this is to reduce a spurious difference between Linuxulator and Linux, to make debugging core dumps slightly easier.
Note that AT_HWCAP2 we pass to Linux binaries is always 0, instead of being equal to 'cpu_feature2'. This matches what I've observed under Ubuntu Focal VM.
Reviewed By: chuck, dchagin Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D29609
(cherry picked from commit ca6e1fa3ce87f56847633530cb94a6fb63405680)
show more ...
|
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0 |
|
| #
562894f0 |
| 14-Apr-2020 |
Brooks Davis <[email protected]> |
Centralize compatability translation macros.
Copy the CP, PTRIN, etc macros from freebsd32.h into a sys/abi_compat.h and replace existing definitation with includes where required. This eliminates d
Centralize compatability translation macros.
Copy the CP, PTRIN, etc macros from freebsd32.h into a sys/abi_compat.h and replace existing definitation with includes where required. This eliminates duplicate code and allows Linux and FreeBSD compatability headers to be included in the same files.
Input from: cem, jhb Obtained from: CheriBSD MFC after: 2 weeks Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24275
show more ...
|
|
Revision tags: release/12.1.0, release/11.3.0 |
|
| #
c5156c77 |
| 13-May-2019 |
Dmitry Chagin <[email protected]> |
Linuxulator depends on a fundamental kernel settings such as SMP. Many of them listed in opt_global.h which is not generated while building modules outside of a kernel and such modules never match re
Linuxulator depends on a fundamental kernel settings such as SMP. Many of them listed in opt_global.h which is not generated while building modules outside of a kernel and such modules never match real cofigured kernel.
So, we should prevent our users from building obviously defective modules.
Therefore, remove the root cause of the building of modules outside of a kernel - the possibility of building modules with DEBUG or KTR flags. And remove all of DEBUG printfs as it is incomplete and in threaded programms not informative, also a half of system call does not have DEBUG printf. For debuging Linux programms we have dtrace, ktr and ktrace ability.
PR: 222861 Reviewed by: trasz MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20178
show more ...
|
| #
d151344d |
| 03-May-2019 |
Dmitry Chagin <[email protected]> |
In order to reduce duplication between MD parts of the Linuxulator move bits that are MI out into the headers in compat/linux. For that remove bogus _packed attribute from struct l_sockaddr and use M
In order to reduce duplication between MD parts of the Linuxulator move bits that are MI out into the headers in compat/linux. For that remove bogus _packed attribute from struct l_sockaddr and use MI types for struct members.
And continue to move into the linux_common module a code that is intended for both Linuxulator modules (both instruction set - 32 & 64 bit) or for external modules like linsysfs or linprocfs.
To avoid header pollution introduce new sys/compat/linux_common.h header.
Reviewed by: emaste MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20137
show more ...
|
|
Revision tags: release/12.0.0, release/11.2.0 |
|
| #
931e2a1a |
| 15-Jun-2018 |
Ed Maste <[email protected]> |
linuxulator: do not include legacy syscalls on arm64
Existing linuxulator platforms (i386, amd64) support legacy syscalls, such as non-*at ones like open, but arm64 and other new platforms do not.
linuxulator: do not include legacy syscalls on arm64
Existing linuxulator platforms (i386, amd64) support legacy syscalls, such as non-*at ones like open, but arm64 and other new platforms do not.
Wrap these in #ifdef LINUX_LEGACY_SYSCALLS, #defined in the MD linux.h files. We may need finer grained control in the future but this is sufficient for now.
Reviewed by: andrew Sponsored by: Turing Robotic Industries Differential Revision: https://reviews.freebsd.org/D15237
show more ...
|
| #
023b850b |
| 01-Mar-2018 |
Ed Maste <[email protected]> |
Rationalize license text on Linuxolator files
Many licenses on Linuxolator files contained small variations from the standard FreeBSD license text. To avoid license proliferation switch to the stan
Rationalize license text on Linuxolator files
Many licenses on Linuxolator files contained small variations from the standard FreeBSD license text. To avoid license proliferation switch to the standard 2-clause FreeBSD license for those files where I have permission from each of the listed copyright holders. Additional files still waiting on permission from others are listed in review D14210.
Approved by: dchagin, rdivacky, sos MFC after: 1 week MFC with: r329370 Sponsored by: The FreeBSD Foundation
show more ...
|
| #
132f90c6 |
| 05-Feb-2018 |
Ed Maste <[email protected]> |
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 ...
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
9811d215 |
| 28-May-2017 |
Dmitry Chagin <[email protected]> |
In r246085 some bits that are MI movied out into headers in compat/linux, but I missed that when I commited x86_64 Linuxulator. So remove the duplicates.
MFC after: 1 week
|
| #
7ece126e |
| 08-Apr-2017 |
Tai-hwa Liang <[email protected]> |
Trying to be more compatible with Linux if.h definitions: - renaming l_ifreq::ifru_metric to l_ifreq::ifru_ivalue; - adding a definition for ifr_ifindex which points to l_ifreq::ifru_ivalue.
A qui
Trying to be more compatible with Linux if.h definitions: - renaming l_ifreq::ifru_metric to l_ifreq::ifru_ivalue; - adding a definition for ifr_ifindex which points to l_ifreq::ifru_ivalue.
A quick search indicates that Linux already got the above changes since 2.1.14.
Reviewed by: kib, marcel, dchagin MFC after: 1 week
show more ...
|
| #
85712939 |
| 18-Mar-2017 |
Dmitry Chagin <[email protected]> |
To reduce code duplication move socket defines to the MI path.
MFC after: 1 week
|
| #
ab60bc84 |
| 07-Mar-2017 |
Dmitry Chagin <[email protected]> |
Reduce code duplication between MD Linux code by moving SYSV IPC 64-bit related struct definitions out into the MI path.
Invert the native ipc structs to the Linux ipc structs convesion logic. Since
Reduce code duplication between MD Linux code by moving SYSV IPC 64-bit related struct definitions out into the MI path.
Invert the native ipc structs to the Linux ipc structs convesion logic. Since 64-bit variant of ipc structs has more precision convert native ipc structs to the 64-bit Linux ipc structs and then truncate 64-bit values into the non 64-bit if needed. Unlike Linux, return EOVERFLOW if the values do not fit.
Fix SYSV IPC for 64-bit Linuxulator which never sets IPC_64 bit.
MFC after: 1 month
show more ...
|
|
Revision tags: release/11.0.1, release/11.0.0 |
|
| #
97d06da6 |
| 10-Jul-2016 |
Dmitry Chagin <[email protected]> |
Fix a copy/paste bug introduced during X86_64 Linuxulator work. FreeBSD support NX bit on X86_64 processors out of the box, for i386 emulation use READ_IMPLIES_EXEC flag, introduced in r302515.
Whil
Fix a copy/paste bug introduced during X86_64 Linuxulator work. FreeBSD support NX bit on X86_64 processors out of the box, for i386 emulation use READ_IMPLIES_EXEC flag, introduced in r302515.
While here move common part of mmap() and mprotect() code to the files in compat/linux to reduce code dupcliation between Linuxulator's.
Reported by: Johannes Jost Meixner, Shawn Webb
MFC after: 1 week XMFC with: r302515, r302516
show more ...
|
| #
7c598200 |
| 27-Mar-2016 |
Dmitry Chagin <[email protected]> |
Revert r297310 as the SOL_XXX are equal to the IPPROTO_XX except SOL_SOCKET.
Pointed out by: ae@
|
| #
c826fcfe |
| 27-Mar-2016 |
Dmitry Chagin <[email protected]> |
iConvert Linux SOL_IPV6 level.
MFC after: 1 week
|
|
Revision tags: release/10.3.0 |
|
| #
f1389991 |
| 23-Jan-2016 |
Dmitry Chagin <[email protected]> |
Fix a typo.
MFC after: 3 days
|
|
Revision tags: release/10.2.0 |
|
| #
b7aaa9fd |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Reduce duplication between MD Linux code by moving msg related struct definitions out into the compat/linux/linux_socket.h
|
| #
4ab7403b |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Rework signal code to allow using it by other modules, like linprocfs:
1. Linux sigset always 64 bit on all platforms. In order to move Linux sigset code to the linux_common module define it as 64 b
Rework signal code to allow using it by other modules, like linprocfs:
1. Linux sigset always 64 bit on all platforms. In order to move Linux sigset code to the linux_common module define it as 64 bit int. Move Linux sigset manipulation routines to the MI path.
2. Move Linux signal number definitions to the MI path. In general, they are the same on all platforms except for a few signals.
3. Map Linux RT signals to the FreeBSD RT signals and hide signal conversion tables to avoid conversion errors.
4. Emulate Linux SIGPWR signal via FreeBSD SIGRTMIN signal which is outside of allowed on Linux signal numbers.
PR: 197216
show more ...
|
| #
a7ac4576 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
According to Linux man sigaltstack(3) shall return EINVAL if the ss argument is not a null pointer, and the ss_flags member pointed to by ss contains flags other than SS_DISABLE. However, in fact, Li
According to Linux man sigaltstack(3) shall return EINVAL if the ss argument is not a null pointer, and the ss_flags member pointed to by ss contains flags other than SS_DISABLE. However, in fact, Linux also allows SS_ONSTACK flag which is simply ignored.
For buggy apps (at least mono) ignore other than SS_DISABLE flags as a Linux do.
While here move MI part of sigaltstack code to the appropriate place.
Reported by: abi at abinet dot ru
show more ...
|
| #
3e89b641 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Put the correct value for the abi_nfdbits parameter of kern_select() for all supported Linuxulators.
Differential Revision: https://reviews.freebsd.org/D1093 Reviewed by: trasz
|
| #
4d0f380d |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
To avoid code duplication move open/fcntl definitions to the MI header file.
Differential Revision: https://reviews.freebsd.org/D1087 Reviewed by: trasz
|
| #
4048f59c |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Add AT_RANDOM and AT_EXECFN auxiliary vector entries which are used by glibc. At list since glibc version 2.16 using AT_RANDOM is mandatory.
Differential Revision: https://reviews.freebsd.org/D1080
|
| #
b2f58791 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Add preliminary support for x86-64 Linux binaries.
Differential Revision: https://reviews.freebsd.org/D1076
|