svn commit: r332854 - in head/sys/powerpc: include powerpc

2018-04-20 Thread Justin Hibbits
Author: jhibbits Date: Sat Apr 21 04:18:17 2018 New Revision: 332854 URL: https://svnweb.freebsd.org/changeset/base/332854 Log: Sync powerpc feature flags with Linux Not all feature flags are synced. Those for processors we don't currently support are ignored currently. Those that are s

svn commit: r332853 - in head/sys: conf modules/blake2 modules/crypto

2018-04-20 Thread Conrad Meyer
Author: cem Date: Sat Apr 21 02:08:56 2018 New Revision: 332853 URL: https://svnweb.freebsd.org/changeset/base/332853 Log: blake2: Disable warnings (not just error) for code we will not modify Leave libb2 pristine and silence the warnings for mjg. Modified: head/sys/conf/files head/sys

svn commit: r332852 - head/usr.bin/grep

2018-04-20 Thread Kyle Evans
Author: kevans Date: Sat Apr 21 01:42:02 2018 New Revision: 332852 URL: https://svnweb.freebsd.org/changeset/base/332852 Log: bsdgrep: if chain => switch This makes some of this a little easier to follow (in my opinion). Modified: head/usr.bin/grep/file.c Modified: head/usr.bin/grep/fil

svn commit: r332851 - head/usr.bin/grep

2018-04-20 Thread Kyle Evans
Author: kevans Date: Sat Apr 21 01:33:13 2018 New Revision: 332851 URL: https://svnweb.freebsd.org/changeset/base/332851 Log: bsdgrep: More trivial cleanup/style cleanup We can avoid branching for these easily reduced patterns Modified: head/usr.bin/grep/util.c Modified: head/usr.bin/gr

svn commit: r332850 - head/usr.bin/grep

2018-04-20 Thread Kyle Evans
Author: kevans Date: Sat Apr 21 01:02:35 2018 New Revision: 332850 URL: https://svnweb.freebsd.org/changeset/base/332850 Log: bsdgrep: Some light cleanup There's no point checking for a bunch of file modes if we're not a practicing believer of DIR_SKIP or DEV_SKIP. This also reduces

svn commit: r332849 - head/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD

2018-04-20 Thread Ed Maste
Author: emaste Date: Sat Apr 21 00:34:46 2018 New Revision: 332849 URL: https://svnweb.freebsd.org/changeset/base/332849 Log: lldb: propagate error to user if memory read fails Previously, an attempt to read an unreadable access reported zeros: (lldb) memory read -format hex -size 8 0

svn commit: r332848 - stable/11/tools/tools

2018-04-20 Thread Ed Maste
Author: emaste Date: Sat Apr 21 00:27:35 2018 New Revision: 332848 URL: https://svnweb.freebsd.org/changeset/base/332848 Log: MFC r332673: Remove mention of tools/recoverdisk, now in sbin PR: 227570 Modified: stable/11/tools/tools/README Directory Properties: stable/11/ (pr

svn commit: r332844 - in head/usr.sbin/makefs: . cd9660 ffs

2018-04-20 Thread Ed Maste
Author: emaste Date: Fri Apr 20 22:23:38 2018 New Revision: 332844 URL: https://svnweb.freebsd.org/changeset/base/332844 Log: makefs: tidy up reach-over source - cd9660 relies on an #include "iso.h" but does not build any .c files out of source, so remove reach-over .PATH - ffs does n

Re: svn commit: r332833 - in head: contrib/llvm/include/llvm/CodeGen contrib/llvm/lib/CodeGen contrib/llvm/lib/Target/X86 contrib/llvm/lib/Target/X86/Disassembler contrib/llvm/tools/clang/include/clan

2018-04-20 Thread Jonathan T. Looney
On Fri, Apr 20, 2018 at 2:20 PM, Dimitry Andric wrote: > > Author: dim > Date: Fri Apr 20 18:20:55 2018 > New Revision: 332833 > URL: https://svnweb.freebsd.org/changeset/base/332833 > > Log: > Recommit r332501, with an additional upstream fix for "Cannot lower > EFLAGS copy that lives out of

svn commit: r332843 - head/sys/dev/extres/regulator

2018-04-20 Thread Emmanuel Vadot
Author: manu Date: Fri Apr 20 20:30:33 2018 New Revision: 332843 URL: https://svnweb.freebsd.org/changeset/base/332843 Log: regulator: Check status before disabling When disabling regulator when they are unused, check before is they are enabled. While here don't check the enable_cnt on

