svn commit: r343998 - head/sys/dev/beri/virtio

2019-02-10 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Feb 11 07:42:32 2019 New Revision: 343998 URL: https://svnweb.freebsd.org/changeset/base/343998 Log: Fix off-by-one error in BERI virtio driver The hardcoded ident is exactly 20 bytes long but sprintf adds terminating zero, so there is one byte written out of

Re: svn commit: r343985 - head/sys/kern

2019-02-10 Thread Bruce Evans
On Sun, 10 Feb 2019, Conrad Meyer wrote: ... This is the slowest correct fix in the PR followup. kib predicted that I wouldn't like it. It does 2 64-bit divmods (after optimization) and many multiplications per call. Times 2 calls. clang will probably inline this, giving only 3 64-bit

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

2019-02-10 Thread Konstantin Belousov
Author: kib Date: Mon Feb 11 07:09:02 2019 New Revision: 343997 URL: https://svnweb.freebsd.org/changeset/base/343997 Log: MFC r343890: do_execve(): lock vnode when needed. Modified: stable/12/sys/kern/kern_exec.c Directory Properties: stable/12/ (props changed) Modified:

Re: svn commit: r343985 - head/sys/kern

2019-02-10 Thread Conrad Meyer
Hi Bruce, On Sun, Feb 10, 2019 at 9:18 PM Bruce Evans wrote: > > On Sun, 10 Feb 2019, Conrad Meyer wrote: > > > Log: > > Prevent overflow for usertime/systime in caclru1 > > > > PR: 76972 and duplicates > ... > I wrote a much better version, > following the hints in my review of PR

svn commit: r343996 - head/sys/netpfil/pf

2019-02-10 Thread Patrick Kelsey
Author: pkelsey Date: Mon Feb 11 05:39:38 2019 New Revision: 343996 URL: https://svnweb.freebsd.org/changeset/base/343996 Log: Place pf_altq_get_nth_active() under the ALTQ ifdef MFC after:1 week Modified: head/sys/netpfil/pf/pf_ioctl.c Modified: head/sys/netpfil/pf/pf_ioctl.c

Re: svn commit: r343985 - head/sys/kern

2019-02-10 Thread Bruce Evans
On Sun, 10 Feb 2019, Conrad Meyer wrote: Log: Prevent overflow for usertime/systime in caclru1 PR:76972 and duplicates Reported by: Dr. Christopher Landauer , Steinar Haug Submitted by: Andrey Zonov (earlier version) MFC after: 2 weeks kib asked me

svn commit: r343995 - in head/sys: net net/altq netpfil/pf

2019-02-10 Thread Patrick Kelsey
Author: pkelsey Date: Mon Feb 11 05:17:31 2019 New Revision: 343995 URL: https://svnweb.freebsd.org/changeset/base/343995 Log: Reduce the time it takes the kernel to install a new PF config containing a large number of queues In general, the time savings come from separating the active

svn commit: r343994 - head/sbin/bectl/tests

2019-02-10 Thread Kyle Evans
Author: kevans Date: Mon Feb 11 04:00:42 2019 New Revision: 343994 URL: https://svnweb.freebsd.org/changeset/base/343994 Log: bectl(8): commit missing test modifications from r343993 X-MFC-With: r343993 Modified: head/sbin/bectl/tests/bectl_test.sh Modified:

svn commit: r343993 - head/sbin/bectl

2019-02-10 Thread Kyle Evans
Author: kevans Date: Mon Feb 11 04:00:01 2019 New Revision: 343993 URL: https://svnweb.freebsd.org/changeset/base/343993 Log: bectl(8): Add -o flag to destroy to clean up the origin snapshot of BE We can't predict when destruction of origin is needed, and currently we have a precedent

svn commit: r343992 - in stable: 11/sys/dev/iwn 12/sys/dev/iwn

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Mon Feb 11 00:31:58 2019 New Revision: 343992 URL: https://svnweb.freebsd.org/changeset/base/343992 Log: MFC r343815: iwn(4): plug initialization path vs interrupt handler races There are few places in interrupt handler where the driver lock is dropped; ensure that

