| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- make WARNS=6 clean for archs w/o strict alignment requirments
- add const, ANSIfy, remove unused vars, cast types for comparison
- thanks to differing definitions of VM_MIN_ADDRESS across our archs, we
need to trick the compiler to not complain about signedness. We could
either fix VM_MIN_ADDRESS to always be a simple integer or make the
check conditional on $ARCH.
Closes PRs: kern/42386, kern/83364
Reviewed by: bde
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Because {NGROUPS_MAX} may become variable, its value should be obtained
using sysconf(3). If a #define is used anyway, it should be obtained by
including <limits.h> as that is in POSIX like getgroups(2) itself is.
<sys/param.h> is not in POSIX.
MFC after: 1 week
|
| | | |
| | | |
| | | |
| | | | |
existing uses. Rename sysctl_handle_quad() to sysctl_handle_64().
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
a STAT command.
PR: kern/153748 (different patch)
Submitted by: Mark Johnston <markjdb@gmail.com>
MFC after: 2 weeks
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is what SUSv4 requires, and also the only thing that works if strict
standards compliance is requested or mknodat() is needed.
PR: standards/123688
Submitted by: gcooper
MFC after: 1 week
|
| | | |
| | | |
| | | |
| | | | |
Reviewed and tested by: nwhitehorn
|
| | | |
| | | |
| | | |
| | | | |
Reviewed and tested by: nwhitehorn
|
| | | |
| | | |
| | | |
| | | | |
Reviewed and tested by: nwhitehorn
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
executed, for the properly aligned stack.
Reported and tested by: rstone
Pointy hat to: kib
MFC after: 3 days
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
generated from lib/csu/common/crtbrand.c (which ultimately ends up in
executables and shared libraries, via crt1.o, gcrt1.o or Scrt1.o).
For all arches except sparc, gcc emits the section directive for the
abitag struct in crtbrand.c with a PROGBITS type. However, newer
versions of binutils (after 2.16.90) require the section to be of NOTE
type, to guarantee that the .note.ABI-tag section correctly ends up in
the first page of the final executable.
Unfortunately, there is no clean way to tell gcc to use another section
type, so crtbrand.c (or the C files that include it) must be compiled in
multiple steps:
- Compile the .c file to a .s file.
- Edit the .s file to change the 'progbits' type to 'note', for the section
directive that defines the .note.ABI-tag section.
- Compile the .s file to an object file.
These steps are done in the invididual Makefiles for each applicable arch.
Reviewed by: kib
|
| | | |
| | | |
| | | |
| | | | |
Submitted by: avg
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
threading, fall back to libc method of performing
__pthread_map_stacks_exec() job.
Reported and tested by: Mykola Dzham <i levsha me>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
what this bit of code is intended to do. :)
Approved by: imp
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Stack creation code is changed to call _rtld_get_stack_prot() to get
the stack protection right. There is a race where thread is created
during dlopen() of dso that requires executable stacks. Then,
_rtld_get_stack_prot() may return PROT_READ | PROT_WRITE, but thread
is still not linked into the thread list. In this case, the callback
misses the thread stack, and rechecks the required protection
afterward.
Reviewed by: davidxu
|
| | | |
| | | |
| | | |
| | | | |
stack protection to allow execution for single-threaded processes.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Do not use strlcpy() where simple assignment is enough.
Noted by: bde (long time ago)
MFC after: 1 week
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Submitted by: henning petersen <henning.petersen t-online de>
PR: 153756
MFC after: 1 week
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Implement MACHINE_ARCH=mips64e[lb] to build N64 images. This replaces
MACHINE_ARCH=mipse[lb] TARGET_ABI=n64.
MACHINE_ARCH=mipsn32e[lb] has been added, but currently requires
WITHOUT_CDDL due to atomic issues in libzfs. I've not investigated
this much, but implemented this to preserve as much of the TARGET_ABI
functionality that I could. Since its presence doesn't affect the
working cases, I've kept it in for now.
Added mips64e[lb] to make universe, so more kernels build.
And I think this (finally) closes the curtain on the tbemd tree.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Noted by: Anonymous <swell.k gmail com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
assembler source for libcompiler_rt as not needed executable stack. This
is done with a hammer instead of properly marking each assembly file
with section .note.GNU-stack to avoid modifying contributed source.
Discussed with: ed
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
endian mips. This will also make it work automatically on all future
big endian platforms.
|
| | | |
| | | |
| | | |
| | | | |
Found by: clang static analyzer
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
want to avoid using any "advanced" CPU features:
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
|
| | | |
| | | |
| | | |
| | | | |
be used for amd64, not just for i386.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
queue locked.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
MIPS64 n64 binaries are broken with libcompiler_rt at this time.
Switch mips back to libgcc until the cause of breakage is analyzed
and fixed.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
thing with empty quotation macros.
Requested by: Alex Kozlov
|
| | | |
| | | |
| | | |
| | | | |
significant for lock owner.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- Add flags CVWAIT_ABSTIME and CVWAIT_CLOCKID for umtx kernel based
condition variable, this should eliminate an extra system call to get
current time.
- Add sub-function UMTX_OP_NWAKE_PRIVATE to wake up N channels in single
system call. Create userland sleep queue for condition variable, in most
cases, thread will wait in the queue, the pthread_cond_signal will defer
thread wakeup until the mutex is unlocked, it tries to avoid an extra
system call and a extra context switch in time window of pthread_cond_signal
and pthread_mutex_unlock.
The changes are part of process-shared mutex project.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
bsnmpd(1)' def files, until bsd.snmpmod.mk & Makefiles are fixed to
pass proper include path flags to gensnmptree.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Sponsored by: The FreeBSD Foundation
Reviewed by: philip
Approved by: philip
|
| | | |
| | | |
| | | |
| | | | |
Reported by: pluknet
|
| | | |
| | | |
| | | |
| | | | |
SHM_W and machine/param.h.
|
| | | |
| | | |
| | | |
| | | | |
Reviewed by: rpaulo
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Reviewed by: hselasky
MFC after: 3 days
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
cerror on powerpc64.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
in crt1.o. On other architectures crtbrand.c is included from crt1.c,
but that's not a C source code file on ia64. Instead it is compiled
separately and included in crt1.o using incremental linking.
Tested by: dim (previous version)
Approved by: kib (mentor)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
macro for identification, instead of several different hand-rolled
variants (plain .ident, .ascii, etc).
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
the existing file descriptor. Instead, let dup2() atomically close the
old file descriptor when assigning the newly opened file to the same
descriptor. This closes a race in a multithreaded application where a
concurrent open() could allocate the existing file descriptor in between
the calls to close() and dup2().
PR: threads/79887
Submitted by: Dmitrij Tejblum tejblum of yandex-team.ru
Reviewed by: davidxu
MFC after: 1 week
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
message authentication, packet encryption & view-based access control (RFC 3412, 3414, 3415).
Sponsored by: The FreeBSD Foundation
Reviewed by: philip@ (mostly)
Approved by: philip@
|