|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, 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 ...
|
| #
4b842782 |
| 15-Jun-2018 |
Ed Maste <[email protected]> |
Correct debug control for linuxulator faccessat
The Linuxulator provides per-syscall debug control via the compat.linux.debug sysctl. There's generally a 1:1 mapping between sysctl setting and sysc
Correct debug control for linuxulator faccessat
The Linuxulator provides per-syscall debug control via the compat.linux.debug sysctl. There's generally a 1:1 mapping between sysctl setting and syscall, but faccessat was controlled by the access setting, perhaps due to copy-paste.
Sponsored by: Turing Robotic Industries
show more ...
|
| #
cbd92ce6 |
| 09-May-2018 |
Matt Macy <[email protected]> |
Eliminate the overhead of gratuitous repeated reinitialization of cap_rights
- Add macros to allow preinitialization of cap_rights_t.
- Convert most commonly used code paths to use preinitialized c
Eliminate the overhead of gratuitous repeated reinitialization of cap_rights
- Add macros to allow preinitialization of cap_rights_t.
- Convert most commonly used code paths to use preinitialized cap_rights_t. A 3.6% speedup in fstat was measured with this change.
Reported by: mjg Reviewed by: oshogbo Approved by: sbruno MFC after: 1 month
show more ...
|
| #
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.
|
| #
0ba1b365 |
| 16-Feb-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 waiting on permission from others are listed in review D14210.
Approved by: kan, marcel, sos, rdivacky 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 ...
|
| #
61407763 |
| 27-Oct-2017 |
David E. O'Brien <[email protected]> |
Update comment to match r177997 & r178036 changes.
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
16454bee |
| 26-Jun-2017 |
Andriy Gapon <[email protected]> |
linux_getdents, linux_readdir: fix mismatch between malloc and free tags
MFC after: 3 days
|
| #
12bbbbb2 |
| 12-Jun-2017 |
Dmitry Chagin <[email protected]> |
Remove the outdated definition.
MFC after: 1 week
|
| #
ac1082e5 |
| 12-Jun-2017 |
Dmitry Chagin <[email protected]> |
Since r318735 (ino64 project) the size of the native struct dirent is equal or greater than the size of Linux struct dirent or struct dirent64. So, remove LINUX_RECLEN_RATIO magic as useless.
|
| #
69921123 |
| 23-May-2017 |
Konstantin Belousov <[email protected]> |
Commit the 64-bit inode project.
Extend the ino_t, dev_t, nlink_t types to 64-bit ints. Modify struct dirent layout to add d_off, increase the size of d_fileno to 64-bits, increase the size of d_na
Commit the 64-bit inode project.
Extend the ino_t, dev_t, nlink_t types to 64-bit ints. Modify struct dirent layout to add d_off, increase the size of d_fileno to 64-bits, increase the size of d_namlen to 16-bits, and change the required alignment. Increase struct statfs f_mntfromname[] and f_mntonname[] array length MNAMELEN to 1024.
ABI breakage is mitigated by providing compatibility using versioned symbols, ingenious use of the existing padding in structures, and by employing other tricks. Unfortunately, not everything can be fixed, especially outside the base system. For instance, third-party APIs which pass struct stat around are broken in backward and forward incompatible ways.
Kinfo sysctl MIBs ABI is changed in backward-compatible way, but there is no general mechanism to handle other sysctl MIBS which return structures where the layout has changed. It was considered that the breakage is either in the management interfaces, where we usually allow ABI slip, or is not important.
Struct xvnode changed layout, no compat shims are provided.
For struct xtty, dev_t tty device member was reduced to uint32_t. It was decided that keeping ABI compat in this case is more useful than reporting 64-bit dev_t, for the sake of pstat.
Update note: strictly follow the instructions in UPDATING. Build and install the new kernel with COMPAT_FREEBSD11 option enabled, then reboot, and only then install new world.
Credits: The 64-bit inode project, also known as ino64, started life many years ago as a project by Gleb Kurtsou (gleb). Kirk McKusick (mckusick) then picked up and updated the patch, and acted as a flag-waver. Feedback, suggestions, and discussions were carried by Ed Maste (emaste), John Baldwin (jhb), Jilles Tjoelker (jilles), and Rick Macklem (rmacklem). Kris Moore (kris) performed an initial ports investigation followed by an exp-run by Antoine Brodin (antoine). Essential and all-embracing testing was done by Peter Holm (pho). The heavy lifting of coordinating all these efforts and bringing the project to completion were done by Konstantin Belousov (kib).
Sponsored by: The FreeBSD Foundation (emaste, kib) Differential revision: https://reviews.freebsd.org/D10439
show more ...
|
| #
c4f2941e |
| 30-Apr-2017 |
Dmitry Chagin <[email protected]> |
Fix symlinkat() which use the newdfd argument to look up the old path, while it should use it for the new path instead.
Reported by: trasz@ MFC after: 1 month
|
| #
bd911530 |
| 24-Feb-2017 |
Mahdi Mokhtari <[email protected]> |
Add linux_preadv() and linux_pwritev() syscalls to Linuxulator.
Reviewed by: dchagin Approved by: dchagin, trasz (src committers) MFC after: 1 week Differential Revision: https://reviews.freebsd.org
Add linux_preadv() and linux_pwritev() syscalls to Linuxulator.
Reviewed by: dchagin Approved by: dchagin, trasz (src committers) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D9722
show more ...
|
| #
8665c4d9 |
| 24-Feb-2017 |
Dmitry Chagin <[email protected]> |
Revert r314217. Commit is not match that I have approved.
|
| #
21d23e32 |
| 24-Feb-2017 |
Mahdi Mokhtari <[email protected]> |
Add linux_preadv() and linux_pwritev() syscalls to Linuxulator.
Reviewed by: dchagin Approved by: dchagin, trasz (src committers) MFC after: 1 week Differential Revision: https://reviews.freebsd.org
Add linux_preadv() and linux_pwritev() syscalls to Linuxulator.
Reviewed by: dchagin Approved by: dchagin, trasz (src committers) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D9722
show more ...
|
| #
3a66cf03 |
| 14-Feb-2017 |
Dmitry Chagin <[email protected]> |
Replace Linuxulator implementation of readdir(), getdents() and getdents64() with wrapper over kern_getdirentries().
The patch was originally written by emaste@ and then adapted by trasz@ and me.
N
Replace Linuxulator implementation of readdir(), getdents() and getdents64() with wrapper over kern_getdirentries().
The patch was originally written by emaste@ and then adapted by trasz@ and me.
Note: 1. I divided linux_getdents() and linux_readdir() as in case when the getdents() called with count = 1 (readdir() case) it can overwrite user stack (by writing to user buffer pointer more than 1 byte).
2. Linux returns EINVAL in case when user supplied buffer is not enough to contain fetched dirent.
3. Linux returns ENOTDIR in case when fd points to not a directory.
Reviewed by: trasz@ MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D2210
show more ...
|
| #
85dbb416 |
| 05-Feb-2017 |
Edward Tomasz Napierala <[email protected]> |
Fix linux_pipe() and linux_pipe2() to close file descriptors on copyout error.
Reviewed by: dchagin MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9
Fix linux_pipe() and linux_pipe2() to close file descriptors on copyout error.
Reviewed by: dchagin MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9425
show more ...
|
| #
b38b22b0 |
| 31-Jan-2017 |
Edward Tomasz Napierala <[email protected]> |
Add kern_pread() and kern_pwrite(), and use it in compats instead of their sys_*() counterparts. The svr4 is left unchanged.
Reviewed by: kib@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Differenti
Add kern_pread() and kern_pwrite(), and use it in compats instead of their sys_*() counterparts. The svr4 is left unchanged.
Reviewed by: kib@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9379
show more ...
|
| #
f67d6b5f |
| 30-Jan-2017 |
Edward Tomasz Napierala <[email protected]> |
Add kern_lseek() and use it instead of sys_lseek() in various compats. I didn't touch svr4/, there's no point.
Reviewed by: ed@, kib@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revisi
Add kern_lseek() and use it instead of sys_lseek() in various compats. I didn't touch svr4/, there's no point.
Reviewed by: ed@, kib@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9366
show more ...
|
| #
ae6b6ef6 |
| 30-Jan-2017 |
Edward Tomasz Napierala <[email protected]> |
Replace sys_ftruncate() with kern_ftruncate() in various compats.
Reviewed by: kib@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9368
|
|
Revision tags: release/11.0.1, release/11.0.0 |
|
| #
93d9ebd8 |
| 15-Aug-2016 |
Ed Schouten <[email protected]> |
Eliminate use of sys_fsync() and sys_fdatasync().
Make the kern_fsync() function public, so that it can be used by other parts of the kernel. Fix up existing consumers to make use of it.
Requested
Eliminate use of sys_fsync() and sys_fdatasync().
Make the kern_fsync() function public, so that it can be used by other parts of the kernel. Fix up existing consumers to make use of it.
Requested by: kib
show more ...
|
| #
56c4f83d |
| 22-May-2016 |
Dmitry Chagin <[email protected]> |
Minor style(9) cleanup, no functional changes.
MFC after: 1 week
|
| #
b66bb393 |
| 22-Apr-2016 |
Pedro F. Giffuni <[email protected]> |
Cleanup redundant parenthesis from existing howmany()/roundup() macro uses.
|
|
Revision tags: release/10.3.0, release/10.2.0 |
|
| #
8328babd |
| 29-Jul-2015 |
Ed Schouten <[email protected]> |
Make pipes in CloudABI work.
Summary: Pipes in CloudABI are unidirectional. The reason for this is that CloudABI attempts to provide a uniform runtime environment across different flavours of UNIX.
Make pipes in CloudABI work.
Summary: Pipes in CloudABI are unidirectional. The reason for this is that CloudABI attempts to provide a uniform runtime environment across different flavours of UNIX.
Instead of implementing a custom pipe that is unidirectional, we can simply reuse Capsicum permission bits to support this. This is nice, because CloudABI already attempts to restrict permission bits to correspond with the operations that apply to a certain file descriptor.
Replace kern_pipe() and kern_pipe2() by a single kern_pipe() that takes a pair of filecaps. These filecaps are passed to the newly introduced falloc_caps() function that creates the descriptors with rights in place.
Test Plan: CloudABI pipes seem to be created with proper rights in place:
https://github.com/NuxiNL/cloudlibc/blob/master/src/libc/unistd/pipe_test.c#L44
Reviewers: jilles, mjg
Reviewed By: mjg
Subscribers: imp
Differential Revision: https://reviews.freebsd.org/D3236
show more ...
|
| #
4da8456f |
| 16-Jun-2015 |
Mateusz Guzik <[email protected]> |
Replace struct filedesc argument in getvnode with struct thread
This is is a step towards removal of spurious arguments.
|