Displaying 1 50 of 292,710 commits (0.026s)

FreeBSD — head/share/examples/jails jib jng

Fix missing description for command usage

While "jng" or "jib" without arguments told you what each sub-command does,
sub-command usage didn't tell you (e.g., "jng bridge" or "jib addm" gave
only usage and not description).

FreeBSD — head/sys/fs/cd9660 cd9660_vfsops.c

cd9660: More "check for NULL" cleaunps.

Cleanup some checks for NULL. Most of these were always unnecessary and
starting with r294954 brelse() doesn't need any NULL checks at all.

For now keep the checks somewhat consistent with NetBSD in case we want to
merge the cleanups to older versions.
Delta File
+8 -10 head/sys/fs/cd9660/cd9660_vfsops.c
+8 -10 1 file

FreeBSD — user/cperciva/freebsd-update-build/scripts 10.3-BETA2, user/cperciva/freebsd-update-build/scripts/10.3-BETA2/amd64 build.conf

Config for 10.3-BETA2.

FreeBSD — head/sys/netinet6 scope6.c

Add a missing newline to a log message.

MFC after:        1 week
Delta File
+1 -1 head/sys/netinet6/scope6.c
+1 -1 1 file

FreeBSD — head/sys/netinet6 nd6_rtr.c nd6.h

Rename the flags field of struct nd_defrouter to "raflags".

This field contains the flags inherited from the corresponding router
advertisement message and is not for storing private state.

MFC after:        1 week

FreeBSD — head/usr.bin/elfcopy Makefile

elfcopy: enable PE and EFI support

Sponsored by:        The FreeBSD Foundation
Delta File
+4 -3 head/usr.bin/elfcopy/Makefile
+4 -3 1 file

FreeBSD — head Makefile.inc1, head/lib Makefile libpe

Add libpe for elfcopy(1) PE/COFF support

Sponsored by:        The FreeBSD Foundation
Delta File
+34 -0 head/lib/libpe/Makefile
+4 -0 head/share/mk/src.libnames.mk
+2 -0 head/lib/Makefile
+2 -0 head/Makefile.inc1
+0 -0 head/lib/libpe/
+42 -0 5 files

FreeBSD — head/sys/netinet6 nd6_rtr.c

Simplify defrtrlist_update() slightly in preparation for future changes.

No functional change intended.

MFC after:        1 week
Delta File
+23 -28 head/sys/netinet6/nd6_rtr.c
+23 -28 1 file

FreeBSD — head/sys/netinet6 nd6_nbr.c

Remove a bogus comment from nd6_na_input().

The splnet() call that it refers to has been removed, and a lock for the
default router list is in fact needed.

MFC after:        1 week
Delta File
+0 -6 head/sys/netinet6/nd6_nbr.c
+0 -6 1 file

FreeBSD — head/sys/netinet6 nd6_rtr.c nd6_nbr.c

Remove superfluous return statements from the neighbour discovery code.

MFC after:        1 week

FreeBSD — head/contrib/elftoolchain libpe, head/contrib/elftoolchain/addr2line addr2line.c os.NetBSD.mk

Update ELF Tool Chain to upstream rev 3400

Some notable improvements include:

readelf:
- Add AArch64 relocation definitions.
- Report value of unknown relocation types.

elfcopy:
- Consider symbols with STB_GNU_UNIQUE binding as global symbols.
- Fixed support for VMA adjustment for loadable sections found
  in relocatable objects.
- Handle nameless global symbols.
- Improve wildcard matching for !-prefixed symbols.
- Add PE/COFF support.

elfdump:
- Improve section type reporting.
- Add MIPS-specific section types.

This update also includes a significant number of bug fixes.

PR:                207091 [exp-run]
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/netinet6 nd6_rtr.c nd6.c

Fix style around allocations from M_IP6NDP.

- Don't cast the return value of malloc(9).
- Use M_ZERO instead of explicitly calling bzero(9).

MFC after:        1 week

FreeBSD — head/sys/netinet6 nd6.c

Remove some unreferenced NDP debug variable definitions.

MFC after:        1 week
Delta File
+0 -5 head/sys/netinet6/nd6.c
+0 -5 1 file

