Displaying 1 50 of 483,659 commits (0.025s)

PC-BSD — cddl/contrib/opensolaris/cmd/zfs zfs.8 zfs_main.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c zpool.8

Merge in all the FreeNAS / iX changes to freenas/master from svn_head,
so we can properly track "master" branch going forward. And do
cherry-picks / merges between that and stable.

PC-BSD — sys/i386/i386 exception.s

Merge branch 'svn_head' of https://github.com/freebsd/freebsd into freenas/svn_head
∈ kib - 097d356b - 2017-08-18 17:11:15
    When checking that #UD comes from kernel mode, check that the
    exception did not happen in vm86 mode.  A vm86 userland process could
    have a %cs that matches GSEL_KPL, while dtrace cannot hook it.
    
    Submitted by:        Maxime Villard <max at m00nbsd.net>
    MFC after:        3 days
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322667 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+7 -4 sys/i386/i386/exception.s
+7 -4 1 file

PC-BSD — lib/libutil kinfo_getvmmap.3

    Add caveat to kinfo_getvmmap(3) explaining high CPU utilisation.
    Based on kib's reply on 
https://lists.freebsd.org/pipermail/freebsd-hackers/2016-July/049710.html
    
    PR:                210904
    Submitted by:        Yuri Victorovich <yuri AT rawbw DOT com>
    Reviewed by:        jilles
    Approved by:        bcr (mentor)
    MFC after:        5 days
    Differential Revision:        https://reviews.freebsd.org/D12004
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322665 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+8 -1 lib/libutil/kinfo_getvmmap.3
+8 -1 1 file

PC-BSD — sys/cam cam_iosched.c

    cam iosched: fix typos in comments
    
    PR:                220947
    Submitted by:        Fabian Keil
    Obtained from:        ElectroBSD
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322664 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+11 -11 sys/cam/cam_iosched.c
+11 -11 1 file

PC-BSD — share/man/man4 pfsync.4

    Correct multicast address used in pfsync(4)
    As stated in src/sys/netinet/in.h L395, address used is 224.0.0.240.
    
    PR:                216885
    Submitted by:        Matthias Ordner <matthias.ordner AT noris DOT net>
    Reviewed by:        kp
    Approved by:        bcr (mentor)
    MFC after:        5 days
    Differential Revision:        https://reviews.freebsd.org/D12011
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322663 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+2 -2 share/man/man4/pfsync.4
+2 -2 1 file

PC-BSD — sys/dev/syscons scterm-teken.c, sys/dev/vt vt_core.c

    Fix syscons escape sequence for setting the local cursor type.  This sequence
    was aliased to a vt sequence, causing and fixing various bugs.
    
    For syscons, this restores support for arg 2 which sets blinking block
    too forcefully, and restores bugs for arg 0 and 1.  Arg 2 is used for
    vs in the cons25 entry in termcap, but I've never noticed an application
    that uses this.  The bugs involve replacing local settings by global
    ones and need better handling of defaults to fix.
    
    For vt, this requires moving the aliasing code from teken to vt where
    it belongs.  This sequences is very important for cons25 compatibility
    in vt since it is used by the cons25 termcap entries for ve, vi and
    vs.  vt can't properly support vs for either cons25 or xterm since it
    doesn't support blinking.  For xterm, the termcap entry for vs asks
    for something different using 12;25h instead of 25h.
    
    Rename C25CURS for this to C25LCT and change its description to be closer
    to echoing the old comment about it.  CURS is too generic.
    
    Fix missing syscons escape sequence for setting the global cursor shape
    (and type).  Only support this in syscons since vt can't emulate anything
    in it.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322662 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/amd64/sgx sgx.c

    Fix module unload when SGX support is not present in CPU.
    
    Sponsored by:        DARPA, AFRL
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322660 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+6 -3 sys/amd64/sgx/sgx.c
+6 -3 1 file

PC-BSD — sys/conf files

    Fix cut and paste typo that prevented T5 firmware to be compiled in.
    
    Reviewed by:        np
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322659 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -1 sys/conf/files
+1 -1 1 file

PC-BSD — contrib/mdocml lib.in

    typo
    
    PR:                211160
    Submitted by:        Dan Robertson <dan.robertson AT anidata DOT org>
    Reviewed by:        oshogbo
    MFC after:        7 days
    Differential Revision:        https://reviews.freebsd.org/D12005
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322657 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -1 contrib/mdocml/lib.in
+1 -1 1 file

