|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0 |
|
| #
afae2f43 |
| 14-May-2019 |
Edward Tomasz Napierala <[email protected]> |
MFC r344705:
Remove sv_pagesize, originally introduced with r100384.
In all of the architectures we have today, we always use PAGE_SIZE. While in theory one could define different things, none of t
MFC r344705:
Remove sv_pagesize, originally introduced with r100384.
In all of the architectures we have today, we always use PAGE_SIZE. While in theory one could define different things, none of the current architectures do, even the ones that have transitioned from 32-bit to 64-bit like i386 and arm. Some ancient mips binaries on other systems used 8k instead of 4k, but we don't support running those and likely never will due to their age and obscurity.
Differently from the original commit, the merge leaves the struct member in place to preserve the ABI.
Sponsored by: DARPA, AFRL
show more ...
|
|
Revision tags: release/12.0.0 |
|
| #
35755049 |
| 22-Jun-2018 |
Chuck Tuffli <[email protected]> |
Fix the Linux kernel version number calculation
The Linux compatibility code was converting the version number (e.g. 2.6.32) in two different ways and then comparing the results.
The linux_map_osre
Fix the Linux kernel version number calculation
The Linux compatibility code was converting the version number (e.g. 2.6.32) in two different ways and then comparing the results.
The linux_map_osrel() function converted MAJOR.MINOR.PATCH similar to what FreeBSD does natively. I.e. where major=v0, minor=v1, and patch=v2 v = v0 * 1000000 + v1 * 1000 + v2;
The LINUX_KERNVER() macro, on the other hand, converted the value with bit shifts. I.e. where major=a, minor=b, and patch=c v = (((a) << 16) + ((b) << 8) + (c))
The Linux kernel uses the later format via the KERNEL_VERSION() macro in include/generated/uapi/linux/version.h
Fix is to use the LINUX_KERNVER() macro in linux_map_osrel() as well as in the .trans_osrel functions.
PR: 229209 Reviewed by: emaste, cem, imp (mentor) Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D15952
show more ...
|
|
Revision tags: release/11.2.0 |
|
| #
459ccd3c |
| 14-Jun-2018 |
Konstantin Belousov <[email protected]> |
linuxolator/amd64: Don't mangle %r10 on return from syscall for EJUSTRETURN.
This fixes the %r10 content for rt_sigreturn.
Submitted by: Yanko Yankulov <[email protected]> MFC after: 1 week
|
| #
cbf7e0cb |
| 29-May-2018 |
Brooks Davis <[email protected]> |
Correct pointer subtraction in KASSERT().
The assertion would never fire without truly spectacular future programming errors.
Reported by: Coverity CID: 1391370 Sponsored by: DARPA, AFRL
|
| #
5f77b8a8 |
| 24-May-2018 |
Brooks Davis <[email protected]> |
Avoid two suword() calls per auxarg entry.
Instead, construct an auxargs array and copy it out all at once.
Use an array of Elf_Auxinfo rather than pairs of Elf_Addr * to represent the array. This
Avoid two suword() calls per auxarg entry.
Instead, construct an auxargs array and copy it out all at once.
Use an array of Elf_Auxinfo rather than pairs of Elf_Addr * to represent the array. This is the correct type where pairs of words just happend to work. To reduce the size of the diff, AUXARGS_ENTRY is altered to act on this array rather than introducing a new macro.
Return errors on copyout() and suword() failures and handle them in the caller.
Incidentally fixes AT_RANDOM and AT_EXECFN in 32-bit linux on amd64 which incorrectly used AUXARG_ENTRY instead of AUXARGS_ENTRY_32 (now removed due to the use of proper types).
Reviewed by: kib Comments from: emaste, jhb Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15485
show more ...
|
| #
73c8686e |
| 19-Apr-2018 |
John Baldwin <[email protected]> |
Simplify the code to allocate stack for auxv, argv[], and environment vectors.
Remove auxarg_size as it was only used once right after a confusing assignment in each of the variants of exec_copyout_
Simplify the code to allocate stack for auxv, argv[], and environment vectors.
Remove auxarg_size as it was only used once right after a confusing assignment in each of the variants of exec_copyout_strings().
Reviewed by: emaste MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D15123
show more ...
|
| #
7c5d1690 |
| 12-Apr-2018 |
Konstantin Belousov <[email protected]> |
Fix PSL_T inheritance on exec for x86.
The miscellaneous x86 sysent->sv_setregs() implementations tried to migrate PSL_T from the previous program to the new executed one, but they evaluated regs->t
Fix PSL_T inheritance on exec for x86.
The miscellaneous x86 sysent->sv_setregs() implementations tried to migrate PSL_T from the previous program to the new executed one, but they evaluated regs->tf_eflags after the whole regs structure was bzeroed. Make this functional by saving PSL_T value before zeroing.
Note that if the debugger is not attached, executing the first instruction in the new program with PSL_T set results in SIGTRAP, and since all intercepted signals are reset to default dispostion on exec(2), this means that non-debugged process gets killed immediately if PSL_T is inherited. In particular, since suid images drop P_TRACED, attempt to set PSL_T for execution of such program would kill the process.
Another issue with userspace PSL_T handling is that it is reset by trap(). It is reasonable to clear PSL_T when entering SIGTRAP handler, to allow the signal to be handled without recursion or delivery of blocked fault. But it is not reasonable to return back to the normal flow with PSL_T cleared. This is too late to change, I think.
Discussed with: bde, Ali Mashtizadeh Sponsored by: The FreeBSD Foundation MFC after: 3 weeks Differential revision: https://reviews.freebsd.org/D14995
show more ...
|
| #
b267239d |
| 09-Apr-2018 |
Ed Maste <[email protected]> |
linuxulator: deduplicate linux_exec_imgact_try
Previously linuxulator had three identical copies of linux_exec_imgact_try. Deduplicate before adding another arch to linuxulator.
Sponsored by: Turi
linuxulator: deduplicate linux_exec_imgact_try
Previously linuxulator had three identical copies of linux_exec_imgact_try. Deduplicate before adding another arch to linuxulator.
Sponsored by: Turing Robotic Industries Inc Differential Revision: https://reviews.freebsd.org/D14856
show more ...
|
| #
6469bdcd |
| 06-Apr-2018 |
Brooks Davis <[email protected]> |
Move most of the contents of opt_compat.h to opt_global.h.
opt_compat.h is mentioned in nearly 180 files. In-progress network driver compabibility improvements may add over 100 more so this is close
Move most of the contents of opt_compat.h to opt_global.h.
opt_compat.h is mentioned in nearly 180 files. In-progress network driver compabibility improvements may add over 100 more so this is closer to "just about everywhere" than "only some files" per the guidance in sys/conf/options.
Keep COMPAT_LINUX32 in opt_compat.h as it is confined to a subset of sys/compat/linux/*.c. A fake _COMPAT_LINUX option ensure opt_compat.h is created on all architectures.
Move COMPAT_LINUXKPI to opt_dontuse.h as it is only used to control the set of compiled files.
Reviewed by: kib, cem, jhb, jtl Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14941
show more ...
|
| #
d41e41f9 |
| 27-Mar-2018 |
John Baldwin <[email protected]> |
Remove very old and unused signal information codes.
These have been supplanted by the MI signal information codes in <sys/signal.h> since 7.0. The FPE_*_TRAP ones were deprecated even earlier in 1
Remove very old and unused signal information codes.
These have been supplanted by the MI signal information codes in <sys/signal.h> since 7.0. The FPE_*_TRAP ones were deprecated even earlier in 1999.
PR: 226579 (exp-run) Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D14637
show more ...
|
| #
f8268d4d |
| 23-Mar-2018 |
Ed Maste <[email protected]> |
Remove redundant cast from Linuxulator SYSINITs
|
| #
ad448975 |
| 23-Mar-2018 |
Ed Maste <[email protected]> |
Fixup return style(9) in amd64 linux*_sysvec.c
Sponsored by: Turing Robotic Industries Inc.
|
| #
c0aa0e2c |
| 23-Mar-2018 |
Ed Maste <[email protected]> |
Sort headers in MD Linuxulator files
Bring #includes closer to style(9) and reduce differences between the (three) MD versions of linux_machdep.c and linux_sysvec.c.
Sponsored by: Turing Robotic In
Sort headers in MD Linuxulator files
Bring #includes closer to style(9) and reduce differences between the (three) MD versions of linux_machdep.c and linux_sysvec.c.
Sponsored by: Turing Robotic Industries Inc.
show more ...
|
| #
1ac2776b |
| 22-Mar-2018 |
Ed Maste <[email protected]> |
Share Linux errno table with libsysdecode
Requested by: jhb Reviewed by: jhb Sponsored by: Turing Robotic Industries Inc.
|
| #
b7d779b3 |
| 20-Mar-2018 |
Ed Maste <[email protected]> |
Make linuxulator fn declaration match definition
I accidentally swapped 'linux_fixup_elf' to 'linux_elf_fixup' in amd64's declaration (only), while bringing this change over from git and encounteri
Make linuxulator fn declaration match definition
I accidentally swapped 'linux_fixup_elf' to 'linux_elf_fixup' in amd64's declaration (only), while bringing this change over from git and encountering a conflict.
show more ...
|
| #
dc858467 |
| 19-Mar-2018 |
Ed Maste <[email protected]> |
Rename linuxulator functions with linux_ prefix
It's preferable to have a consistent prefix. This also reduces differences between the three linux*_sysvec.c files.
Sponsored by: Turing Robotic Ind
Rename linuxulator functions with linux_ prefix
It's preferable to have a consistent prefix. This also reduces differences between the three linux*_sysvec.c files.
Sponsored by: Turing Robotic Industries Inc.
show more ...
|
| #
9bec2ea6 |
| 19-Mar-2018 |
Ed Maste <[email protected]> |
linux*_sysvec.c: rationalize whitespace and comments
There's a fair amount of duplication between MD linuxulator files. Make indentation and comments consistent between the three versions of linux_s
linux*_sysvec.c: rationalize whitespace and comments
There's a fair amount of duplication between MD linuxulator files. Make indentation and comments consistent between the three versions of linux_sysvec.c to reduce diffs when comparing them.
Sponsored by: Turing Robotic Industries Inc.
show more ...
|
| #
6e481f83 |
| 16-Mar-2018 |
Ed Maste <[email protected]> |
Share a single bsd-linux errno table across MD consumers
Three copies of the linuxulator linux_sysvec.c contained identical BSD to Linux errno translation tables, and future work to support other ar
Share a single bsd-linux errno table across MD consumers
Three copies of the linuxulator linux_sysvec.c contained identical BSD to Linux errno translation tables, and future work to support other architectures will also use the same table. Move the table to a common file to be used by all. Make it 'const int' to place it in .rodata.
(Some existing Linux architectures use MD errno values, but x86 and Arm share the generic set.)
This change should introduce no functional change; a followup will add missing errno values.
MFC after: 3 weeks Sponsored by: Turing Robotic Industries Inc. Differential Revision: https://reviews.freebsd.org/D14665
show more ...
|
| #
7b194b3d |
| 14-Mar-2018 |
Ed Maste <[email protected]> |
Remove stray ; at end of linux_vdso_deinstall()
|
| #
a95659f7 |
| 13-Mar-2018 |
Ed Maste <[email protected]> |
Use C99 boolean type for translate_osrel
Migrate to modern types before creating MD Linuxolator bits for new architectures.
Reviewed by: cem Sponsored by: Turing Robotic Industries Inc. Differentia
Use C99 boolean type for translate_osrel
Migrate to modern types before creating MD Linuxolator bits for new architectures.
Reviewed by: cem Sponsored by: Turing Robotic Industries Inc. Differential Revision: https://reviews.freebsd.org/D14676
show more ...
|
| #
4ba25759 |
| 13-Mar-2018 |
Ed Maste <[email protected]> |
Apply some style(9) to Linuxulator linux_sysvec.c comments
|
| #
eae594f7 |
| 22-Feb-2018 |
Ed Maste <[email protected]> |
Correct proper nouns in the Linuxulator
- Capitalize Linux - Spell FreeBSD out in full - Address some style(9) on changed lines
Sponsored by: Turing Robotic Industries Inc.
|
| #
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 ...
|
| #
cd76ee1e |
| 27-Nov-2017 |
Fedor Uporov <[email protected]> |
Remap ENOATTR to ENODATA in the linuxulator. In the linux ENOADATA is frequently #defined as ENOATTR. The change is required for an xattrs support implementation.
MFC after: 1 week Discussed with: n
Remap ENOATTR to ENODATA in the linuxulator. In the linux ENOADATA is frequently #defined as ENOATTR. The change is required for an xattrs support implementation.
MFC after: 1 week Discussed with: netchild Approved by: pfg
Differential Revision: https://reviews.freebsd.org/D13221
show more ...
|
| #
d95498d4 |
| 20-Oct-2017 |
Mateusz Guzik <[email protected]> |
amd64: avoid acquiring dt lock if possible (which is the common case)
Discussed with: kib MFC after: 1 week
|