FreeBSD — head/sys/fs/tmpfs tmpfs_vnops.c

Clear the cookie pointer on error in tmpfs_readdir().

It is otherwise left dangling, and callers that request cookies always free
the cookie buffer, even when VOP_READDIR(9) returns an error. This results
in a double free if tmpfs_readdir() returns an error to the NFS server or
the Linux getdents(2) emulation code.

Reported by:        pho
MFC after:        1 week
Security:        double free of malloc(9)-backed memory
Sponsored by:        EMC / Isilon Storage Division
Delta File
+4 -1 head/sys/fs/tmpfs/tmpfs_vnops.c
+4 -1 1 file

FreeBSD — head/sys/dev/cxgbe t4_main.c, head/sys/dev/cxgbe/common t4_msg.h

Remove duplicate definition (CPL_TRACE_PKT_T5).

FreeBSD — vendor-sys/acpica 20160212

Tag ACPICA 20160212.
Delta File
+0 -0 vendor-sys/acpica/20160212/
+0 -0 1 file

FreeBSD — vendor/elftoolchain elftoolchain-r3399

Tag elftoolchain-r3399
Delta File
+0 -0 vendor/elftoolchain/elftoolchain-r3399/
+0 -0 1 file

FreeBSD — vendor/elftoolchain/dist/elfcopy segments.c main.c, vendor/elftoolchain/dist/libelf _libelf_config.h

Import ELF Tool Chain snapshot revision 3399

From http://svn.code.sf.net/p/elftoolchain/code

FreeBSD — head/share/man/man5 rc.conf.5

Document the new jail_reverse_stop parameter

While here clean up the documentation for jail_list

PR:                196152
Approved by:        jamie, wblock
MFC after:        1 week, with r295471
Differential Revision:        https://reviews.freebsd.org/D5243
Delta File
+16 -14 head/share/man/man5/rc.conf.5
+16 -14 1 file

FreeBSD — head/sys/arm/mv twsi.c

Stop adding an extra null terminator to strings, OF_getprop already returns
a null terminated string.
Delta File
+2 -4 head/sys/arm/mv/twsi.c
+2 -4 1 file

FreeBSD — head/share/man/man4 ds3231.4

Update .Dd for r295565
Delta File
+1 -1 head/share/man/man4/ds3231.4
+1 -1 1 file

FreeBSD — head/share/man/man4 ds3231.4

Clarify the difference between 7- and 8-bit i2c addresses, used in FDT
versus hints-based configuration, respectively.

Reported by: Jukka Ukkonen <jau789 at gmail.com>
Delta File
+7 -4 head/share/man/man4/ds3231.4
+7 -4 1 file

FreeBSD — head/sys/riscv/include ucontext.h

Use __uint64_t type for floating point registers
as compiler don't know about __uint128_t yet.

Discussed with:        theraven, kib
Delta File
+1 -1 head/sys/riscv/include/ucontext.h
+1 -1 1 file

FreeBSD — head/sys/arm64/arm64 swtch.S

Only update curthread and curpcb after we have finished using the old
values.

If switching from a thread that used floating-point registers to a thread
that is still running, but holding the blocked_lock lock we would switch
the curthread to the new (running) thread, then call critical_enter. This
will non-atomically increment td_critnest, and later call critical_exit to
non-atomically decrement this value.

This can happen at the same time as the new thread is still running on the
old core, also calling these functions. In this case there will be a race
between these non-atomic operations. This can be an issue as we could loose
one of these operations leading to the value to not return to zero.

If, later on, we then hit a data abort we check if the td_critnest is zero.
If this check fails we will panic the kernel.

This has been observed when running pcmstat on a Cavium ThunderX. The pcm
thread will use the blocked_lock lock and there is a high chance userspace
will use the floating-point registers. When, later on, pmcstat triggers a
data abort we will hit this panic.

The fix is to update these values after storing the floating-point state.
This means we use the correct curthread while storing the state so it will
not be an issue that the changes to td_critnest are non-atomic.

    [2 lines not shown]
Delta File
+5 -7 head/sys/arm64/arm64/swtch.S
+5 -7 1 file

FreeBSD — head/usr.sbin/ctld login.c