svn commit: r332842 - stable/11/sys/netinet6

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 20:18:10 2018 New Revision: 332842 URL: https://svnweb.freebsd.org/changeset/base/332842 Log: MFC r319216: Fix an unnecessary/incorrect check in the PKTOPT_EXTHDRCPY macro. This macro allocates memory and, if malloc does not return NULL, copies data in

svn commit: r332841 - stable/11/sys/netinet6

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 20:16:42 2018 New Revision: 332841 URL: https://svnweb.freebsd.org/changeset/base/332841 Log: MFC r319215: Fix two places in the ICMP6 code where we could dereference a NULL pointer in the icmp6_input() function. When processing an ICMP6_ECHO_REQUEST,

svn commit: r332840 - in stable/11/sys: netinet netinet6

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 20:09:42 2018 New Revision: 332840 URL: https://svnweb.freebsd.org/changeset/base/332840 Log: MFC r319214: Enforce the limit on ICMP messages before doing work to formulate the response. Delete an unneeded rate limit for UDP under IPv6. Because ICMP6

svn commit: r332839 - in head/sys/gnu/dts: arm include/dt-bindings/bus include/dt-bindings/clock include/dt-bindings/gpio include/dt-bindings/input include/dt-bindings/memory include/dt-bindings/pi...

2018-04-20 Thread Emmanuel Vadot
Author: manu Date: Fri Apr 20 19:37:08 2018 New Revision: 332839 URL: https://svnweb.freebsd.org/changeset/base/332839 Log: gnu/dts: Update our copy of arm dts from Linux 4.16 Added: head/sys/gnu/dts/arm/am572x-idk-common.dtsi - copied unchanged from r332836, vendor/device-tree/dist/src

Re: svn commit: r332813 - head/sys/fs/nfsclient

2018-04-20 Thread Conrad Meyer
On Fri, Apr 20, 2018 at 4:38 AM, Rick Macklem wrote: > Author: rmacklem > Date: Fri Apr 20 11:38:29 2018 > New Revision: 332813 > URL: https://svnweb.freebsd.org/changeset/base/332813 > > Log: > Fix use of pointer after being set NULL. > > Using a pointer after setting it NULL is probably not

svn commit: r332838 - svnadmin/conf

2018-04-20 Thread Emmanuel Vadot
Author: manu Date: Fri Apr 20 18:46:06 2018 New Revision: 332838 URL: https://svnweb.freebsd.org/changeset/base/332838 Log: Don't need the limit anymore. Modified: svnadmin/conf/sizelimit.conf Modified: svnadmin/conf/sizelimit.conf

svn commit: r332837 - vendor/device-tree/4.16

2018-04-20 Thread Emmanuel Vadot
Author: manu Date: Fri Apr 20 18:45:40 2018 New Revision: 332837 URL: https://svnweb.freebsd.org/changeset/base/332837 Log: Tag our copy of Linux 4.16 dts files Added: vendor/device-tree/4.16/ - copied from r332836, vendor/device-tree/dist/ ___

svn commit: r332836 - in vendor/device-tree/dist: Bindings Bindings/arm Bindings/arm/bcm Bindings/arm/firmware Bindings/arm/marvell Bindings/arm/mediatek Bindings/arm/samsung Bindings/auxdisplay Bi...

2018-04-20 Thread Emmanuel Vadot
Author: manu Date: Fri Apr 20 18:44:52 2018 New Revision: 332836 URL: https://svnweb.freebsd.org/changeset/base/332836 Log: dts: Update our copy from files from Linux 4.16 Added: vendor/device-tree/dist/Bindings/arm/arm-dsu-pmu.txt (contents, props changed) vendor/device-tree/dist/Bindin

svn commit: r332835 - svnadmin/conf

2018-04-20 Thread Emmanuel Vadot
Author: manu Date: Fri Apr 20 18:38:36 2018 New Revision: 332835 URL: https://svnweb.freebsd.org/changeset/base/332835 Log: Raise my limit for dts import Modified: svnadmin/conf/sizelimit.conf Modified: svnadmin/conf/sizelimit.conf

svn commit: r332834 - stable/11/sys/net

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 18:37:19 2018 New Revision: 332834 URL: https://svnweb.freebsd.org/changeset/base/332834 Log: MFC r314286: Do some minimal work to better conform to the 802.3ad (LACP) standard. In particular, don't set the synchronized bit for the peer unless it truly ap

svn commit: r332833 - in head: contrib/llvm/include/llvm/CodeGen contrib/llvm/lib/CodeGen contrib/llvm/lib/Target/X86 contrib/llvm/lib/Target/X86/Disassembler contrib/llvm/tools/clang/include/clang...

