Displaying 1 50 of 315,425 commits (0.032s)

FreeBSD — stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs spa_misc.c

MFC r316854: rename vfs.zfs.debug_flags to vfs.zfs.debugflags

Since this is a stable branch vfs.zfs.debug_flags sysctl is also kept.
The corresponing tunable could never work.

FreeBSD — stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs spa_misc.c

MFC r316854: rename vfs.zfs.debug_flags to vfs.zfs.debugflags

Since this is a stable branch vfs.zfs.debug_flags sysctl is also kept.
The corresponing tunable could never work.

FreeBSD — stable/10/cddl/contrib/opensolaris/lib/libdtrace/common dt_consume.c

MFC r316853: dtrace: fix normalization of stddev aggregation

Sponsored by:        Panzura

FreeBSD — stable/11/cddl/contrib/opensolaris/lib/libdtrace/common dt_consume.c

MFC r316853: dtrace: fix normalization of stddev aggregation

Sponsored by:        Panzura

FreeBSD — stable/11/sys/x86/x86 mp_x86.c

MFC r316643: use msr 0xc001100c to discover multi-node AMD processors
Delta File
+14 -7 stable/11/sys/x86/x86/mp_x86.c
+14 -7 1 file

FreeBSD — head/share/man/man9 bitset.9, head/sys/sys bitset.h

Add BIT_OR2(), BIT_AND2(), BIT_NAND2(), BIT_XOR() and BIT_XOR2().

Submitted by:        Sebastian Huber <sebastian.huber at embedded-brains.de>
MFC after:        2 weeks
Delta File
+112 -1 head/share/man/man9/bitset.9
+30 -0 head/sys/sys/bitset.h
+142 -1 2 files

FreeBSD — head/include termios.h, head/sys/sys _termios.h

Use __BSD_VISIBLE test instead checking for absense of _POSIX_SOURCE.

The Termios headers <termios.h> and <sys/_termios.h> used sometimes
_POSIX_SOURCE directly to determine if a thing should be exposed to
the user.  This circumvented the feature mechanisms of <sys/cdefs.h>.

Submitted by:        Sebastian Huber <sebastian.huber at embedded-brains.de>
MFC after:        2 weeks
Delta File
+22 -22 head/sys/sys/_termios.h
+4 -4 head/include/termios.h
+26 -26 2 files

FreeBSD — user/pho/stress2/misc suj27.sh suj28.sh

Fix more hard coded mount point names.

Sponsored by:        Dell EMC Isilon

FreeBSD — stable/11/sys/netinet ip_divert.c

MFC r318399:
  Set M_BCAST and M_MCAST flags on mbuf sent via divert socket.

  r290383 has changed how mbufs sent by divert socket are handled.
  Previously they are always handled by slow path processing in ip_input().
  Now ip_tryforward() is invoked from ip_input() before in_broadcast() check.
  Since diverted packet lost all mbuf flags, it passes the broadcast check
  in ip_tryforward() due to missing M_BCAST flag. In the result the broadcast
  packet is forwarded to the wire instead of be consumed by network stack.

  Add in_broadcast() check to the div_output() function. And restore the
  M_BCAST flag if destination address is broadcast for the given network

  PR:                209491
Delta File
+8 -0 stable/11/sys/netinet/ip_divert.c
+8 -0 1 file

FreeBSD — stable/11/sbin/ipfw tables.c

MFC r318400:
  Allow zero port specification in table entries with type flow.

  PR:                217620
Delta File
+6 -10 stable/11/sbin/ipfw/tables.c
+6 -10 1 file

FreeBSD — stable/11/contrib/binutils/gas/config tc-arm.c

MFC r318135:

  Fix parsing of 'vmov Q<n>.F32,Q<n>.F32' instruction.

FreeBSD — stable/10/sys/dev/cxgbe/common t4_msg.h

MFC r311846:
cxgbe(4): Refresh t4_msg.h, mainly for definitions related to the crypto
Delta File
+594 -1 stable/10/sys/dev/cxgbe/common/t4_msg.h
+594 -1 1 file

FreeBSD — head/sys/dev/cxgbe/iw_cxgbe cm.c

cxgbe/iw_cxgbe: sodisconnect failures are harmless and should not be
treated as fatal errors.

MFC after:        3 days
Sponsored by:        Chelsio Communications
Delta File
+3 -5 head/sys/dev/cxgbe/iw_cxgbe/cm.c
+3 -5 1 file

FreeBSD — stable/11/sys/dev/cxgbe/common t4_msg.h