svn commit: r343992 - in stable: 11/sys/dev/iwn 12/sys/dev/iwn

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Mon Feb 11 00:31:58 2019 New Revision: 343992 URL: https://svnweb.freebsd.org/changeset/base/343992 Log: MFC r343815: iwn(4): plug initialization path vs interrupt handler races There are few places in interrupt handler where the driver lock is dropped; ensure that

svn commit: r343991 - head/sbin/gbde

2019-02-10 Thread Conrad Meyer
Author: cem Date: Mon Feb 11 00:11:02 2019 New Revision: 343991 URL: https://svnweb.freebsd.org/changeset/base/343991 Log: gbde(8) - simplify randomisation with arc4random_buf Submitted by: David CARLIER Differential Revision:https://reviews.freebsd.org/D18678 Modified:

svn commit: r343990 - in head/sys: dev/malo dev/mwl dev/usb/wlan net80211

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Sun Feb 10 23:58:56 2019 New Revision: 343990 URL: https://svnweb.freebsd.org/changeset/base/343990 Log: net80211(4): hide casts for 'i_seq' field offset calculation inside ieee80211_getqos() and reuse it in various places. Checked with RTL8188EE, HOSTAP mode +

svn commit: r343989 - stable/11/gnu/usr.bin/grep

2019-02-10 Thread Pedro F. Giffuni
Author: pfg Date: Sun Feb 10 23:47:37 2019 New Revision: 343989 URL: https://svnweb.freebsd.org/changeset/base/343989 Log: MFC r342910: grep(1) outputs NOT-matched lines with multi-byte characters PR: 113343 Modified: stable/11/gnu/usr.bin/grep/search.c Directory Properties:

svn commit: r343988 - stable/12/gnu/usr.bin/grep

2019-02-10 Thread Pedro F. Giffuni
Author: pfg Date: Sun Feb 10 23:45:14 2019 New Revision: 343988 URL: https://svnweb.freebsd.org/changeset/base/343988 Log: MFC r342910: grep(1) outputs NOT-matched lines with multi-byte characters PR: 113343 Modified: stable/12/gnu/usr.bin/grep/search.c Directory Properties:

svn commit: r343987 - head/sys/contrib/libnv

2019-02-10 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 10 23:30:54 2019 New Revision: 343987 URL: https://svnweb.freebsd.org/changeset/base/343987 Log: libnv: fix memory leaks Free the data array for NV_TYPE_DESCRIPTOR_ARRAY case. MFC after:2 weeks Modified: head/sys/contrib/libnv/nvpair.c Modified:

svn commit: r343986 - in head: lib/libnv/tests sys/contrib/libnv

2019-02-10 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 10 23:28:55 2019 New Revision: 343986 URL: https://svnweb.freebsd.org/changeset/base/343986 Log: libnv: fix memory leaks nvpair_create_stringv: free the temporary string; this fix affects nvlist_add_stringf() and nvlist_add_stringv().

svn commit: r343985 - head/sys/kern

2019-02-10 Thread Conrad Meyer
Author: cem Date: Sun Feb 10 23:07:46 2019 New Revision: 343985 URL: https://svnweb.freebsd.org/changeset/base/343985 Log: Prevent overflow for usertime/systime in caclru1 PR: 76972 and duplicates Reported by: Dr. Christopher Landauer , Steinar Haug

svn commit: r343984 - stable/12/lib/libcasper/libcasper

2019-02-10 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 10 22:33:41 2019 New Revision: 343984 URL: https://svnweb.freebsd.org/changeset/base/343984 Log: MFC r343471: libcasper: do not run registered exit functions Casper library should not use exit(3) function because before setting it up applications may