Don't check CmdSN for initial login request.

This fixes connection errors for some initiators not starting CmdSN
from zero.

While there, fix wrong status details reported for couple errors.

MFC after:        3 days
Delta File
+4 -3 head/usr.sbin/ctld/login.c
+4 -3 1 file

FreeBSD — head/include signal.h, head/sys/mips/include ucontext.h

POSIX states that #include <signal.h> shall make both mcontext_t and
ucontext_t available.  Our code even has XXX comment about this.

Add a bit of compliance by moving struct __ucontext definition into
sys/_ucontext.h and including it into signal.h and sys/ucontext.h.

Several machine/ucontext.h headers were changed to use namespace-safe
types (like uint64_t->__uint64_t) to not depend on sys/types.h.
struct __stack_t from sys/signal.h is made always visible in private
namespace to satisfy sys/_ucontext.h requirements.

Apparently mips _types.h pollutes global namespace with f_register_t
type definition.  This commit does not try to fix the issue.

PR:        207079
Reported and tested by:        Ting-Wei Lan <lantw44 at gmail.com>
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks

FreeBSD — head/sys/dev/hwpmc hwpmc_core.c hwpmc_core.h

If full width writes to the performance monitoring counters are
supported, use full-width aliases MSRs for writes.  This fixes the
"[pmc,X] negative increment" assertion on the context switch when
clipped counter value is sign-extended.

Add definitions for the MSR IA32_PERF_CAPABILITIES needed to detect
the feature.

PR:        207068
Submitted by:        joss.upton at yahoo.com
MFC after:        2 weeks

FreeBSD — head/sys/sys pmc.h

Adjust the size of PMC_DEFAULT_DEBUG_FLAGS to match the size of the
structure.

PR:        207068
Submitted by:        joss.upton at yahoo.com
MFC after:        2 weeks
Delta File
+1 -1 head/sys/sys/pmc.h
+1 -1 1 file

FreeBSD — head/sys/dev/hwpmc hwpmc_mod.c

Remove tautological cast.

PR:        207068
Submitted by:        joss.upton at yahoo.com
MFC after:        2 weeks
Delta File
+1 -1 head/sys/dev/hwpmc/hwpmc_mod.c
+1 -1 1 file

FreeBSD — head/sys/dev/uart uart_dev_lpc.c uart_dev_ns8250.c

UART: Fix spurious interrupts generated by ns8250 and lpc drivers:
 - don't enable transmitter empty interrupt before filling TX FIFO.
 - add missing uart_barrier() call in interrupt service routine

FreeBSD — head/share/examples/jails jng jib

Comments and fix small bug