2018-04-20 Thread Dimitry Andric
Author: dim Date: Fri Apr 20 18:20:55 2018 New Revision: 332833 URL: https://svnweb.freebsd.org/changeset/base/332833 Log: Recommit r332501, with an additional upstream fix for "Cannot lower EFLAGS copy that lives out of a basic block!" errors on i386. Pull in r325446 from upstream clang

svn commit: r332832 - head/usr.bin/grep

2018-04-20 Thread Kyle Evans
Author: kevans Date: Fri Apr 20 18:06:03 2018 New Revision: 332832 URL: https://svnweb.freebsd.org/changeset/base/332832 Log: bsdgrep: Break procmatches down a little bit more Split the matching and non-matching cases out into their own functions to reduce future complexity. As the name i

Re: svn commit: r332735 - head/sys/x86/x86

2018-04-20 Thread John Baldwin
I need to rework the layout of IRQ values to be more dynamic (per a thread on current@) as I've seen at least a few systems now that have more than 256 I/O APIC pins. Currently we kind of depend on interrupt_sources[] being statically sized, but I could rework this to support dynamic sizing as a r

svn commit: r332831 - stable/11/sys/kern

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 15:55:09 2018 New Revision: 332831 URL: https://svnweb.freebsd.org/changeset/base/332831 Log: MFC r314116: Fix a panic during boot caused by inadequate locking of some vt(4) driver data structures. vt_change_font() calls vtbuf_grow() to change some vt

svn commit: r332830 - in stable/11/sys: dev/acpica x86/x86

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 15:48:50 2018 New Revision: 332830 URL: https://svnweb.freebsd.org/changeset/base/332830 Log: MFC r313447: Ensure the idle thread's loop services interrupts in a timely way when using the ACPI C1/mwait sleep method. Previously, the mwait instruction wo

svn commit: r332829 - stable/11/sys/netinet

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 15:44:29 2018 New Revision: 332829 URL: https://svnweb.freebsd.org/changeset/base/332829 Log: MFC r307083: Currently, when tcp_input() receives a packet on a session that matches a TCPCB, it checks (so->so_options & SO_ACCEPTCONN) to determine whether or not

svn commit: r332828 - stable/11/sys/netinet

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 15:41:33 2018 New Revision: 332828 URL: https://svnweb.freebsd.org/changeset/base/332828 Log: MFC r306768: If the new window size is less than the old window size, skip the calculations to check if we should advertise a larger window. Modified: stable/11/s

svn commit: r332827 - stable/11/sys/amd64/amd64

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 15:35:58 2018 New Revision: 332827 URL: https://svnweb.freebsd.org/changeset/base/332827 Log: MFC r330511: We shouldn't need to execute code in the recursive page table mappings; therefore, it should be safe to set the NX bit on the PML4E for the recursiv

svn commit: r332826 - stable/11/sys/amd64/amd64

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 15:28:58 2018 New Revision: 332826 URL: https://svnweb.freebsd.org/changeset/base/332826 Log: MFC r330510: Prior to r329071, pmap_bootstrap() used pmap_kmem_choose() to round the first available virtual address to a 2MB boundary. After r329071, create_pag

svn commit: r332825 - in head: lib/libc/sys sys/compat/freebsd32 sys/kern sys/sys tests/sys/kern

2018-04-20 Thread Konstantin Belousov
Author: kib Date: Fri Apr 20 15:19:27 2018 New Revision: 332825 URL: https://svnweb.freebsd.org/changeset/base/332825 Log: Rename PROC_PDEATHSIG_SET -> PROC_PDEATHSIG_CTL and PROC_PDEATHSIG_GET -> PROC_PDEATHSIG_STATUS for consistency with other procctl(2) operations names. Requested by

svn commit: r332824 - stable/11/sys/dev/nvme

2018-04-20 Thread Warner Losh
Author: imp Date: Fri Apr 20 15:06:47 2018 New Revision: 332824 URL: https://svnweb.freebsd.org/changeset/base/332824 Log: MFC r332780,r332783: Intel drives have an optimal alignment for I/O. While they honor I/Os that cross this boundary, they perform better when this isn't the

svn commit: r332823 - stable/11/sys/amd64/amd64

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 15:05:48 2018 New Revision: 332823 URL: https://svnweb.freebsd.org/changeset/base/332823 Log: MFC r329171: Mark the pages used for the initial page-table entries as wired. This makes them consistent with the way other page-table pages are allocated. It al

svn commit: r332822 - stable/11/sys/amd64/amd64

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 14:55:13 2018 New Revision: 332822 URL: https://svnweb.freebsd.org/changeset/base/332822 Log: MFC r329071: On bootup, the amd64 pmap initialization code creates page-table mappings for the pages used for the kernel and some initial allocations used for th