PC-BSD — sys/teken sequences teken_subr_compat.h

    Improve names for cons25 sequences.
    
    In a recent commit, I forgot to expand an X to an abbreviation of "BORDER".
    Fix this and some nearby bad names.
    
    The descriptions were copied from comments in scterm-sc.c, but some
    of these are bad.  The border [color] was inconsistently described as
    a property of the "display", but I had changed this to "adapter" to
    match the descriptions for other color settings.  All colors supported
    by the cons25 sequences are actually properties of the current vty and
    that should not be described.  But the other colors are defaults.
    Change "adapter" to "default" for them and remove "adapter" for the
    border.  Reduce the verbosity of the abbreviation from AD to D.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322656 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/dev/syscons scterm-teken.c

    Fix vt100 escape sequence for showing and hiding the cursor in syscons.
    It should toggle between 2 states, but it used a cut-down version of
    support for a related 3-state syscons escape sequence and inherited
    bugs from that.  The usual misbehaviour was that hiding and showing
    the cursor reset it to a global default.
    
    Support for the 3-state sequence remains broken by aliasing to the 2-state
    sequence.  This works better but incompatibly for the 2 cases that it
    supports.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322655 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+6 -7 sys/dev/syscons/scterm-teken.c
+6 -7 1 file

PC-BSD — contrib/zstd/examples multiple_streaming_compression.c dictionary_compression.c

    Remove example from zstd sources, their license does not allow redistribution
    
    Reported by:        joerg at NetBSD
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322654 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/dev/syscons scterm-teken.c, sys/teken teken_subr_compat.h sequences

    Fix missing syscons escape sequence for setting the border color.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322651 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/dev/safe safe.c

    safe: quiet -Wtautological-compare
    
    Code was testing that an unsigned type was >= 0.
    
    Reviewed by:        markj
    Approved by:        markj (mentor)
    Sponsored by:        Dell EMC Isilon
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322650 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+2 -6 sys/dev/safe/safe.c
+2 -6 1 file

PC-BSD — usr.bin/calendar/calendars calendar.freebsd

    Clarify the fact that Andrey (ache) passed away in Moscow
    
    Take care friend <3.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322649 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/netinet tcp_usrreq.c

    Ensure inp_vflag is consistently set for TCP endpoints.
    
    Make sure that the flags INP_IPV4 and INP_IPV6 are consistently set
    for inpcbs used for TCP sockets, no matter if the setting is derived
    from the net.inet6.ip6.v6only sysctl or the IPV6_V6ONLY socket option.
    For UDP this was already done right.
    
    PR:                221385
    MFC after:        1 week
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322648 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+2 -0 sys/netinet/tcp_usrreq.c
+2 -0 1 file

PC-BSD — sys/kern kern_shutdown.c

    Remove some unneeded subroutines for padding writes to dump devices.
    
    Right now we only need to pad when writing kernel dump headers, so
    flatten three related subroutines into one. The encrypted kernel dump
    code already writes out its key in a dumper.blocksize-sized block.
    
    No functional change intended.
    
    Reviewed by:        cem, def
    Sponsored by:        Dell EMC Isilon
    Differential Revision:        https://reviews.freebsd.org/D11647
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322646 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+13 -39 sys/kern/kern_shutdown.c
+13 -39 1 file