MFC r311846:
cxgbe(4): Refresh t4_msg.h, mainly for definitions related to the crypto
Delta File
+594 -1 stable/11/sys/dev/cxgbe/common/t4_msg.h
+594 -1 1 file

FreeBSD — stable/11/sys/netinet tcp_lro.c

MFC r317170, r317389, and r317390.

Remove redundant assignment.

Frames that are not considered for LRO should not be counted in LRO

Flush the LRO ctrl as soon as lro_mbufs fills up.  There is no need to
wait for the next enqueue from the driver.

Sponsored by:        Chelsio Communications
Delta File
+5 -8 stable/11/sys/netinet/tcp_lro.c
+5 -8 1 file

FreeBSD — stable/11/usr.bin/kdump kdump.c

MFC 315334: Decode arguments to chflagsat().
Delta File
+2 -0 stable/11/usr.bin/kdump/kdump.c
+2 -0 1 file

FreeBSD — stable/11/lib/libsysdecode sysdecode_ioctlname.3

MFC 315310: Spell "const" properly.

PR:                217797

FreeBSD — head/share/man/man9 Makefile

Add missing MLINKS for functions decribed in iflibdd(9), iflibdi(9), and
Delta File
+55 -0 head/share/man/man9/Makefile
+55 -0 1 file

FreeBSD — head/sys/dev/ath if_ath_ahb.c

[ath] begin migration of AHB support to use the PCI style board data API for calibration 

This brings the AHB support in line with the PCI support - now other "things"
can wrap up the calibration / board data into a firmware blob and have them
probe/attach after the system has finished booting.

Note that this change requires /all/ of the AHB using kernel configurations
to change - so until I drop those changes in, this breaks AHB.

Fear not, I'll do that soon.


* the above stuff.


* AR9331, carambola 2, loading if_ath / wlan as modules at run time
Delta File
+38 -60 head/sys/dev/ath/if_ath_ahb.c
+38 -60 1 file

FreeBSD — head/sys/compat/freebsd32 freebsd32_sysent.c, head/sys/kern init_sysent.c

Followup to r318765 (capsicumize cpuset_*affinity)

Update *sysent files

FreeBSD — head/share/man/man9 iflibdi.9

Remove duplicate definition of iflib_led_create().
Delta File
+1 -5 head/share/man/man9/iflibdi.9
+1 -5 1 file

FreeBSD — head/lib/libc/sys cpuset_getaffinity.2, head/share/man/man4 capsicum.4

Allow cpuset_{get,set}affinity in capabilities mode

bhyve was recently sandboxed with capsicum, and needs to be able to
control the CPU sets of its vcpu threads

Reviewed by:        emaste, oshogbo, rwatson
MFC after:        2 weeks
Sponsored by:        ScaleEngine Inc.
Differential Revision:        https://reviews.freebsd.org/D10170

FreeBSD — stable/11/lib/libsysdecode flags.c

MFC 315283:
Fix sysdecode_cap_rights which currently prints bogus capability rights.

PR:                217787

FreeBSD — stable/11/sys/amd64/conf GENERIC MINIMAL, stable/11/sys/i386/conf GENERIC

MFC 310177: Enable EARLY_AP_STARTUP on amd64 and i386 kernels by default.

PR:                199321, 203682
Discussed with:        re (kib)
Relnotes:        yes

FreeBSD — head/sys/conf files, head/sys/dev/cxgbe/firmware t6fw- t5fw-

cxgbe(4): Update the T4, T5, and T6 firmwares to

The latest firmware has a number of link related fixes, support for a
new custom card, and the fix for a bug that affected rate limiting on

Obtained from:        Chelsio Communications
MFC after:        1 week
Sponsored by:        Chelsio Communications

FreeBSD — head/sys/i386/i386 machdep.c, head/sys/x86/include segments.h

Remove the BSD/OS 2.1 system call gate LDT entry.

An extra copy of the system call gate was added to the default LDT back
in 1996 (r18513 / r18514).  However, the ability to run BSD/OS 2.1
i386 binaries under FreeBSD's native ABI is most likely no longer

Discussed with:        kib

FreeBSD — head/sys/dev/bhnd/nvram bhnd_nvram_data_sprom.c bhnd_sprom.c

bhnd(4): Fix a SPROM identification regression introduced in r315866

In r315866, we introduced a direct read of the 8-bit sromrev field from the
memory mapped SPROM/OTP device. On OTP devices that require 16-bit access
alignment, this read fails, preventing identification of the SPROM layout.

So, let's perform an aligned read of the combined 16-bit sromrev/crc field

Approved by:        adrian (mentor, implicit)

FreeBSD — stable/11/usr.bin/sed sed.1

