| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
hyperv: Add VF bringup scripts and devd rules.
How network VF works with hn(4) on Hyper-V in non-transparent mode:
- Each network VF has a cooresponding hn(4).
- The network VF and the it's cooresponding hn(4) have the same hardware
address.
- Once the network VF is up, e.g. ifconfig VF up:
o All of the transmission should go through the network VF.
o Most of the reception goes through the network VF.
o Small amount of reception may go through the cooresponding hn(4).
This reception will happen, even if the the cooresponding hn(4) is
down. The cooresponding hn(4) will change the reception interface
to the network VF, so that network layer and application layer will
be tricked into thinking that these packets were received by the
network VF.
o The cooresponding hn(4) pretends the physical link is down.
- Once the network VF is down or detached:
o All of the transmission should go through the cooresponding hn(4).
o All of the reception goes through the cooresponding hn(4).
o The cooresponding hn(4) fallbacks to the original physical link
detection logic.
All these features are mainly used to help live migration, during which
the network VF will be detached, while the network communication to the
VM must not be cut off. In order to reach this level of live migration
transparency, we use failover mode lagg(4) with the network VF and the
cooresponding hn(4) attached to it.
To ease user configuration for both network VF and non-network VF, the
lagg(4) will be created by the following rules, and the configuration
of the cooresponding hn(4) will be applied to the lagg(4) automatically.
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D11635
Notes:
svn path=/stable/10/; revision=322129
|
| |
|
|
|
|
|
|
|
|
| |
atf-sh(3): document atf_init_test_cases(3) fully
The function was missing from the NAME/SYNOPSIS sections. Add a manpage link
to complete the documentation reference.
Notes:
svn path=/stable/10/; revision=321755
|
| |
|
|
|
|
|
|
|
| |
libexec: normalize paths using SRCTOP-relative paths or :H when possible
This simplifies make logic/output
Notes:
svn path=/stable/10/; revision=321267
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
r316552:
atf-c: fix documentation description for atf_utils_wait(3)
atf_utils_wait(3) should be used in combination with atf_utils_fork(3),
not itself (atf_utils_wait(3)).
r319662:
Add MLINKS for atf-sh(3) to each of the functions it implements
This hopefully will make atf-sh(3) easier to understand for newcomers,
without having to go through the atf-sh(3) level of indirection.
Notes:
svn path=/stable/10/; revision=321141
|
| |
|
|
|
|
|
| |
Use strlcpy() instead of strncpy() and nul-terminating.
Notes:
svn path=/stable/10/; revision=321069
|
| |
|
|
|
|
|
| |
When reporting undefined symbol, note the version, if specified.
Notes:
svn path=/stable/10/; revision=320888
|
| |
|
|
|
|
|
| |
Add deprecation notices for all rcmd tools
Notes:
svn path=/stable/10/; revision=320646
|
| |
|
|
|
|
|
| |
Handle protected symbols in rtld.
Notes:
svn path=/stable/10/; revision=314199
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
r289172:
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and
netbsd-tests.test.mk (r289151)
- Eliminate explicit OBJTOP/SRCTOP setting
- Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk
- Remove unnecessary TESTSDIR setting
- Use SRCTOP where possible for clarity
r290254:
Remove unused variable (SRCDIR)
Notes:
svn path=/stable/10/; revision=313488
|
| |
|
|
|
|
|
|
|
| |
Conditionalize all code that uses tcpd.h behind `LIBWRAP` guard
This will allow the code to stand by itself without libwrap
Notes:
svn path=/stable/10/; revision=313226
|
| |
|
|
|
|
|
|
|
| |
Fix acquisition of nested write compat rtld locks.
PR: 215826
Notes:
svn path=/stable/10/; revision=312701
|
| |
|
|
|
|
|
| |
Take write lock for rtld_bind before modifying obj_list in dl_iterate_phdr().
Notes:
svn path=/stable/10/; revision=312700
|
| |
|
|
|
|
|
|
| |
For the main binary, postpone enforcing relro read-only protection
until copy relocations are done.
Notes:
svn path=/stable/10/; revision=312402
|
| |
|
|
|
|
|
| |
Use ANSI C definitions, update comment.
Notes:
svn path=/stable/10/; revision=312340
|
| |
|
|
|
|
|
| |
portion is used.
Notes:
svn path=/stable/10/; revision=311751
|
| |
|
|
| |
Notes:
svn path=/stable/10/; revision=311747
|
| |
|
|
|
|
|
| |
Fix typo.
Notes:
svn path=/stable/10/; revision=310238
|
| |
|
|
|
|
|
|
|
|
|
| |
When symbol versioning was added to rtld, the boolean 'in_plt' argument
to find_symdef() was converted to a bitmask of flags. The first flag
added was 'SYMLOOK_IN_PLT' which replaced the 'in_plt' bool. This
happened to still work by accident as SYMLOOK_IN_PLT had the value of 1
which is the same as 'true', so there should be no functional change.
Notes:
svn path=/stable/10/; revision=309371
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Pass CPUID[1] %edx (cpu_feature), %ecx (cpu_feature2) and
CPUID[7].%ebx (cpu_stdext_feature), %ecx (cpu_stdext_feature2) to the
ifunc resolvers on x86.
MFC r308925:
Adjust r308689 to make rtld compilable with either in-tree or
(hopefully) stock gcc 4.2.1 on i386 and other arches.
Notes:
svn path=/stable/10/; revision=309061
|
| |
|
|
|
|
|
| |
Assert that there is no unresolved symbols during rtld linking.
Notes:
svn path=/stable/10/; revision=308967
|
| |
|
|
|
|
|
| |
Update hint to utilize user variable.
Notes:
svn path=/stable/10/; revision=308966
|
| |
|
|
|
|
|
|
|
| |
MFC r306029:
Use SRCTOP instead of the longhand version for defining the path to contrib/atf
Notes:
svn path=/stable/10/; revision=307722
|
| |
|
|
|
|
|
| |
Fill phdr and phsize for rtld object.
Notes:
svn path=/stable/10/; revision=304455
|
| |
|
|
|
|
|
| |
Remove all remaining uses of TAILQ_FOREACH_FROM() from rtld-elf.
Notes:
svn path=/stable/10/; revision=304454
|
| |
|
|
|
|
|
|
| |
Fix dlsym(RTLD_NEXT) handling to only return the next library in last library
cases.
Notes:
svn path=/stable/10/; revision=303169
|
| |
|
|
|
|
|
| |
Fix issues found by Coverity in the rtld-elf.c:gethints().
Notes:
svn path=/stable/10/; revision=301581
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Declare line[] in the outermost scope of retrieve() instead of
declaring it in an inner scope and then using it via a pointer
in the outer scope.
Reported by: Coverity
CID: 605895
Notes:
svn path=/stable/10/; revision=300273
|
| |
|
|
|
|
|
|
|
|
| |
Fix handling of DT_TEXTREL for an object with more than one read-only
segment.
PR: 207631
Notes:
svn path=/stable/10/; revision=296939
|
| |
|
|
|
|
|
|
|
|
| |
Fix the type for hw.ncpu, so sysctlbyname doesn't consistently fail on
64-bit architectures where sizeof(int) != sizeof(size_t).
PR: 206758
Notes:
svn path=/stable/10/; revision=296756
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Include rtld itself when iterating over loaded ELF objects in
dl_iterate_phdr(3).
MFC r294373:
Do not call callbacks for dl_iterate_phdr(3) with the rtld bind and
phdr locks locked.
MFC r294470 (by kan):
Fix initlist_add_object invocation parameters.
MFC r294936 (by kan):
Do not unlock rtld_phdr_lock over callback invocations.
Notes:
svn path=/stable/10/; revision=296727
|
| |
|
|
| |
Notes:
svn path=/stable/10/; revision=293317
|
| |
|
|
|
|
|
| |
Use LIBEXECDIR for /usr/libexec.
Notes:
svn path=/stable/10/; revision=291819
|
| |
|
|
|
|
|
|
| |
Allow PT_NOTES segments to be located anywhere in the executable
image.
Notes:
svn path=/stable/10/; revision=290099
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Clang emits SSE instructions on amd64 in the common path of
pthread_mutex_unlock. If the thread does not otherwise use SSE,
this usage incurs a context-switch of the FPU/SSE state, which
reduces the performance of multiple real-world applications by a
non-trivial amount (3-5% in one application).
Instead of this change, I experimented with eagerly switching the
FPU state at context-switch time. This did not help. Most of the
cost seems to be in the read/write of memory--as kib@ stated--and
not in the #NM handling. I tested on machines with and without
XSAVEOPT.
One counter-argument to this change is that most applications already
use SIMD, and the number of applications and amount of SIMD usage
are only increasing. This is absolutely true. I agree that--in
general and in principle--this change is in the wrong direction.
However, there are applications that do not use enough SSE to offset
the extra context-switch cost. SSE does not provide a clear benefit
in the current libthr code with the current compiler, but it does
provide a clear loss in some cases. Therefore, disabling SSE in
libthr is a non-loss for most, and a gain for some.
I refrained from disabling SSE in libc--as was suggested--because
I can't make the above argument for libc. It provides a wide variety
of code; each case should be analyzed separately.
https://lists.freebsd.org/pipermail/freebsd-current/2015-March/055193.html
Suggestions from: dim, jmg, rpaulo
Sponsored by: Dell Inc.
Notes:
svn path=/stable/10/; revision=290014
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Ensure we use calculate_first_tls_offset, even if the main program doesn't
have TLS program header. This is needed on architectures with Variant I
tls, that is arm, arm64, mips, and powerpc. These place the thread control
block at the start of the buffer and, without this, this data may be
trashed.
This appears to not be an issue on mips or powerpc as they include a second
adjustment to move the thread local data, however this is on arm64 (with a
future change to fix placing this data), and should be on arm. I am unable
to trigger this on arm, even after changing the code to move the data
around to make it more likely to be hit. This is most likely because my
tests didn't use the variable in offset 0.
Reviewed by: kib
MFC after: 1 week
Sponsored by: ABT Systems Ltd
Notes:
svn path=/stable/10/; revision=287560
|
| |
|
|
|
|
|
|
|
|
| |
The requirement is for a GCC-compatible compiler and not necessarily
GCC itself. However, we currently expect any compiler used for building
the whole of FreeBSD to be GCC-compatible and many things will break if
not; there's no longer a need to have an explicit test for this in rtld.
Notes:
svn path=/stable/10/; revision=287331
|
| |
|
|
|
|
|
|
| |
Call /etc/crontab the "system crontab", not "root's crontab". While
here, fix some other wording issues
Notes:
svn path=/stable/10/; revision=284970
|
| |
|
|
| |
Notes:
svn path=/stable/10/; revision=284954
|
| |
|
|
|
|
|
|
|
|
| |
Remove the #ifdef DEBUG code, which is not compilable on 64bit
architectures.
PR: 199767
Notes:
svn path=/stable/10/; revision=282523
|
| |
|
|
|
|
|
| |
Always do token substitution, do not require -z origin to do it.
Notes:
svn path=/stable/10/; revision=282412
|
| |
|
|
|
|
|
|
| |
This is only an interim fix; MIPS should be using the MI code instead,
which does not have this issue.
Notes:
svn path=/stable/10/; revision=282142
|
| |
|
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/stable/10/; revision=282118
|
| |
|
|
|
|
|
| |
Implement support for -z global linker option.
Notes:
svn path=/stable/10/; revision=281849
|
| |
|
|
| |
Notes:
svn path=/stable/10/; revision=281486
|
| |
|
|
|
|
|
| |
Change default visibility for rtld to hidden, on x86.
Notes:
svn path=/stable/10/; revision=281453
|
| |
|
|
|
|
|
|
| |
Pass MAP_ALIGNED_SUPER to allocate the whole dso region if its text is large
enough for the superpage mapping.
Notes:
svn path=/stable/10/; revision=281452
|
| |
|
|
|
|
|
| |
Use realpath(3) to properly expand $ORIGIN to its absolute path.
Notes:
svn path=/stable/10/; revision=279713
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the following options to enable/disable several features in the base system
WITHOUT_BOOTPARAMD - bootparamd
WITHOUT_BOOTPD - bootpd
WITHOUT_FINGER - finger, fingerd
WITHOUT_FTP - ftp, ftpd
WITHOUT_INETD - inetd
WITHOUT_RBOOTD - rbootd
WITHOUT_TCP_WRAPPERS - tcpd, et al
WITHOUT_TFTP - tftp, tftp-server
WITHOUT_TIMED - timed
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/stable/10/; revision=279505
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The runtime linker needs to include a path to itself in the link map
it exports to the debugger. It currently has two choices: it can use
a compiled-in path (/libexec/ld-elf.so.1) or it can use the path stored
in the interpreter path in the binary being executed. The runtime linker
currently prefers the second. However, this is usually wrong for compat32
binaries since the binary specifies the path of rtld on a 32-bit system
(/libexec/ld-elf.so.1) instead of the actual path (/libexec/ld-elf32.so.1).
For now, always assume the compiled in path (/libexec/ld-elf32.so.1) as
the rtld path and ignore the path in the binary for the 32-bit runtime
linker.
Notes:
svn path=/stable/10/; revision=279218
|
| |
|
|
|
|
|
|
|
|
|
| |
r277676:
Add MK_TALK knob for building the talk and talkd
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/stable/10/; revision=278710
|