svn commit: r343983 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-02-10 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 10 22:32:09 2019 New Revision: 343983 URL: https://svnweb.freebsd.org/changeset/base/343983 Log: MFC r343470: zfs: allow to change cache flush sysctl There is no reason for this variable to be tunable. This variable is used as a barrier in few

svn commit: r343982 - stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-02-10 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 10 22:31:41 2019 New Revision: 343982 URL: https://svnweb.freebsd.org/changeset/base/343982 Log: MFC r343470: zfs: allow to change cache flush sysctl There is no reason for this variable to be tunable. This variable is used as a barrier in few

svn commit: r343981 - in head/bin/sh: . tests/expansion

2019-02-10 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 10 22:23:05 2019 New Revision: 343981 URL: https://svnweb.freebsd.org/changeset/base/343981 Log: sh: Restore $((x)) error checking after fix for $((-9223372036854775808)) SVN r342880 was designed to fix $((-9223372036854775808)) and things like

svn commit: r343980 - head/sbin/ifconfig

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Sun Feb 10 21:32:39 2019 New Revision: 343980 URL: https://svnweb.freebsd.org/changeset/base/343980 Log: ifconfig(8): display 802.11n rates correctly for 'roam:rate' parameter MFC after:5 days Modified: head/sbin/ifconfig/ifieee80211.c Modified:

svn commit: r343979 - head/sys/opencrypto

2019-02-10 Thread Marius Strobl
Author: marius Date: Sun Feb 10 21:27:03 2019 New Revision: 343979 URL: https://svnweb.freebsd.org/changeset/base/343979 Log: As struct cryptop is wrapped in #ifdef _KERNEL, userland doesn't need to drag in either. Modified: head/sys/opencrypto/cryptodev.h Modified:

svn commit: r343978 - head/sbin/pfctl

2019-02-10 Thread Kristof Provost
Author: kp Date: Sun Feb 10 21:22:55 2019 New Revision: 343978 URL: https://svnweb.freebsd.org/changeset/base/343978 Log: pfctl: Fix ifa_grouplookup() Setting the length of the request got lost in r343287, which means SIOCGIFGMEMB gives us the required length, but does not copy the

svn commit: r343977 - head/lib/libbe

2019-02-10 Thread Kyle Evans
Author: kevans Date: Sun Feb 10 21:19:09 2019 New Revision: 343977 URL: https://svnweb.freebsd.org/changeset/base/343977 Log: libbe(3): Add a destroy option for removing the origin Currently origin snapshots are left behind when a BE is destroyed, whether it was an auto-created snapshot

svn commit: r343976 - in stable/11/sys: dev/bwi dev/iwi dev/ral dev/rtwn dev/urtwn dev/usb/wlan net80211

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Sun Feb 10 21:00:02 2019 New Revision: 343976 URL: https://svnweb.freebsd.org/changeset/base/343976 Log: MFC r343474: Remove 2GHz channel list copies from wireless drivers. Wrap ieee80211_add_channel_list_2ghz into another function which supplies default (1-14)

svn commit: r343975 - in stable/12/sys: dev/bwi dev/iwi dev/ral dev/rtwn dev/usb/wlan net80211

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Sun Feb 10 20:59:35 2019 New Revision: 343975 URL: https://svnweb.freebsd.org/changeset/base/343975 Log: MFC r343474: Remove 2GHz channel list copies from wireless drivers. Wrap ieee80211_add_channel_list_2ghz into another function which supplies default (1-14)

svn commit: r343974 - in stable: 10/sbin/ifconfig 11/sbin/ifconfig 12/sbin/ifconfig

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Sun Feb 10 20:42:06 2019 New Revision: 343974 URL: https://svnweb.freebsd.org/changeset/base/343974 Log: MFC r343698, r343700: ifconfig(8): display management / multicast wlan(4) rates properly For 11n / 11ac we are still using non-11n rates for management and