PC-BSD — sys/amd64/amd64 minidump_machdep.c, sys/arm/arm minidump_machdep.c

    Rename mkdumpheader() and group EKCD functions in kern_shutdown.c.
    
    This helps simplify the code in kern_shutdown.c and reduces the number
    of globally visible functions.
    
    No functional change intended.
    
    Reviewed by:        cem, def
    Sponsored by:        Dell EMC Isilon
    Differential Revision:        https://reviews.freebsd.org/D11603
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322645 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/amd64/amd64 minidump_machdep.c, sys/arm/arm minidump_machdep.c

    Factor out duplicated kernel dump code into dump_{start,finish}().
    
    dump_start() and dump_finish() are responsible for writing kernel dump
    headers, optionally writing the key when encryption is enabled, and
    initializing the initial offset into the dump device.
    
    Also remove the unused dump_pad(), and make some functions static now that
    they're only called from kern_shutdown.c.
    
    No functional change intended.
    
    Reviewed by:        cem, def
    Sponsored by:        Dell EMC Isilon
    Differential Revision:        https://reviews.freebsd.org/D11584
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322644 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/kern subr_sbuf.c

    An off-by-one error exists in sbuf_vprintf()'s use of SBUF_HASROOM() when an
    sbuf is filled to capacity by vsnprintf(), the loop exits without error, and
    the sbuf is not marked as auto-extendable.
    
    SBUF_HASROOM() evaluates true if there is room for one or more non-NULL
    characters, but in the case that the sbuf was filled exactly to capacity,
    SBUF_HASROOM() evaluates false. Consequently, sbuf_vprintf() incorrectly
    assigns an ENOMEM error to the sbuf when in fact everything is fine, in turn
    poisoning the buffer for all subsequent operations.
    
    Correct by moving the ENOMEM assignment into the loop where it can be made
    unambiguously.
    
    As a related safety net change, explicitly check for the zero bytes drained
    case in sbuf_drain() and set EDEADLK as the error. This avoids an infinite loop
    in sbuf_vprintf() if a drain function were to inadvertently return a value of
    zero to sbuf_drain().
    
    Reviewed by:        cem, jtl, gallatin
    MFC after:        2 weeks
    Sponsored by:        Netflix, Inc.
    Differential Revision:        https://reviews.freebsd.org/D8535
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322643 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+5 -7 sys/kern/subr_sbuf.c
+5 -7 1 file

PC-BSD — usr.bin/calendar/calendars calendar.freebsd

    Goodbye, ache.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322638 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — usr.sbin/bootparamd/bootparamd bootparamd.c

    Don't leak bpf on early return when YP isn't defined (NIS support)
    
    MFC after:        1 week
    Reported by:        cppcheck
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322636 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — usr.sbin/bootparamd/callbootd callbootd.c

    Fix WARNS
    
    - Remove ad hoc inet_ntoa prototype declaration; it's already handled
      by the included headers.
    - De-K&Rify the function prototypes for eachres_whoami(..),
      eachres_getfile(..), and main(..).
    
    MFC after:        1 week
    PR:                71667
    Tested with:        clang (5.0), gcc (4.2.1, 5)
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322635 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — usr.sbin/vidcontrol vidcontrol.c

    I misplaced a newline in the previous commit.  Fix this, and move line
    breaks in the vt case to the same places that the man(1) puts then in
    the SYNOPSIS.  This was already done for the syscons case.  Man pages
    can't depend on the driver, and the SYNOPSIS is hard-coded for syscons
    except for -f where it is hard-coded for vt.  The usage message reverses
    this for sc.  The only other differences are whitespace and removing
    -[dL] and -l for vt.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322634 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+6 -5 usr.sbin/vidcontrol/vidcontrol.c
+6 -5 1 file

PC-BSD — . Makefile.libcompat

    Honor NO_RTLD for rtld-elf, similar to what's done in libexec/Makefile, with
    libexec/rtld-elf/... for MK_{LIB32,LIBSOFT}.
    
    MFC after:        1 week
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322633 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+2 -2 Makefile.libcompat
+2 -2 1 file

PC-BSD — usr.bin/grep util.c

Merge pull request #33 from freenas/sef-scrub-pause-resume

Add scrub pause & resume
∈ Kris Moore - 16fe5505 - 2017-08-17 16:36:15
Merge branch 'svn_head' of https://github.com/freebsd/freebsd into freenas/svn_head
∈ kevans - 79b67260 - 2017-08-17 13:40:45
    bsdgrep: cast pmatch.rm_so to fix build when linking against libgnuregex
    
    Reported by:        many
    Approved by:        emaste (mentor)
    MFC after:        immediate
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322618 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -1 usr.bin/grep/util.c
+1 -1 1 file

PC-BSD — usr.bin/grep util.c

Merge branch 'svn_head' of https://github.com/freebsd/freebsd into freenas/svn_head
∈ kevans - 79b67260 - 2017-08-17 13:40:45
    bsdgrep: cast pmatch.rm_so to fix build when linking against libgnuregex
    
    Reported by:        many
    Approved by:        emaste (mentor)
    MFC after:        immediate
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322618 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -1 usr.bin/grep/util.c
+1 -1 1 file

