|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0 |
|
| #
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 |
|
| #
f9d59088 |
| 18-Mar-2021 |
John Baldwin <[email protected]> |
Rename linux_set_upcall_kse() to linux_set_upcall().
This matches the rename of cpu_set_upcall_kse() in 5c2cf818454375536fda522ba83cf67c50929e6b.
Sponsored by: DARPA
(cherry picked from commit 3b5
Rename linux_set_upcall_kse() to linux_set_upcall().
This matches the rename of cpu_set_upcall_kse() in 5c2cf818454375536fda522ba83cf67c50929e6b.
Sponsored by: DARPA
(cherry picked from commit 3b57ddb029daf225a8385dade491019269da82e8)
show more ...
|
| #
ec2700e0 |
| 12-Jan-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: mute the "unsupported prctl option 23" warnings
Make the PR_CAPBSET_READ prctl(2) return EINVAL without logging any warnings; this is way too noisy with Focal.
Sponsored by: The FreeBSD Foun
linux: mute the "unsupported prctl option 23" warnings
Make the PR_CAPBSET_READ prctl(2) return EINVAL without logging any warnings; this is way too noisy with Focal.
Sponsored by: The FreeBSD Foundation
show more ...
|
| #
eaa5afce |
| 03-Nov-2020 |
Conrad Meyer <[email protected]> |
linux(4) prctl(2): Implement PR_[GS]ET_DUMPABLE
Proxy the flag to the roughly analogous FreeBSD procctl 'TRACE'.
TRACE-disabled processes are not coredumped, and Linux !DUMPABLE processes can not b
linux(4) prctl(2): Implement PR_[GS]ET_DUMPABLE
Proxy the flag to the roughly analogous FreeBSD procctl 'TRACE'.
TRACE-disabled processes are not coredumped, and Linux !DUMPABLE processes can not be ptraced. There are some additional semantics around ownership of files in the /proc/[pid] pseudo-filesystem, which we do not attempt to emulate correctly at this time.
Reviewed by: markj (earlier version) Differential Revision: https://reviews.freebsd.org/D27015
show more ...
|
| #
76dfd556 |
| 31-Oct-2020 |
Conrad Meyer <[email protected]> |
linux(4): Add missing clone(2) flags
|
| #
62b1382f |
| 24-Oct-2020 |
Edward Tomasz Napierala <[email protected]> |
Further improve prctl(2) debug.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26916
|
| #
1c748137 |
| 23-Oct-2020 |
Edward Tomasz Napierala <[email protected]> |
Improve prctl(2) debug.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26899
|
|
Revision tags: release/12.2.0 |
|
| #
139c0978 |
| 16-Oct-2020 |
Edward Tomasz Napierala <[email protected]> |
Make linux getrlimit(2) and prlimit(2) return something reasonable for linux-specific limits. Fixes prlimit (util-linux-2.31.1-0.4ubuntu3.7).
Reviewed by: emaste MFC after: 2 weeks Sponsored by: Th
Make linux getrlimit(2) and prlimit(2) return something reasonable for linux-specific limits. Fixes prlimit (util-linux-2.31.1-0.4ubuntu3.7).
Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26777
show more ...
|
| #
1a180032 |
| 01-Sep-2020 |
Mateusz Guzik <[email protected]> |
compat: clean up empty lines in .c and .h files
|
|
Revision tags: release/11.4.0 |
|
| #
f8b9b299 |
| 01-Mar-2020 |
Tijl Coosemans <[email protected]> |
linuxulator: Map scheduler priorities to Linux priorities.
On Linux the valid range of priorities for the SCHED_FIFO and SCHED_RR scheduling policies is [1,99]. For SCHED_OTHER the single valid pri
linuxulator: Map scheduler priorities to Linux priorities.
On Linux the valid range of priorities for the SCHED_FIFO and SCHED_RR scheduling policies is [1,99]. For SCHED_OTHER the single valid priority is 0. On FreeBSD it is [0,31] for all policies. Programs are supposed to query the valid range using sched_get_priority_(min|max), but of course some programs assume the Linux values are valid.
This commit adds a tunable compat.linux.map_sched_prio. When enabled sched_get_priority_(min|max) return the Linux values and sched_setscheduler and sched_(get|set)param translate between FreeBSD and Linux values.
Because there are more Linux levels than FreeBSD levels, multiple Linux levels map to a single FreeBSD level, which means pre-emption might not happen as it does on Linux, so the tunable allows to disable this behaviour. It is enabled by default because I think it is unlikely that anyone runs real-time software under Linux emulation on FreeBSD that critically relies on correct pre-emption.
This fixes FMOD, a commercial sound library used by several games.
PR: 240043 Tested by: Alex S <[email protected]> Reviewed by: dchagin MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D23790
show more ...
|
| #
ee0fe82e |
| 29-Dec-2019 |
Edward Tomasz Napierala <[email protected]> |
Implement Linux syslog(2) syscall; just enough to make Linux dmesg(8) utility work.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22465
|
|
Revision tags: release/12.1.0, release/11.3.0 |
|
| #
d49fb289 |
| 19-May-2019 |
Edward Tomasz Napierala <[email protected]> |
Implement PTRACE_O_TRACESYSGOOD. This makes Linux strace(1) work.
Reviewed by: dchagin MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20
Implement PTRACE_O_TRACESYSGOOD. This makes Linux strace(1) work.
Reviewed by: dchagin MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20200
show more ...
|
| #
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 ...
|
|
Revision tags: release/12.0.0, release/11.2.0 |
|
| #
b1ed95fd |
| 23-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.
Approved by: rdivacky, marcel MFC after: 1 week Sponsored by: The FreeBSD Foundation
show more ...
|
| #
7f2d13d6 |
| 27-Nov-2017 |
Pedro F. Giffuni <[email protected]> |
sys/compat: further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - er
sys/compat: further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
b1ba0846 |
| 18-Mar-2017 |
Dmitry Chagin <[email protected]> |
Implement getrandom() syscall. Note. GRND_RANDOM option is not supported for now.
MFC after: 1 month
|
| #
c1f156d4 |
| 23-Feb-2017 |
Dmitry Chagin <[email protected]> |
Right clock defines specified in linux_timer.h. Get rid of spirious clock defines from linux_misc.h.
MFC after: 1 week
|
|
Revision tags: release/11.0.1, release/11.0.0 |
|
| #
5743aa47 |
| 10-Apr-2016 |
Dmitry Chagin <[email protected]> |
More complete implementation of /proc/self/limits. Fix the way the code accesses process limits struct - pointed out by mjg@.
PR: 207386 Reviewed by: no objection form des@ MFC after: 3 weeks
|
|
Revision tags: release/10.3.0, release/10.2.0 |
|
| #
19d8b461 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Add utimensat() system call.
The patch developed by Jilles Tjoelker and Andrew Wilcox and adopted for lemul branch by me.
|
| #
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
|
| #
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
|
| #
67d39748 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Introduce a new module linux_common.ko which is intended for the following primary purposes:
1. Remove the dependency of linsysfs and linprocfs modules from linux.ko, which will be architecture spec
Introduce a new module linux_common.ko which is intended for the following primary purposes:
1. Remove the dependency of linsysfs and linprocfs modules from linux.ko, which will be architecture specific on amd64.
2. Incorporate into linux_common.ko general code for platforms on which we'll support two Linuxulator modules (for both instruction set - 32 & 64 bit).
3. Move malloc(9) declaration to linux_common.ko, to enable getting memory usage statistics properly.
Currently linux_common.ko incorporates a code from linux_mib.c and linux_util.c and linprocfs, linsysfs and linux kernel modules depend on linux_common.ko.
Temporarily remove dtrace garbage from linux_mib.c and linux_util.c
Differential Revision: https://reviews.freebsd.org/D1072 In collaboration with: Vassilis Laganakos.
Reviewed by: trasz
show more ...
|
| #
0020bdf1 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Put linux_platform into the vdso to avoid copying it onto the stack at every exec.
Differential Revision: https://reviews.freebsd.org/D1062 Reviewed by: trasz
|
| #
bdc37934 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Implement vdso - virtual dynamic shared object. Through vdso Linux exposes functions from kernel with proper DWARF CFI information so that it becomes easier to unwind through them. Using vdso is a ma
Implement vdso - virtual dynamic shared object. Through vdso Linux exposes functions from kernel with proper DWARF CFI information so that it becomes easier to unwind through them. Using vdso is a mandatory for a thread cancelation && cleanup on a modern glibc.
Differential Revision: https://reviews.freebsd.org/D1060
show more ...
|
| #
c3978c7b |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Implement prlimit64() system call.
Differential Revision: https://reviews.freebsd.org/D1050 Reviewed by: emaste, trasz
|