Reduce differences between jib/jng and fix a bug that would prevent
additional interfaces from being created if the first of many already
existed (counter wasn't incremented before calling only continue).

FreeBSD — head/etc/rc.d jail

Interpret vnet_interface/vnet.interface as array
Delta File
+17 -2 head/etc/rc.d/jail
+17 -2 1 file

FreeBSD — head/share/examples/jails jng jib

Add syntax to disable MAC allocation

Adding `!' before an interface name will disable MAC allocation, falling
back to driver mechanics. Alternatively adding `=' before an interface name
causes the MAC address to be cloned (for ng_bridge(4) back-end only). While
here, disable the auto-detection of wlan* since this knocks the host off;
requiring the host that defines the jail to explicitly enable this feature
by preceding the interface with `='.

FreeBSD — head/share/examples/jails jib jng

Refactor conversion to hex

FreeBSD — stable/10/sys/conf newvers.sh

Update stable/10 to BETA2 in preparation for 10.3-BETA2 builds.

Approved by:        re (implicit)
Delta File
+1 -1 stable/10/sys/conf/newvers.sh
+1 -1 1 file

FreeBSD — stable/10/sys/boot/efi/libefi libefi.c, stable/10/sys/boot/efi/loader main.c

Merge from current    r294767,294769,295408

r294767: Parse command line arguments in loader.fi
r294769: Allow newlines to be treated as whitespace when parsing args
r295408: Implement -P command line option in for EFI booting.

Approved by:        re@ (gjb@)

FreeBSD — stable/10/sys/boot/efi/boot1 boot1.c zfs_module.c, stable/10/sys/boot/efi/include efidevp.h

MFC r295320, r295356 (Partial)

Fix EFI multi device boot support

Approved by:        re (marius)
Sponsored by:        Multiplay

FreeBSD — head/sys/netinet sctp_constants.h

Loopback addresses are 127.0.0.0/8, not 127.0.0.1/32.

MFC after: 1 week
Delta File
+1 -4 head/sys/netinet/sctp_constants.h
+1 -4 1 file

FreeBSD — head/share/examples/jails jng

Add support for bridging iwn(4) based wlan(4)

Documented in iwn(4), "Only one virtual interface may be configured at any
time." However, netgraph with a cloned MAC address is able to communicate
over an ng_eiface attached to an ng_bridge linked to the wlan(4) interface.
While here, introduce syntax to specify the MAC address is to be cloned if
the named interface begins with equals [=].
Delta File
+25 -4 head/share/examples/jails/jng
+25 -4 1 file

FreeBSD — head/sys/kern kern_mbuf.c uipc_mbuf.c, head/sys/sys mbuf.h

o Gather all mbuf(9) allocation functions into kern_mbuf.c, and all
  mbuf(9) manipulation functions into uipc_mbuf.c.  This looks like
  the initial intent, but had diffused in the last decade.

o Gather all declarations in mbuf.h in one place and sort them.

o Uninline m_clget() and m_cljget().

There are no functional changes in this patch.

The patch comes from a larger version, where all mbuf(9) allocation was
uninlined, which allowed to make mbuf(9) UMA zones private to kern_mbuf.c.
The performance impact of the total uninlining is still unclear, so we
are holding on now with larger version.

Together with:        melifaro, olivier
Delta File
+320 -21 head/sys/kern/kern_mbuf.c
+22 -263 head/sys/kern/uipc_mbuf.c
+43 -85 head/sys/sys/mbuf.h
+385 -369 3 files

FreeBSD — head/share/examples/jails jib jng

Centralize MAC derivation formula

FreeBSD — projects/clang380-import/sys/boot Makefile.inc

Similar to r293384 and r293426, for sys/boot, also use the new -mno-movt
flag with clang >= 3.8.0 targeting arm.

FreeBSD — projects/clang380-import/contrib/llvm/lib/Target/X86 X86FrameLowering.cpp

For now, disable shrink-wrapping (a new optimization pass that computes
the safe point to insert the prologue and epilogue of the function) on
X86.  This prevents problems with some functions using TLS, such as in
jemalloc, and which was the cause for Address Sanitizer crashes.  The
correct fix is still being discussed upstream.

FreeBSD — head/share/examples/jails VIMAGE README

Add example VIMAGE config required by vnet jails

FreeBSD — head/sys/netinet sctp_sysctl.c

Use 4 spaces instead of a tab.
Delta File
+4 -4 head/sys/netinet/sctp_sysctl.c
+4 -4 1 file

FreeBSD — head/sys/arm/conf PANDABOARD VIRT

Enable ARM_INTRNG on all kernel configs where we use the Generic Interrupt
Controller.

Sponsored by:        ABT Systems Ltd

FreeBSD — stable/10/sys/boot/efi/boot1 boot1.c

MFC r294768:

Process /boot/config and /boot.config during EFI boot

Approved by:        re (marius)
Sponsored by:        Multiplay
Delta File
+37 -1 stable/10/sys/boot/efi/boot1/boot1.c
+37 -1 1 file

FreeBSD — stable/10/sys/boot/efi Makefile, stable/10/sys/boot/efi/libefi Makefile

Fix ia64 build failures in EFI platform

The MFC of the recent EFI work to stable/10 caused build breakage
under ia64.

It was not apparent that there was EFI code outside the EFI tree as
this is not the case in HEAD, however in stable/10 there is for ia64.

This change does the following:
* Re-enables libefi for ia64 under gcc.
* Adds the ignore for unsupported pragma's when building libefi for ia64.
* Adds the missing parameter to efi_handle_lookup in the ia64 loader.

This is a direct commit as ia64 is no longer supported after 10.x

Approved by:        re (marius)
Sponsored by:        Multiplay