PC-BSD — share/man/man9 sbuf.9, sys/kern subr_sbuf.c

    Implement simple record boundary tracking in sbuf(9) to avoid record splitting
    during drain operations. When an sbuf is configured to use this feature by way
    of the SBUF_DRAINTOEOR sbuf_new() flag, top-level sections started with
    sbuf_start_section() create a record boundary marker that is used to avoid
    flushing partial records.
    
    Reviewed by:        cem,imp,wblock
    MFC after:        2 weeks
    Sponsored by:        Netflix, Inc.
    Differential Revision:        https://reviews.freebsd.org/D8536
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322614 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+10 -2 sys/kern/subr_sbuf.c
+9 -1 share/man/man9/sbuf.9
+2 -0 sys/sys/sbuf.h
+21 -3 3 files

PC-BSD — bin/pkill pkill.c

    The r322210 change to pgrep's PID delimiting behaviour causes pgrep's default
    output to not include a trailing new line, which is a potential POLA violation
    for existing consumers. Change pgrep to always emit a trailing new line on
    completion of its output, regardless of the delimeter in use (which technically
    is also a potential POLA violation for existing consumers that rely on the
    pre-r322210 buggy behaviour, but a line has to be drawn somewhere).
    
    PR:        221534
    Submitted by:        kdrakehp zoho com
    Reported by:        kdrakehp zoho com
    MFC after:        1 week
    X-MFC-with:        r322210
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322613 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+2 -0 bin/pkill/pkill.c
+2 -0 1 file

PC-BSD — sys/x86/x86 intr_machdep.c

    Fix unused varable warning in !SMP case
    
    Fallout from r322588.  I'm not sure why !SMP is a knob we have, but, we have
    it.
    
    Reported by:        Michael Butler <imb AT protected-networks.net>
    Sponsored by:        Dell EMC Isilon
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322611 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+2 -0 sys/x86/x86/intr_machdep.c
+2 -0 1 file

PC-BSD — sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys abd.h

    Mark ZFS ABD inline functions static.
    
    When built with -fno-inline-functions zfs.ko contains undefined references
    to these functions if they are only marked inline.
    
    Reviewed by:        avg (earlier version)
    MFC after:        1 week
    Sponsored by:        Chelsio Communications
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322601 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/crypto/aesni aesni_ghash.c aesni_wrap.c

    aesni: quiet -Wcast-qual
    
    Reviewed by:        delphij
    Approved by:        markj (mentor)
    Sponsored by:        Dell EMC Isilon
    Differential Revision:        https://reviews.freebsd.org/D12021
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322600 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/sys taskqueue.h kernel.h

    Add SI_SUB_TASKQ after SI_SUB_INTR and move taskqueue initialization there for 
EARLY_AP_STARTUP
    
    This fixes a regression accidentally introduced in r322588, due to an
    interaction with EARLY_AP_STARTUP.
    
    Reviewed by:        bdrewery@, jhb@
    Sponsored by:        Dell EMC Isilon
    Differential Revision:        https://reviews.freebsd.org/D12053
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322596 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+2 -2 sys/sys/taskqueue.h
+1 -0 sys/sys/kernel.h
+3 -2 2 files

PC-BSD — sys/boot/efi/include efi.h

    Define proposed GUID for FreeBSD boot loader variables.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322593 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+6 -0 sys/boot/efi/include/efi.h
+6 -0 1 file

PC-BSD — sys/boot/efi/include efi.h

    Remove unused defines.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322592 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+0 -6 sys/boot/efi/include/efi.h
+0 -6 1 file

PC-BSD — sys/net bpf.c

    bpf: Fix incorrect cleanup
    
    Cleaning up a bpf_if is a two stage process. We first move it to the
    bpf_freelist (in bpfdetach()) and only later do we actually free it (in
    bpf_ifdetach()).
    
    We cannot set the ifp->if_bpf to NULL from bpf_ifdetach() because it's
    possible that the ifnet has already gone away, or that it has been assigned
    a new bpf_if.
    This can lead to a struct ifnet which is up, but has if_bpf set to NULL,
    which will panic when we try to send the next packet.
    
    Keep track of the pointer to the bpf_if (because it's not always
    ifp->if_bpf), and NULL it immediately in bpfdetach().
    
    PR:                213896
    MFC after:        2 weeks
    Differential Revision:        https://reviews.freebsd.org/D11782
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322590 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+3 -7 sys/net/bpf.c
+3 -7 1 file