MFC r316030, r317378: Add some useful examples to the sed man page.

Reviewed by:        wblock, bcr
Differential Revision:        https://reviews.freebsd.org/D9958
Delta File
+31 -1 stable/11/usr.bin/sed/sed.1
+31 -1 1 file


UPDATING: ino64 upgrade should include COMPAT_FREEBSD11

The upgrade process requires COMPAT_FREEBSD11 to support the combination
of "old" userland and "new" kernel that exists after "make kernel" and
reboot.  Mention this explicitly for those using custom kernel configs.
Once the "new" world is installed the COMPAT_FREEBSD11 could be removed
again, but that does not seem necessary to mention in UPDATING.

Reported by:        kib
Sponsored by:        The FreeBSD Foundation
Delta File
+2 -1 head/UPDATING
+2 -1 1 file


Add note to UPDATING for ino64 to follow the standard upgrade process

The existing upgrade process documented in UPDATING is both necessary
and sufficient for upgrading across the ino64 change.  However, the
shortcut of installing both kernel + world before a single reboot has
been possible for quite some time, and several developers and users
were surprised by fallout from ino64.  Add an explicit entry pointing
out that the full process must be followed.

Reviewed by:        allanjude, gjb, vangyzen
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D10877
Delta File
+8 -0 head/UPDATING
+8 -0 1 file

FreeBSD — stable/10/contrib/netbsd-tests/lib/libc/rpc t_rpc.c

:raw no longer SIGSEGVs on FreeBSD; revert the signal expectation

This is a direct commit to ^/stable/10, since this expectation was only
added to ^/stable/10's copy of t_raw.c.

PR:                216954
Sponsored by:        Dell EMC Isilon

FreeBSD — head/contrib/blacklist/bin blacklistd.c, head/contrib/blacklist/include blacklist.h bl.h

Extend libblacklist support with new action types

The original blacklist library supported two notification types:
 - failed auth attempt, which incremented the failed login count
   by one for the remote address
 - successful auth attempt, which reset the failed login count
   to zero for that remote address

When the failed login count reached the limit in the configuration
file, the remote address would be blocked by a packet filter.

This patch implements a new notification type, "abusive behavior",
and accepts, but does not act on an additional type, "bad username".
It is envisioned that a system administrator will configure a small
list of "known bad usernames" that should be blocked immediately.

Reviewed by:        emaste
MFC after:        3 days
Sponsored by:        The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10604

FreeBSD — head/sys/boot/mips/beri/boot2 Makefile

Pass -N directly to ld via -Wl rather than passing it to the compiler driver.

In particular, clang doesn't accept -N.

Obtained from:        CheriBSD
Sponsored by:        DARPA / AFRL

FreeBSD — head/lib/libc/gen directory.3

directory(3): add trailing comma after e.g., missed in r318699

Submitted by:        bjk
MFC after:        2 weeks
MFC with:        r318699
Sponsored by:        Dell EMC Isilon
Delta File
+1 -1 head/lib/libc/gen/directory.3
+1 -1 1 file

FreeBSD — stable/11/sbin/geom/class/mirror gmirror.8 geom_mirror.c, stable/11/sys/geom/mirror g_mirror_ctl.c g_mirror.c

MFC r309321:
Add `gmirror create` subcommand, alike to gstripe, gconcat, etc.

It is quite specific mode of operation without storing on-disk metadata.
It can be useful in some cases in combination with some external control
tools handling mirror creation and disks hot-plug.

Sponsored by:        iXsystems, Inc.

FreeBSD — head/sys/kern kern_prot.c, head/sys/sys proc.h

Add security.bsd.see_jail_proc

Add security.bsd.see_jail_proc sysctl to hide jail processes from non-root

Reviewed by:        jamie
Approved by:        allanjude
Relnotes:        yes
Differential Revision:        https://reviews.freebsd.org/D10770
Delta File
+31 -0 head/sys/kern/kern_prot.c
+1 -0 head/sys/sys/proc.h
+32 -0 2 files

FreeBSD — head/contrib/binutils/bfd config.bfd, head/contrib/binutils/ld configure.tgt

Bring some rough support for FreeBSD S/390 to the GNU toolchain.

This is no-op and only for reference: the S/390 port seems to be elusive
in the BSDs so it is convenient to keep some trace from past efforts.
It is likely newer attempts will focus on a newer toolchain using clang

Obtained from:        Perforce depot/projects/s390

FreeBSD — head/include stdio.h, head/lib/libc/include libc_private.h

libthr: fix warnings from GCC when WARNS=6

