|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
| #
95ee2897 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
bbe017e0 |
| 04-Aug-2023 |
Dmitry Chagin <[email protected]> |
linux(4): Add a dedicated ioprio system calls
On Linux these system calls have an effect only when used in conjuction with an I/O scheduler that supports I/O priorities. If no I/O scheduler has been
linux(4): Add a dedicated ioprio system calls
On Linux these system calls have an effect only when used in conjuction with an I/O scheduler that supports I/O priorities. If no I/O scheduler has been set for a thread, then by defaut the I/O priority will follow the CPU nice value. Due to FreeBSD lack of I/O scheduler facilities, the default Linux behavior is implemented.
Ubuntu 23.04 debootstrap requires Linux ionice which depends on these syscalls.
Differential Revision: https://reviews.freebsd.org/D41153 MFC after: 1 month
show more ...
|
| #
4d846d26 |
| 10-May-2023 |
Warner Losh <[email protected]> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
|
Revision tags: release/13.2.0 |
|
| #
e2028292 |
| 14-Feb-2023 |
Dmitry Chagin <[email protected]> |
linux(4): Cleanup sys/sysctl.h from linux_misc.h
Leftover after c5156c77 (r374538).
MFC after: 2 weeks
|
|
Revision tags: release/12.4.0 |
|
| #
390c9ea0 |
| 15-May-2022 |
Dmitry Chagin <[email protected]> |
linux(4): Add AT_MINSIGSTKSZ to arm64 port
MFC after: 2 weeks
|
|
Revision tags: release/13.1.0 |
|
| #
b7df7b98 |
| 31-Mar-2022 |
Dmitry Chagin <[email protected]> |
linprocfs: Add /proc/self/oom_score_adj.
To avoid annoyng messages from LTP test suites add the simple implementation of /proc/self/oom_score_adj which is do nothing.
Reviewed by: emaste Different
linprocfs: Add /proc/self/oom_score_adj.
To avoid annoyng messages from LTP test suites add the simple implementation of /proc/self/oom_score_adj which is do nothing.
Reviewed by: emaste Differential revision: https://reviews.freebsd.org/D34710 MFC after: 2 weeks
show more ...
|
| #
be1e4a0b |
| 31-Mar-2022 |
Dmitry Chagin <[email protected]> |
linux(4): Return ENOSYS for unsupported P_PIDFD waitid idtype.
Reviewed by: emaste Differential revision: https://reviews.freebsd.org/D31559 MFC after: 2 weeks
|
| #
99454d3e |
| 28-Jan-2022 |
Edward Tomasz Napierala <[email protected]> |
linux: Provide dummy seccomp(2)
Don't emit messages; this isn't any different from a Linux kernel built without OPTIONS_SECCOMP, so the userspace already needs to know how to deal with it. This is
linux: Provide dummy seccomp(2)
Don't emit messages; this isn't any different from a Linux kernel built without OPTIONS_SECCOMP, so the userspace already needs to know how to deal with it. This is also similar with how we handle seccomp in linux_prctl().
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D33808
show more ...
|
| #
9caeb82e |
| 20-Jan-2022 |
Edward Tomasz Napierala <[email protected]> |
Revert "linux: Provide dummy seccomp(2)"
This reverts commit 56981629f91fcdd358ccb41081ff6dcc2edac12f.
Wrong patch; fails to build on i386.
|
| #
56981629 |
| 25-Jan-2022 |
Edward Tomasz Napierala <[email protected]> |
linux: Provide dummy seccomp(2)
Don't emit warnings; this isn't any different from a Linux kernel built without OPTIONS_SECCOMP, so the userspace already needs to know how to deal with it. This is
linux: Provide dummy seccomp(2)
Don't emit warnings; this isn't any different from a Linux kernel built without OPTIONS_SECCOMP, so the userspace already needs to know how to deal with it. This is also similar with how we handle seccomp in linux_prctl().
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D33808
show more ...
|
|
Revision tags: release/12.3.0 |
|
| #
0bf8d5d5 |
| 09-Nov-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: Replace ifdefs in ptrace with per-architecture callbacks
It's a cleanup; no (intended) functional changes.
Sponsored By: EPSRC Reviewed By: kib Differential Revision: https://reviews.freebsd
linux: Replace ifdefs in ptrace with per-architecture callbacks
It's a cleanup; no (intended) functional changes.
Sponsored By: EPSRC Reviewed By: kib Differential Revision: https://reviews.freebsd.org/D32888
show more ...
|
| #
a90ff3c4 |
| 07-Nov-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: Add ptrace(2) support on arm64
This moves linux_ptrace.c from sys/amd64/linux/ to sys/compat/linux/, making it possible to use it on architectures other than amd64. It also enables Linux ptra
linux: Add ptrace(2) support on arm64
This moves linux_ptrace.c from sys/amd64/linux/ to sys/compat/linux/, making it possible to use it on architectures other than amd64. It also enables Linux ptrace(2) on arm64.
Relnotes: yes Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32868
show more ...
|
| #
17913b0b |
| 12-Aug-2021 |
Dmitry Chagin <[email protected]> |
linux(4): Implement clone3 system call.
clone3 system call is used by glibc-2.34.
Differential revision: https://reviews.freebsd.org/D31475 MFC after: 2 weeks
|
| #
0a4b664a |
| 12-Aug-2021 |
Dmitry Chagin <[email protected]> |
linux(4): Add struct clone_args for future clone3 system call.
In preparation for clone3 system call add struct clone_args and use it in clone implementation. Move all of clone related bits to the n
linux(4): Add struct clone_args for future clone3 system call.
In preparation for clone3 system call add struct clone_args and use it in clone implementation. Move all of clone related bits to the newly created linux_fork.h header.
Differential revision: https://reviews.freebsd.org/D31474 MFC after: 2 weeks
show more ...
|
| #
c1da89fe |
| 22-Jun-2021 |
Dmitry Chagin <[email protected]> |
linux(4): Retire linux_kplatform.
Assuming we can't run on i486, i586 class cpu, retire linux_kplatform var and use hardcoded 'machine' value in linux_newuname().
I have added linux_kplatform for c
linux(4): Retire linux_kplatform.
Assuming we can't run on i486, i586 class cpu, retire linux_kplatform var and use hardcoded 'machine' value in linux_newuname().
I have added linux_kplatform for consistency with linux_platform which is placed in to vdso to avoid excess copyout it on stack for AT_PLATFORM at exec time.
This is the first stage of Linuxulator's vdso revision.
Reviewed by: trasz, imp Differential Revision: https://reviews.freebsd.org/D30774 MFC after: 2 weeks
show more ...
|
| #
ca6e1fa3 |
| 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
show more ...
|
|
Revision tags: release/13.0.0 |
|
| #
3b57ddb0 |
| 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.
Reviewed by: kib, emaste MFC after: 1 week Sponsore
Rename linux_set_upcall_kse() to linux_set_upcall().
This matches the rename of cpu_set_upcall_kse() in 5c2cf818454375536fda522ba83cf67c50929e6b.
Reviewed by: kib, emaste MFC after: 1 week Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D29295
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 ...
|