svn commit: r332821 - in stable/11/sys: netinet netinet6

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 14:47:02 2018 New Revision: 332821 URL: https://svnweb.freebsd.org/changeset/base/332821 Log: MFC r331309: If the INP lock is uncontested, avoid taking a reference and jumping through the lock-switching hoops. A few of the INP lookup operations that lo

svn commit: r332820 - stable/11/sys/netinet6

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 14:34:04 2018 New Revision: 332820 URL: https://svnweb.freebsd.org/changeset/base/332820 Log: MFC r331484: Remove some unneccessary variable sets in IPv6 code, as detected by clang's static analyzer. Sponsored by: Netflix, Inc. Modified: stable/11/sys

svn commit: r332819 - stable/11/sys/netinet6

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 14:21:37 2018 New Revision: 332819 URL: https://svnweb.freebsd.org/changeset/base/332819 Log: MFC r331488: This change adds a flag to the DAD entry to indicate whether it is currently on the queue. This prevents accidentally doubly-removing a DAD entry fr

svn commit: r332818 - stable/11/sys/netinet

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 14:01:08 2018 New Revision: 332818 URL: https://svnweb.freebsd.org/changeset/base/332818 Log: MFC r331926: r330675 introduced an extra window check in the LRO code to ensure it captured and reported the highest window advertisement with the same SEQ/ACK.

svn commit: r332817 - stable/11/sys/netinet

2018-04-20 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 20 13:58:48 2018 New Revision: 332817 URL: https://svnweb.freebsd.org/changeset/base/332817 Log: MFC r332120: If a user closes the socket before we call tcp_usr_abort(), then tcp_drop() may unlock the INP. Currently, tcp_usr_abort() does not check for this

svn commit: r332816 - head/sys/kern

2018-04-20 Thread Andriy Gapon
Author: avg Date: Fri Apr 20 13:08:04 2018 New Revision: 332816 URL: https://svnweb.freebsd.org/changeset/base/332816 Log: call racct_proc_ucred_changed() under the proc lock The lock is required to ensure that the switch to the new credentials and the transfer of the process's accounting

svn commit: r332815 - stable/11/sys/pc98/cbus

2018-04-20 Thread Takahashi Yoshihiro
Author: nyan Date: Fri Apr 20 12:40:05 2018 New Revision: 332815 URL: https://svnweb.freebsd.org/changeset/base/332815 Log: - Use __FBSDID(). - Fix pc98 build. Merge from sys/dev/syscons/scterm-teken.c r330918. Modified: stable/11/sys/pc98/cbus/scterm-sck.c Modified: stable/11/sys/pc98

svn commit: r332814 - stable/11/sys/conf

2018-04-20 Thread Takahashi Yoshihiro
Author: nyan Date: Fri Apr 20 12:37:08 2018 New Revision: 332814 URL: https://svnweb.freebsd.org/changeset/base/332814 Log: MFi386: r329199 Move signal trampolines out of locore.s into separate source file. This fixes pc98 build. Modified: stable/11/sys/conf/files.pc98 Modified:

svn commit: r332813 - head/sys/fs/nfsclient

2018-04-20 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 20 11:38:29 2018 New Revision: 332813 URL: https://svnweb.freebsd.org/changeset/base/332813 Log: Fix use of pointer after being set NULL. Using a pointer after setting it NULL is probably not a good plan. Spotted by inspection during changes for Flexible Fil

svn commit: r332812 - head/sys/net

2018-04-20 Thread Andrey V. Elsukov
Author: ae Date: Fri Apr 20 09:57:31 2018 New Revision: 332812 URL: https://svnweb.freebsd.org/changeset/base/332812 Log: Add dead_bpf_if structure, that should be used as fake bpf_if during ifnet detach. Since destroying interface is not atomic operation and due to the lack of synhroni

svn commit: r332811 - stable/11/sys/netpfil/ipfw/nat64

2018-04-20 Thread Andrey V. Elsukov
Author: ae Date: Fri Apr 20 09:54:06 2018 New Revision: 332811 URL: https://svnweb.freebsd.org/changeset/base/332811 Log: MFC r332467: To avoid possible deadlock do not acquire JQUEUE_LOCK before callout_drain. Modified: stable/11/sys/netpfil/ipfw/nat64/nat64lsn.c Directory Properties:

svn commit: r332810 - stable/11/sys/netinet6

2018-04-20 Thread Andrey V. Elsukov
Author: ae Date: Fri Apr 20 09:48:42 2018 New Revision: 332810 URL: https://svnweb.freebsd.org/changeset/base/332810 Log: MFC r332475: Add check that mbuf had not multicast layer2 address. Such packets should be handled by ip6_mforward(). Modified: stable/11/sys/netinet6/ip6_fastfwd.c