| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
symbols but just used 0 after the rename.
|
|
|
|
| |
Reported by: hselasky
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
linux_syscallnames[] from linux_* to linux32_* to avoid conflicts with
linux64.ko. While here, add support for linux64 binaries to systrace.
- Update NOPROTO entries in amd64/linux/syscalls.master to match the
main table to fix systrace build.
- Add a special case for union l_semun arguments to the systrace
generation.
- The systrace_linux32 module now only builds the systrace_linux32.ko.
module on amd64.
- Add a new systrace_linux module that builds on both i386 and amd64.
For i386 it builds the existing systrace_linux.ko. For amd64 it
builds a systrace_linux.ko for 64-bit binaries.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D3954
|
|
|
|
|
|
|
| |
linux: fix handling of out-of-bounds syscall attempts
Due to an off by one the code would read an entry past the table, as
opposed to the last entry which contains the nosys handler.
|
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
| |
Use the same scheme implemented to manage credentials.
Code needing to look at process's credentials (as opposed to thred's) is
provided with *_proc variants of relevant functions.
Places which possibly had to take the proc lock anyway still use the proc
pointer to access limits.
|
|
|
|
|
|
|
| |
This is not the final fix as I need properly cleanup thread resources
before other threads suicide.
Tested by: Ruslan Makhmatkhanov
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
struct definitions out into the compat/linux/linux_socket.h
|
| |
|
| |
|
| |
|
|
|
|
|
| |
The patch developed by Jilles Tjoelker and Andrew Wilcox and
adopted for lemul branch by me.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Reported by: trinity
|
| |
|
|
|
|
|
|
|
| |
to emulate posix_fallocate() function.
Differential Revision: https://reviews.freebsd.org/D1523
Reviewed by: emaste
|
| |
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D1105
Reviewed by: trasz
|
|
|
|
|
|
|
|
|
| |
access to the semop structs and functions.
Submitted by: cognet@
Differential Revision: https://reviews.freebsd.org/D1095
Reviewed by: trasz
|
| |
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D1094
In collaboration with: Jilles Tjoelker
|
|
|
|
|
|
|
| |
all supported Linuxulators.
Differential Revision: https://reviews.freebsd.org/D1093
Reviewed by: trasz
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
around kqueue() to implement epoll subset of functionality.
The kqueue user data are 32bit on i386 which is not enough for
epoll user data, so we keep user data in the proc emuldata.
Initial patch developed by rdivacky@ in 2007, then extended
by Yuri Victorovich @ r255672 and finished by me
in collaboration with mjg@ and jillies@.
Differential Revision: https://reviews.freebsd.org/D1092
|
|
|
|
|
|
|
| |
header file.
Differential Revision: https://reviews.freebsd.org/D1087
Reviewed by: trasz
|
|
|
|
|
|
| |
to check the ABI as it is known.
Differential Revision: https://reviews.freebsd.org/D1086
|
|
|
|
|
|
|
|
|
| |
to determine the kernel version (this saves one uname call).
Temporarily disable the export of a note.Linux section until I figured
out how to change the kernel version in the note.Linux on the fly.
Differential Revision: https://reviews.freebsd.org/D1081
Reviewed by: trasz
|
|
|
|
|
|
| |
glibc. At list since glibc version 2.16 using AT_RANDOM is mandatory.
Differential Revision: https://reviews.freebsd.org/D1080
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The AT_EACCESS and AT_SYMLINK_NOFOLLOW flags are actually implemented
within the glibc wrapper function for faccessat(). If either of these
flags are specified, then the wrapper function employs fstatat() to
determine access permissions.
Differential Revision: https://reviews.freebsd.org/D1078
Reviewed by: trasz
|
|
|
|
|
|
|
|
|
|
| |
thread emuldata to proc emuldata as it was originally intended.
As we can have both 64 & 32 bit Linuxulator running any eventhandler
can be called twice for us. To prevent this move eventhandlers code
from linux_emul.c to the linux_common.ko module.
Differential Revision: https://reviews.freebsd.org/D1073
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Move struct ipc_perm definition to the MD path as it differs for 64 and
32 bit platform.
Differential Revision: https://reviews.freebsd.org/D1068
Reviewed by: trasz
|
|
|
|
|
|
|
| |
is moved to the shared page at r219609.
Differential Revision: https://reviews.freebsd.org/D1063
Reviewed by: trasz
|
|
|
|
|
|
|
| |
every exec.
Differential Revision: https://reviews.freebsd.org/D1062
Reviewed by: trasz
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D1061
Reviewed by: trasz
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D1051
Reviewed by: trasz
|
| |
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D1050
Reviewed by: emaste, trasz
|
| |
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D1049
Reviewed by: emaste
|