svn commit: r352866 - in stable: 10/sys/contrib/ipfilter/netinet 11/sys/contrib/ipfilter/netinet 12/sys/contrib/ipfilter/netinet

2019-09-28 Thread Cy Schubert
Author: cy Date: Sun Sep 29 03:41:15 2019 New Revision: 352866 URL: https://svnweb.freebsd.org/changeset/base/352866 Log: MFC r352737: ipf mistakenly regards UDP packets with a checksum of 0x as bad. Obtained from:NetBSD fil.c r1.30, NetBSD PR/54443 Modified:

svn commit: r352866 - in stable: 10/sys/contrib/ipfilter/netinet 11/sys/contrib/ipfilter/netinet 12/sys/contrib/ipfilter/netinet

2019-09-28 Thread Cy Schubert
Author: cy Date: Sun Sep 29 03:41:15 2019 New Revision: 352866 URL: https://svnweb.freebsd.org/changeset/base/352866 Log: MFC r352737: ipf mistakenly regards UDP packets with a checksum of 0x as bad. Obtained from:NetBSD fil.c r1.30, NetBSD PR/54443 Modified:

svn commit: r352866 - in stable: 10/sys/contrib/ipfilter/netinet 11/sys/contrib/ipfilter/netinet 12/sys/contrib/ipfilter/netinet

2019-09-28 Thread Cy Schubert
Author: cy Date: Sun Sep 29 03:41:15 2019 New Revision: 352866 URL: https://svnweb.freebsd.org/changeset/base/352866 Log: MFC r352737: ipf mistakenly regards UDP packets with a checksum of 0x as bad. Obtained from:NetBSD fil.c r1.30, NetBSD PR/54443 Modified:

svn commit: r352865 - in stable: 11 11/contrib/ntp/ntpd 11/etc 11/usr.sbin/ntp 12 12/contrib/ntp/ntpd 12/usr.sbin/ntp 12/usr.sbin/ntp/ntpd

2019-09-28 Thread Cy Schubert
Author: cy Date: Sun Sep 29 03:36:50 2019 New Revision: 352865 URL: https://svnweb.freebsd.org/changeset/base/352865 Log: MFC r352304, r352540 r352304: No longer mlock() ntpd pages by default in memory thus allowing its pages to page as necessary. To restore historic BSD behaviour

svn commit: r352865 - in stable: 11 11/contrib/ntp/ntpd 11/etc 11/usr.sbin/ntp 12 12/contrib/ntp/ntpd 12/usr.sbin/ntp 12/usr.sbin/ntp/ntpd

2019-09-28 Thread Cy Schubert
Author: cy Date: Sun Sep 29 03:36:50 2019 New Revision: 352865 URL: https://svnweb.freebsd.org/changeset/base/352865 Log: MFC r352304, r352540 r352304: No longer mlock() ntpd pages by default in memory thus allowing its pages to page as necessary. To restore historic BSD behaviour

svn commit: r352864 - head/sys/sys

2019-09-28 Thread Kyle Evans
Author: kevans Date: Sun Sep 29 03:26:29 2019 New Revision: 352864 URL: https://svnweb.freebsd.org/changeset/base/352864 Log: MFD_*: swap ordering This API is still young enough that I would expect no one to be dependant on this yet... Swap the ordering while it's young to match Linux

svn commit: r352863 - head/sys/dev/fdt

2019-09-28 Thread Kyle Evans
Author: kevans Date: Sun Sep 29 03:12:35 2019 New Revision: 352863 URL: https://svnweb.freebsd.org/changeset/base/352863 Log: fdt_slicer: bump to SI_ORDER_THIRD following r347183 r347183 bumped GEOM classes to SI_ORDER_SECOND to resolve a race between them and the initialization of

svn commit: r352862 - stable/11/sys/dev/uart

2019-09-28 Thread Alexander Motin
Author: mav Date: Sun Sep 29 02:56:23 2019 New Revision: 352862 URL: https://svnweb.freebsd.org/changeset/base/352862 Log: MFC r352369: Relax TX draining in ns8250_bus_transmit(). Since TX interrupt is generated when THRE is set, wait for TEMT set means wait for full character

svn commit: r352861 - stable/12/sys/dev/uart

2019-09-28 Thread Alexander Motin
Author: mav Date: Sun Sep 29 02:55:57 2019 New Revision: 352861 URL: https://svnweb.freebsd.org/changeset/base/352861 Log: MFC r352369: Relax TX draining in ns8250_bus_transmit(). Since TX interrupt is generated when THRE is set, wait for TEMT set means wait for full character