svn commit: r343974 - in stable: 10/sbin/ifconfig 11/sbin/ifconfig 12/sbin/ifconfig

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Sun Feb 10 20:42:06 2019 New Revision: 343974 URL: https://svnweb.freebsd.org/changeset/base/343974 Log: MFC r343698, r343700: ifconfig(8): display management / multicast wlan(4) rates properly For 11n / 11ac we are still using non-11n rates for management and

svn commit: r343974 - in stable: 10/sbin/ifconfig 11/sbin/ifconfig 12/sbin/ifconfig

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Sun Feb 10 20:42:06 2019 New Revision: 343974 URL: https://svnweb.freebsd.org/changeset/base/343974 Log: MFC r343698, r343700: ifconfig(8): display management / multicast wlan(4) rates properly For 11n / 11ac we are still using non-11n rates for management and

svn commit: r343973 - stable/10/sys/net80211

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Sun Feb 10 20:26:12 2019 New Revision: 343973 URL: https://svnweb.freebsd.org/changeset/base/343973 Log: MFC r343837: net80211(4): validate supplied roam:rate values from ifconfig(8) Modified: stable/10/sys/net80211/ieee80211_ioctl.c Directory Properties: stable/10/

svn commit: r343972 - stable/11/sys/net80211

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Sun Feb 10 20:25:45 2019 New Revision: 343972 URL: https://svnweb.freebsd.org/changeset/base/343972 Log: MFC r343837: net80211(4): validate supplied roam:rate values from ifconfig(8) Modified: stable/11/sys/net80211/ieee80211_ioctl.c Directory Properties: stable/11/

svn commit: r343971 - stable/12/sys/net80211

2019-02-10 Thread Andriy Voskoboinyk
Author: avos Date: Sun Feb 10 20:25:15 2019 New Revision: 343971 URL: https://svnweb.freebsd.org/changeset/base/343971 Log: MFC r343837: net80211(4): validate supplied roam:rate values from ifconfig(8) Modified: stable/12/sys/net80211/ieee80211_ioctl.c Directory Properties: stable/12/

svn commit: r343970 - head/sys/powerpc/conf

2019-02-10 Thread Justin Hibbits
Author: jhibbits Date: Sun Feb 10 20:21:20 2019 New Revision: 343970 URL: https://svnweb.freebsd.org/changeset/base/343970 Log: powerpc: Clamp MAXCPU for MPC85XXSPE kernel to 2 SoCs with e500v2 chips only have at most 2 cores, and there are no plans to release any more e500v2-based SoCs.

svn commit: r343969 - head/sys/mips/cavium/octe

2019-02-10 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Feb 10 20:13:59 2019 New Revision: 343969 URL: https://svnweb.freebsd.org/changeset/base/343969 Log: Performance improvements for octe(4): - Distribute RX load across multiple cores, if present. This reverts r217212, which is no longer relevant (I think

svn commit: r343968 - head/sys/dev/cxgbe/common

2019-02-10 Thread Navdeep Parhar
Author: np Date: Sun Feb 10 19:20:03 2019 New Revision: 343968 URL: https://svnweb.freebsd.org/changeset/base/343968 Log: cxgbe(4): Ignore unused interrupts. Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/common/t4_hw.c Modified: head/sys/dev/cxgbe/common/t4_hw.c

svn commit: r343967 - head/lib/libc/net

2019-02-10 Thread Sergey Kandaurov
Author: pluknet Date: Sun Feb 10 19:07:47 2019 New Revision: 343967 URL: https://svnweb.freebsd.org/changeset/base/343967 Log: Sync "struct addrinfo" declaration with netdb.h. Notably, unlike in OpenBSD, which the man page was copied from, ai_canonname and ai_addr come in different

svn commit: r343966 - head/sys/vm

2019-02-10 Thread Konstantin Belousov
Author: kib Date: Sun Feb 10 19:01:05 2019 New Revision: 343966 URL: https://svnweb.freebsd.org/changeset/base/343966 Log: struct xswdev on amd64 requires compat32 shims after ino64. i386 is the only architecture where uint64_t does not specify 8-bytes alignment, which makes struct

