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

FreeBSD — head/sys/dev/hyperv/netvsc hv_netvsc_drv_freebsd.c

hyperv/hn: Fix typo in comment

Noticed by:        avos
Reviewed by:        adrian, avos, Hongjiang Zhang <honzhan microsoft com>
Approved by:        adrian
MFC after:        1 week
Sponsored by:        Microsoft OSTC
Differential Revision:        https://reviews.freebsd.org/D5199

FreeBSD — head/sys/dev/ioat ioat.c ioat_internal.h

ioat(4): On error detected in ithread, defer HW reset to taskqueue

The I/OAT HW reset process may sleep, so it is invalid to perform a
channel reset from the software interrupt thread.

Sponsored by:        EMC / Isilon Storage Division

FreeBSD — head/sys/dev/ioat ioat.c

ioat(4): Also check for errors if the channel is suspended

Sponsored by:        EMC / Isilon Storage Division
Delta File
+1 -1 head/sys/dev/ioat/ioat.c
+1 -1 1 file

FreeBSD — head/sys/dev/ioat ioat_internal.h ioat_hw.h

ioat(4): Decode/define more capabilities, operations

These are defined in the Intel Haswell EDS volume 2 (registers) (507849
v2.1).

Sponsored by:        EMC / Isilon Storage Division

FreeBSD — head/include signal.h

Hide ucontext_t and mcontext_t when neither POSIX nor XSI features are
enabled in the compilation environment, i.e. for ANSI C use of
#include <signal.h>.

Requested and reviewed by:        bde
Sponsored by:        The FreeBSD Foundation
MFC after:        13 days
Delta File
+2 -0 head/include/signal.h
+2 -0 1 file

FreeBSD — vendor/lldb lldb-release_38-r260756

Tag lldb release_38 branch r260756.
Delta File
+0 -0 vendor/lldb/lldb-release_38-r260756/
+0 -0 1 file

FreeBSD — vendor/clang clang-release_38-r260756

Tag clang release_38 branch r260756.
Delta File
+0 -0 vendor/clang/clang-release_38-r260756/
+0 -0 1 file

FreeBSD — vendor/clang/dist/docs AttributeReference.rst ReleaseNotes.rst, vendor/clang/dist/include/clang/Sema Sema.h

FreeBSD — vendor/llvm llvm-release_38-r260756

Tag llvm release_38 branch r260756.
Delta File
+0 -0 vendor/llvm/llvm-release_38-r260756/
+0 -0 1 file

FreeBSD — user/pho/stress2/misc kinfo2.sh kinfo3.sh

Fix typo.

Sponsored by:        EMC / Isilon Storage Division

FreeBSD — head/sys/dev/ioat ioat.c

ioat(4): Recheck status register on zero-descriptor wakeups

Errors that halt the channel don't necessarily result in a completion
update, apparently.

Sponsored by:        EMC / Isilon Storage Division
Delta File
+11 -3 head/sys/dev/ioat/ioat.c
+11 -3 1 file

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