svn commit: r352860 - in head/sys/gnu/dts: arm arm64/allwinner arm64/altera arm64/amlogic arm64/arm arm64/broadcom/stingray arm64/exynos arm64/freescale arm64/hisilicon arm64/marvell arm64/mediatek...

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 23:08:19 2019 New Revision: 352860 URL: https://svnweb.freebsd.org/changeset/base/352860 Log: Import DTS files from Linux 5.3 Added: - copied unchanged from r352856, vendor/device-tree/dist/src/arm/am335x-regor-rdk.dts - copied unchanged from r352856,

svn commit: r352859 - head/sys/arm/allwinner

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 23:01:23 2019 New Revision: 352859 URL: https://svnweb.freebsd.org/changeset/base/352859 Log: arm: allwinner: Add pll_mipi to the files Modified: head/sys/arm/allwinner/files.allwinner Modified: head/sys/arm/allwinner/files.allwinner

svn commit: r352858 - in head/sys/gnu/dts: arm arm64/allwinner arm64/altera arm64/amlogic arm64/apm arm64/arm arm64/bitmain arm64/broadcom arm64/cavium arm64/exynos arm64/freescale arm64/hisilicon ...

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:54:56 2019 New Revision: 352858 URL: https://svnweb.freebsd.org/changeset/base/352858 Log: Import DTS files from Linux 5.2 Added: - copied unchanged from r352854, vendor/device-tree/dist/src/arm/am5718.dtsi - copied unchanged from r352854,

svn commit: r352856 - in vendor/device-tree/dist: . Bindings Bindings/arm Bindings/arm/amlogic Bindings/arm/freescale Bindings/arm/mediatek Bindings/arm/nxp Bindings/arm/omap Bindings/arm/socionext...

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:38:14 2019 New Revision: 352856 URL: https://svnweb.freebsd.org/changeset/base/352856 Log: Import DTS files from Linux 5.3 Added: vendor/device-tree/dist/Bindings/arm/al,alpine.yaml vendor/device-tree/dist/Bindings/arm/amlogic.yaml

svn commit: r352857 - vendor/device-tree/5.3

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:38:47 2019 New Revision: 352857 URL: https://svnweb.freebsd.org/changeset/base/352857 Log: tag import of DTS files from Linux 5.3 Added: vendor/device-tree/5.3/ - copied from r352856, vendor/device-tree/dist/

svn commit: r352855 - vendor/device-tree/5.2

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:36:08 2019 New Revision: 352855 URL: https://svnweb.freebsd.org/changeset/base/352855 Log: tag import of 5.2 DTS files Added: vendor/device-tree/5.2/ - copied from r352854, vendor/device-tree/dist/ ___

svn commit: r352854 - in vendor/device-tree/dist: . Bindings Bindings/arm Bindings/arm/altera Bindings/arm/freescale Bindings/arm/keystone Bindings/arm/mediatek Bindings/arm/omap Bindings/arm/stm32...

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:35:29 2019 New Revision: 352854 URL: https://svnweb.freebsd.org/changeset/base/352854 Log: Import DTS from Linux 5.2 Added: vendor/device-tree/dist/.gitignore vendor/device-tree/dist/Bindings/arm/intel-ixp4xx.yaml

svn commit: r352853 - in head/sys: arm64/conf arm64/rockchip conf

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:25:21 2019 New Revision: 352853 URL: https://svnweb.freebsd.org/changeset/base/352853 Log: arm64: rockchip: Add usb2phy driver This driver is for the usb phy present on rockchip SoC. It only support RK3399 and host mode for now. The driver expose the

svn commit: r352852 - head/sys/dev/dwc

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:23:21 2019 New Revision: 352852 URL: https://svnweb.freebsd.org/changeset/base/352852 Log: dwc: Add more delay for chip reset On rockchip board it seems that the value in the DTS are not enough for reseting the chip, I don't know if the value are really

svn commit: r352851 - head/sys/arm64/rockchip

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:21:16 2019 New Revision: 352851 URL: https://svnweb.freebsd.org/changeset/base/352851 Log: arm64: rockchip: Fix map_gpio The map_gpio function wasn't correct, the first element is the pin and not the phandle. Modified: head/sys/arm64/rockchip/rk_gpio.c

svn commit: r352850 - head/sys/arm64/rockchip/clk

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:19:52 2019 New Revision: 352850 URL: https://svnweb.freebsd.org/changeset/base/352850 Log: arm64: rockchip: Implement resets Module resets where not implemented when rockchip clocks were commited. Implement them. Since all resets registers are

svn commit: r352849 - head/sys/arm64/rockchip/clk

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:17:26 2019 New Revision: 352849 URL: https://svnweb.freebsd.org/changeset/base/352849 Log: arm64: rockchip: rk3399: Add usb2 clocks Modified: head/sys/arm64/rockchip/clk/rk3399_cru.c Modified: head/sys/arm64/rockchip/clk/rk3399_cru.c

svn commit: r352848 - in head/sys: arm/allwinner/clkng conf