svn commit: r343965 - head/sys/arm/arm

2019-02-10 Thread Michal Meloun
Author: mmel Date: Sun Feb 10 18:28:37 2019 New Revision: 343965 URL: https://svnweb.freebsd.org/changeset/base/343965 Log: Fix bug introduced by r343962. DMAMAP_DMAMEM_ALLOC is property of dmamap, not dmatag. MFC after:1 week Reported by: ian Pointy hat: mmel Modified:

svn commit: r343964 - in head: sys/amd64/amd64 sys/arm/arm sys/compat/freebsd32 sys/compat/ia32 sys/i386/i386 sys/kern sys/sys sys/vm usr.bin/proccontrol

2019-02-10 Thread Konstantin Belousov
Author: kib Date: Sun Feb 10 17:19:45 2019 New Revision: 343964 URL: https://svnweb.freebsd.org/changeset/base/343964 Log: Implement Address Space Layout Randomization (ASLR) With this change, randomization can be enabled for all non-fixed mappings. It means that the base address for

Re: svn commit: r343746 - head/sys/conf

2019-02-10 Thread Michael Tuexen
> On 10. Feb 2019, at 09:38, Conrad Meyer wrote: > > Hi Michael, > > I don't know. You can 'pkg install amd64-xtoolchain-gcc' and 'make > buildkernel KERNCONF=GENERIC CROSS_TOOLCHAIN=amd64-gcc' if you're > interested in trying it. Hi Conrad, thanks for the instructions. I tested the patch

svn commit: r343962 - head/sys/arm/arm

2019-02-10 Thread Michal Meloun
Author: mmel Date: Sun Feb 10 14:25:29 2019 New Revision: 343962 URL: https://svnweb.freebsd.org/changeset/base/343962 Log: Properly handle alignment requests bigger that page size. - for now, alignments bigger that page size is allowed only for buffers allocated by bus_dmamem_alloc(),

svn commit: r343963 - head/sys/arm/nvidia

2019-02-10 Thread Michal Meloun
Author: mmel Date: Sun Feb 10 14:30:15 2019 New Revision: 343963 URL: https://svnweb.freebsd.org/changeset/base/343963 Log: Don't allocate same clock twice.. MFC after:1 week Reported by: jah Modified: head/sys/arm/nvidia/tegra_sdhci.c Modified: head/sys/arm/nvidia/tegra_sdhci.c

svn commit: r343961 - head/sys/netinet

2019-02-10 Thread Michael Tuexen
Author: tuexen Date: Sun Feb 10 14:02:14 2019 New Revision: 343961 URL: https://svnweb.freebsd.org/changeset/base/343961 Log: Fix a locking issue when reporing outbount messages. MFC after:3 days Modified: head/sys/netinet/sctputil.c Modified: head/sys/netinet/sctputil.c

svn commit: r343960 - head/sys/netinet

2019-02-10 Thread Michael Tuexen
Author: tuexen Date: Sun Feb 10 13:55:32 2019 New Revision: 343960 URL: https://svnweb.freebsd.org/changeset/base/343960 Log: Fix a locking issue in the IPPROTO_SCTP level SCTP_PEER_ADDR_THLDS socket option. The problem affects only setsockopt with invalid parameters. This issue was

svn commit: r343959 - head/usr.bin/top

2019-02-10 Thread Dimitry Andric
Author: dim Date: Sun Feb 10 13:44:36 2019 New Revision: 343959 URL: https://svnweb.freebsd.org/changeset/base/343959 Log: Fix the first couple of AddressSanitizer violations in usr.bin/top. Avoid setting zero bytes beyond the length of the 'thisline' parameters in i_process() and

svn commit: r343958 - head/usr.bin/top

2019-02-10 Thread Dimitry Andric
Author: dim Date: Sun Feb 10 13:34:21 2019 New Revision: 343958 URL: https://svnweb.freebsd.org/changeset/base/343958 Log: Fix multiple warnings in usr.bin/top about variables shadowing global declarations from base gcc, by renaming those variables. MFC after:1 week Modified:

svn commit: r343957 - head/usr.bin/top

2019-02-10 Thread Dimitry Andric
Author: dim Date: Sun Feb 10 13:31:08 2019 New Revision: 343957 URL: https://svnweb.freebsd.org/changeset/base/343957 Log: Fix multiple warnings in usr.bin/top about discarded qualifiers from both clang and gcc, by either constifying variables, or when that is not possible, using __DECONST.

svn commit: r343954 - head/sys/netinet

2019-02-10 Thread Michael Tuexen
Author: tuexen Date: Sun Feb 10 10:42:16 2019 New Revision: 343954 URL: https://svnweb.freebsd.org/changeset/base/343954 Log: Fix a locking bug in the IPPROTO_SCTP level SCTP_EVENT socket option. This occurs when call setsockopt() with invalid parameters. This issue was found by

Re: svn commit: r343746 - head/sys/conf

2019-02-10 Thread Conrad Meyer
Hi Michael, I don't know. You can 'pkg install amd64-xtoolchain-gcc' and 'make buildkernel KERNCONF=GENERIC CROSS_TOOLCHAIN=amd64-gcc' if you're interested in trying it. (I'm not sure enabling coverage globally in GENERIC is appropriate even if it did not break boot — it's usually expensive,

svn commit: r343950 - in head/sys: arm64/conf conf

2019-02-10 Thread Emmanuel Vadot
Author: manu Date: Sun Feb 10 08:14:06 2019 New Revision: 343950 URL: https://svnweb.freebsd.org/changeset/base/343950 Log: arm64: Fix compile when removing SOC_ROCKCHIP_* options Make every rockchip file depend on the multiple soc_rockchip options While here make rk_i2c and rk_gpio

Re: svn commit: r343746 - head/sys/conf

2019-02-10 Thread Michael Tuexen
> On 10. Feb 2019, at 08:50, Conrad Meyer wrote: > > Hi Andrew, > > This makes it compile, but instead of a build failure the kernel is > broken hard at runtime in early boot with GCC < 8.1. E.g., > amd64-xtoolchain-gcc standard cross-toolchain is still on GCC 6.4.0. > > HEAD GENERIC has been

svn commit: r343949 - in head/sys: amd64/conf arm64/conf

2019-02-10 Thread Conrad Meyer
Author: cem Date: Sun Feb 10 07:54:46 2019 New Revision: 343949 URL: https://svnweb.freebsd.org/changeset/base/343949 Log: Revert r343713 temporarily The COVERAGE option breaks xtoolchain-gcc GENERIC kernel early boot extremely badly and hasn't been fixed for the ~week since it was

svn commit: r343953 - head/lib/msun/src

2019-02-10 Thread Peter Jeremy
Author: peterj Date: Sun Feb 10 08:46:07 2019 New Revision: 343953 URL: https://svnweb.freebsd.org/changeset/base/343953 Log: Replace calls to sin(x) and cos(x) with a single call to sincos(). Replace calls to sinf(x) and cosf(x) with a single call to sincosf(). Submitted by: Steve Kargl

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

2019-02-10 Thread Ganbold Tsagaankhuu
Author: ganbold Date: Sun Feb 10 08:41:52 2019 New Revision: 343952 URL: https://svnweb.freebsd.org/changeset/base/343952 Log: Enable necessary bits when activating interrupts. This allows reading some events from the interrupt status registers. These events are reported to devd via system

svn commit: r343951 - head/sys/netinet

2019-02-10 Thread Michael Tuexen
Author: tuexen Date: Sun Feb 10 08:28:56 2019 New Revision: 343951 URL: https://svnweb.freebsd.org/changeset/base/343951 Log: Fix locking for IPPROTO_SCTP level SCTP_DEFAULT_PRINFO socket option. This problem occurred when calling setsockopt() will invalid parameters. This issue was