Fix warnings about:
- redundant declarations
- a local variable shadowing a global function (dlinfo)
- an old-style function definition (with an empty parameter list)
- a variable that is possibly used uninitialized

"make tinderbox" passes this time, except for a few unrelated
kernel failures.

Reviewed by:        kib
MFC after:        3 days
Sponsored by:        Dell EMC
Differential Revision:        https://reviews.freebsd.org/D10870

FreeBSD — head/tools/build/mk OptionalObsoleteFiles.inc

Honor WITHOUT_TFTP for check-old* and delete-old* targets.

Submitted by:        philippe dot michel7 at sfr dot fr
PR:                217949
MFC after:        3 days
Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/11/release/doc/en_US.ISO8859-1/relnotes article.xml

Move the SA entry to the tcpmd5 module addition.

Submitted by:        ae
Sponsored by:        The FreeBSD Foundation

FreeBSD — stable/11/release/doc/en_US.ISO8859-1/relnotes article.xml

Document the requirement for two SA entries, following the IPSEC

Submitted by:        vangyzen
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/contrib/ipfilter/netinet ip_nat.c

Remove redundant variable declaration.

MFC after:        3 days

FreeBSD — head/sys/arm64/conf GENERIC

Add COMPAT_FREEBSD11 on arm64, the arch is almost tier-1.

Discussed with:        andrew, emaste
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -0 head/sys/arm64/conf/GENERIC
+1 -0 1 file

FreeBSD — stable/10/sys/sys proc.h, stable/11/sys/kern kern_thread.c

move p_sigqueue to the end of struct proc

In order to preserve KBI in stable branches, replace the existing
p_sigqueue slot with padding and move the expanded (as of r315949)
p_sigqueue to the end of the struct.

This is a repeat of r317529 (which concerned td_sigqueue in struct
thread) for p_sigqueue in struct proc.

Virtualbox modules (and possibly others) are affected without this fix.

Reviewed by:        kib
Differential Revision:        https://reviews.freebsd.org/D10843

FreeBSD — stable/11/sys/arm/arm pmap-v6.c, stable/11/sys/arm/include pmap-v6.h

MFC r318021,r318251:

    Introduce pmap_remap_vm_attr(), it allows to remap one VM memattr class to
    Clarify usage rules for pmap_remap_vm_attr().  Not a functional change.

FreeBSD — head/sys/mips/mips busdma_machdep.c

Remove superfluous parentheses.

MFC after:        2 weeks
Sponsored by:        DARPA, AFRL

FreeBSD — head/share/examples Makefile

Remove unneccessary call to mtree, which, when building as an unprivileged
user (with -DNO_ROOT), resulted in warnings looking like these:

        user (9, 3819, not modified: Operation not permitted)
        permissions (0755, 0700, modified)

The BSD.usr.mk is already taken care of in etc/Makefile.

Submitted by:        Alex Richardson <alr48 at cl.cam.ac.uk>
Reviewed by:        bdrewery
MFC after:        1 month
Sponsored by:        DARPA, AFRL
Differential Revision:        https://reviews.freebsd.org/D9212
Delta File
+0 -2 head/share/examples/Makefile
+0 -2 1 file

FreeBSD — head/libexec/rtld-elf rtld.c

For ld.so direct execution mode, implement -p option: search for the
binary in $PATH.

Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks
Differential revision:        https://reviews.freebsd.org/D10790
Delta File
+49 -9 head/libexec/rtld-elf/rtld.c
+49 -9 1 file

FreeBSD — head/sys/netipsec ipsec_output.c xform_ah.c

Fix possible double releasing for SA and SP references.

There are two possible ways how crypto callback are called: directly from
caller and deffered from crypto thread.

For outbound packets the direct call chain is the following:
 IPSEC_OUTPUT() method -> ipsec[46]_common_output() ->
 -> ipsec[46]_perform_request() -> xform_output() ->
 -> crypto_dispatch() -> crypto_invoke() -> crypto_done() ->
 -> xform_output_cb() -> ipsec_process_done() -> ip[6]_output().

The SA and SP references are held while crypto processing is not finished.
The error handling code wrongly expected that crypto callback always called
from the crypto thread context, and it did references releasing in
xform_output_cb(). But when the crypto callback called directly, in case of
error the error handling code in ipsec[46]_perform_request() also did
references releasing.

To fix this, remove error handling from ipsec[46]_perform_request() and do it
in xform_output() before crypto_dispatch().

MFC after:        10 days

FreeBSD — head/sys/compat/freebsd32 freebsd32_systrace_args.c freebsd32_proto.h, head/sys/kern systrace_args.c init_sysent.c