PC-BSD — lib/libc/i386 Makefile.inc

    force use of ld.bfd for linking i386 libc, even when using lld
    
    lld can successfully link most of a working i386 userland and kernel,
    but produces a broken libc. For now if we're otherwise using lld, and
    ld.bfd is available, explicitly use it for libc.
    
    Sponsored by:        The FreeBSD Foundation
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322589 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+10 -0 lib/libc/i386/Makefile.inc
+10 -0 1 file

PC-BSD — sys/amd64/include intr_machdep.h, sys/i386/include intr_machdep.h

    x86: Add dynamic interrupt rebalancing
    
    Add an option to dynamically rebalance interrupts across cores
    (hw.intrbalance); off by default.
    
    The goal is to minimize preemption. By placing interrupt sources on distinct
    CPUs, ithreads get preferentially scheduled on distinct CPUs.  Overall
    preemption is reduced and latency is reduced. In our workflow it reduced
    "fighting" between two high-frequency interrupt sources.  Reduced latency
    was proven by, e.g., SPEC2008.
    
    Submitted by:        jeff@ (earlier version)
    Reviewed by:        kib@
    Sponsored by:        Dell EMC Isilon
    Differential Revision:        https://reviews.freebsd.org/D10435
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322588 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — . Makefile, share/mk bsd.crunchgen.mk

    Quote ${MAKE} when passing in env in case it contains spaces.
    
    Downstream we are wrapping MAKE with a limits(1) call which
    interferes with these non-quoted cases.
    
    Sponsored by:        Dell EMC Isilon
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322585 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — tools/build/mk OptionalObsoleteFiles.inc

    remove debug files in delete-old* when WITHOUT_DEBUG_FILES
    
    Reported by:        brd
    Reviewed by:        bdrewery, brd
    MFC after:        2 weeks
    Sponsored by:        The FreeBSD Foundation
    Differential Revision:        https://reviews.freebsd.org/D12044
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322581 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/kern subr_intr.c

    Fix compile error with option DEBUG.  This is fallout from some long-ago
    INTRNG refactoring that didn't get caught at the time because code in a
    debugf() statement isn't compiled unless DEBUG is defined.
    
    PR:                221557
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322580 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+2 -2 sys/kern/subr_intr.c
+2 -2 1 file

PC-BSD — usr.sbin/vidcontrol vidcontrol.c

    Fix setting of the border color.  Teken doesn't support syscons' escape
    sequence "ESC [ %d A" for this although that was used here.  I will fix
    teken later, but use the more portable ioctl KDSBORDER here.
    
    The ioctl is also much easier to use if you check that it works.  For
    -b, check it and complain and exit if it failed, so that it is more
    obvious that that vt doesn't support border colors.  Don't check it
    when restoring the border color in revert(), since revert() is used
    on vt for handling other errors.
    
    Fix nearby error handling and style.  For the error of an invalid
    color, revert() and print a specific error message using err() instead
    of not revert()ing and printing spam using usage().
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322579 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+9 -5 usr.sbin/vidcontrol/vidcontrol.c
+9 -5 1 file

PC-BSD — sys/amd64/sgx sgx.c

    Rename macro DEBUG to SGX_DEBUG.
    
    This fixes LINT kernel build.
    
    Reported by:        lwhsu
    Sponsored by:        DARPA, AFRL
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322578 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+3 -3 sys/amd64/sgx/sgx.c
+3 -3 1 file

PC-BSD — sys/dev/syscons syscons.c, sys/sys consio.h

    Undeprecate the CONS_CURSORTYPE ioctl.  It was "deprecated" in 2001,
    but it was actually extended then and it is still used (just once) in
    /usr/src by its primary user (vidcontrol), while its replacement is
    still not used in /usr/src.
    
    yokota became inactive soon after deprecating CONS_CURSORTYPE (this
    was part of a large change to make cursor attributes per-vty).
    
    vidcontrol has incomplete support even for the old ioctl.  I will
    update it soon.  Then there are many broken escape sequences to fix.
    This is just to prepare for setting cursor colors using vidcontrol.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322575 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+8 -4 sys/sys/consio.h