2019-09-28 Thread Emmanuel Vadot
Author: manu Date: Sat Sep 28 22:14:33 2019 New Revision: 352848 URL: https://svnweb.freebsd.org/changeset/base/352848 Log: arm64: allwinner: a64: Add PLL_MIPI PLL_MIPI is the last important PLL that we missed. Add support for it. Since it's one of the possible parent for TCON0 also

svn commit: r352847 - head/sys/arm64/arm64

2019-09-28 Thread Alan Cox
Author: alc Date: Sat Sep 28 17:16:03 2019 New Revision: 352847 URL: https://svnweb.freebsd.org/changeset/base/352847 Log: Eliminate redundant calls to critical_enter() and critical_exit() from pmap_update_entry(). It suffices that interrupts are blocked. Reviewed by: andrew, markj

svn commit: r352846 - head/lib/libc/sys

2019-09-28 Thread Warner Losh
Author: imp Date: Sat Sep 28 17:15:48 2019 New Revision: 352846 URL: https://svnweb.freebsd.org/changeset/base/352846 Log: Revert the mode_t -> int changes and add a warning in the BUGS section instead. While FreeBSD's implementation of these expect an int inside of libc, that's an

Re: svn commit: r352838 - head/share/man/man3

2019-09-28 Thread Ian Lepore
On Sat, 2019-09-28 at 09:37 +, Edward Tomasz Napierala wrote: > Author: trasz > Date: Sat Sep 28 09:37:05 2019 > New Revision: 352838 > URL: https://svnweb.freebsd.org/changeset/base/352838 > > Log: > Sort MLINKS for arb(3), and actually make them work by fixing a '=' > vs '+=' > mixup. >

svn commit: r352845 - head

2019-09-28 Thread John Baldwin
Author: jhb Date: Sat Sep 28 14:20:28 2019 New Revision: 352845 URL: https://svnweb.freebsd.org/changeset/base/352845 Log: Disable build of LOCAL_MODULES for cross-builds by default. WITHOUT_LOCAL_MODULES can be set to disable LOCAL_MODULES for native builds. WITH_LOCAL_MODULES can be

svn commit: r352844 - head/sys/conf

2019-09-28 Thread John Baldwin
Author: jhb Date: Sat Sep 28 14:14:42 2019 New Revision: 352844 URL: https://svnweb.freebsd.org/changeset/base/352844 Log: Disable REPRODUCIBLE_BUILD for kernel builds. The REPRODUCIBLE_BUILD option is actually managed in two separate files. src.opts.mk governs the setting for world

svn commit: r352843 - head/sys/netinet

2019-09-28 Thread Michael Tuexen
Author: tuexen Date: Sat Sep 28 13:13:23 2019 New Revision: 352843 URL: https://svnweb.freebsd.org/changeset/base/352843 Log: Replacing MD5 by SipHash improves the performance of the TCP time stamp initialisation, which is important when the host is dealing with a SYN flood. This affects

svn commit: r352842 - head/sys/netinet/tcp_stacks

2019-09-28 Thread Michael Tuexen
Author: tuexen Date: Sat Sep 28 13:05:37 2019 New Revision: 352842 URL: https://svnweb.freebsd.org/changeset/base/352842 Log: Ensure that the INP lock is released before leaving [gs]etsockopt() for RACK specific socket options. These issues were found by a syzkaller instance. Reviewed by:

svn commit: r352841 - head/usr.sbin/bhyve

2019-09-28 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Sep 28 12:02:43 2019 New Revision: 352841 URL: https://svnweb.freebsd.org/changeset/base/352841 Log: bhyve: support for enabling/disabling the net backend Extend the net backend interface with two functions, namely netbe_rx_disable() and netbe_rx_enable(),

svn commit: r352840 - head/sys/sys

2019-09-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 28 09:54:03 2019 New Revision: 352840 URL: https://svnweb.freebsd.org/changeset/base/352840 Log: Fix Q_TOSTR(3) with GCC when it's called with first parameter being const. Discussed with: cem MFC after:2 weeks Sponsored by: Klara Inc, Netflix

svn commit: r352839 - in head: share/man/man3 sys/sys

2019-09-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 28 09:50:01 2019 New Revision: 352839 URL: https://svnweb.freebsd.org/changeset/base/352839 Log: Rename ARB_REBALANCE(3) to ARB_REINSERT(3) to match tree(3), and document it. MFC after:2 weeks Sponsored by: Klara Inc, Netflix Modified:

svn commit: r352838 - head/share/man/man3

2019-09-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 28 09:37:05 2019 New Revision: 352838 URL: https://svnweb.freebsd.org/changeset/base/352838 Log: Sort MLINKS for arb(3), and actually make them work by fixing a '=' vs '+=' mixup. MFC after:2 weeks Sponsored by: Klara Inc, Netflix Modified:

svn commit: r352837 - in head: share/man/man3 sys/sys

2019-09-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 28 09:22:52 2019 New Revision: 352837 URL: https://svnweb.freebsd.org/changeset/base/352837 Log: Add RB_REINSERT(3), a low overhead alternative to removing a node and reinserting it back with an updated key. This is one of dependencies for the upcoming

svn commit: r352836 - in head/libexec/rc: . rc.d

2019-09-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 28 09:12:41 2019 New Revision: 352836 URL: https://svnweb.freebsd.org/changeset/base/352836 Log: Move the SysV IPC stuff out of the 'abi' rc script, into a new one: 'sysvipc' - it has nothing to do with ABIs, and I'd like to later rename 'abi' to 'linux', which

svn commit: r352835 - in stable: 10/lib/msun/src 11/lib/msun/src 12/lib/msun/src 8/lib/msun/src 9/lib/msun/src

2019-09-28 Thread Dimitry Andric
Author: dim Date: Sat Sep 28 08:57:29 2019 New Revision: 352835 URL: https://svnweb.freebsd.org/changeset/base/352835 Log: MFC r352710: Do not left-shift a negative number (inducing undefined behavior in C/C++) in exp(3), expf(3), expm1(3) and expm1f(3) during intermediate computations

svn commit: r352835 - in stable: 10/lib/msun/src 11/lib/msun/src 12/lib/msun/src 8/lib/msun/src 9/lib/msun/src

2019-09-28 Thread Dimitry Andric
Author: dim Date: Sat Sep 28 08:57:29 2019 New Revision: 352835 URL: https://svnweb.freebsd.org/changeset/base/352835 Log: MFC r352710: Do not left-shift a negative number (inducing undefined behavior in C/C++) in exp(3), expf(3), expm1(3) and expm1f(3) during intermediate computations

svn commit: r352835 - in stable: 10/lib/msun/src 11/lib/msun/src 12/lib/msun/src 8/lib/msun/src 9/lib/msun/src

2019-09-28 Thread Dimitry Andric
Author: dim Date: Sat Sep 28 08:57:29 2019 New Revision: 352835 URL: https://svnweb.freebsd.org/changeset/base/352835 Log: MFC r352710: Do not left-shift a negative number (inducing undefined behavior in C/C++) in exp(3), expf(3), expm1(3) and expm1f(3) during intermediate computations

svn commit: r352835 - in stable: 10/lib/msun/src 11/lib/msun/src 12/lib/msun/src 8/lib/msun/src 9/lib/msun/src

2019-09-28 Thread Dimitry Andric
Author: dim Date: Sat Sep 28 08:57:29 2019 New Revision: 352835 URL: https://svnweb.freebsd.org/changeset/base/352835 Log: MFC r352710: Do not left-shift a negative number (inducing undefined behavior in C/C++) in exp(3), expf(3), expm1(3) and expm1f(3) during intermediate computations

svn commit: r352835 - in stable: 10/lib/msun/src 11/lib/msun/src 12/lib/msun/src 8/lib/msun/src 9/lib/msun/src

2019-09-28 Thread Dimitry Andric
Author: dim Date: Sat Sep 28 08:57:29 2019 New Revision: 352835 URL: https://svnweb.freebsd.org/changeset/base/352835 Log: MFC r352710: Do not left-shift a negative number (inducing undefined behavior in C/C++) in exp(3), expf(3), expm1(3) and expm1f(3) during intermediate computations

svn commit: r352834 - stable/12/share/mk

2019-09-28 Thread Dimitry Andric
Author: dim Date: Sat Sep 28 08:54:32 2019 New Revision: 352834 URL: https://svnweb.freebsd.org/changeset/base/352834 Log: MFC r352699: In suite.test.mk, test if ${DESTDIR} exists before attempting to run chflags -R on it, otherwise the command will error out. (Note that adding -f to

svn commit: r352833 - stable/12/sys/kern

2019-09-28 Thread Konstantin Belousov
Author: kib Date: Sat Sep 28 07:33:08 2019 New Revision: 352833 URL: https://svnweb.freebsd.org/changeset/base/352833 Log: MFC r352582, r352585: Make non-ASLR pie base tunable. Modified: stable/12/sys/kern/imgact_elf.c Directory Properties: stable/12/ (props changed) Modified:

Re: svn commit: r352795 - head/lib/libc/sys

2019-09-28 Thread Konstantin Belousov
On Fri, Sep 27, 2019 at 03:19:59PM -0600, Warner Losh wrote: > On Fri, Sep 27, 2019 at 2:38 PM Mateusz Guzik wrote: > > > On 9/27/19, Konstantin Belousov wrote: > > > On Fri, Sep 27, 2019 at 08:32:20PM +0200, Mateusz Guzik wrote: > > >> On 9/27/19, Warner Losh wrote: > > >> > Document