+1 -1 sys/dev/syscons/syscons.c
+9 -5 2 files

PC-BSD — sys/amd64/include sgxreg.h cpufunc.h, sys/amd64/sgx sgx.c sgx_linux.c

    Add support for Intel Software Guard Extensions (Intel SGX).
    
    Intel SGX allows to manage isolated compartments "Enclaves" in user VA
    space. Enclaves memory is part of processor reserved memory (PRM) and
    always encrypted. This allows to protect user application code and data
    from upper privilege levels including OS kernel.
    
    This includes SGX driver and optional linux ioctl compatibility layer.
    Intel SGX SDK for FreeBSD is also available.
    
    Note this requires support from hardware (available since late Intel
    Skylake CPUs).
    
    Many thanks to Robert Watson for support and Konstantin Belousov
    for code review.
    
    Project wiki: https://wiki.freebsd.org/Intel_SGX.
    
    Reviewed by:        kib
    Relnotes:        yes
    Sponsored by:        DARPA, AFRL
    Differential Revision:        https://reviews.freebsd.org/D11113
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322574 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/vm vm_object.c vm_object.h

    Add OBJ_PG_DTOR flag to VM object.
    
    Setting this flag allows us to skip pages removal from VM object queue
    during object termination and to leave that for cdev_pg_dtor function.
    
    Move pages removal code to separate function vm_object_terminate_pages()
    as comments does not survive indentation.
    
    This will be required for Intel SGX support where we will have to remove
    pages from VM object manually.
    
    Reviewed by:        kib, alc
    Sponsored by:        DARPA, AFRL
    Differential Revision:        https://reviews.freebsd.org/D11688
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322571 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+50 -36 sys/vm/vm_object.c
+1 -0 sys/vm/vm_object.h
+51 -36 2 files

PC-BSD — sys/compat/linuxkpi/common/include/linux device.h

    Add device resource management fields to struct device.
    
    MFC after:        1 week
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322567 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — share/mk bsd.lib.mk

    Use -S for library installations except for -DNO_ROOT builds.
    
    Also disable this if NO_SAFE_LIBINSTALL is defined.
    
    There is little harm in always using -S and it fixes several issues:
    - A race during 'make libraries' where, for example, libgcc_s is being
      installed while another library is trying to link against it.  This is
      possible because libgcc_s is connected in both _prereq_libs and
      _startup_libs.  The first build (_prereq_libs) sets MK_PROFILE=no
      while the 2nd pass (_startup_libs) enables MK_PROFILE.  Thus the
      libgcc_s library *is* present in WORLDTMP for other libraries to
      link to, so serializing further items in _startup_libs is not
      required.  Just ensuring that libgcc_s is installed atomically (via
      rename(2)) is enough. [1]
    - Installation to a running system where some library that cannot be
      detected, copied and used from the temporary INSTALLTMP with LD_LIBRARY_PATH
      that the build itself uses for installation.  Such an example is having the
      install an NSS module for user lookups that install(1) uses while
      concurrently installing the module in another process.  This is not
      a problem for the FreeBSD base build but can be for downstream
      vendors.  While this is a very specific case, installation to a
      running system with non-atomic library installation is prone to many
      problems.  A further step still is to install in proper dependency
      ordering.
    

    [7 lines not shown]
Delta File
+5 -0 share/mk/bsd.lib.mk
+5 -0 1 file

PC-BSD — etc/periodic/daily Makefile, etc/rc.d Makefile

    Unconditionally install rwhod support scripts.
    
    r322277 moved rwho* and ruptime out of the MK_RCMDS conditional including
    updating the obsolete files entries to not remove these scripts due to
    WITHOUT_RCMDS=yes.  However, the initial installation was still conditional
    on MK_RCMDS, so new installs did not include these scripts and upgrades via
    mergemaster or etcupdate removed them.
    
    PR:                220953
    MFC after:        1 month
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322552 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -8 etc/periodic/daily/Makefile
+1 -6 etc/rc.d/Makefile
+2 -14 2 files

PC-BSD — sbin/route route.8

    Typo, the '-6' option selects inet6.
    
    Sponsored by:        The FreeBSD Foundation
    MFC after:        3 days
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 322550 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -1 sbin/route/route.8
+1 -1 1 file