svn commit: r365938 - in head: . cddl/lib cddl/lib/libzfsbootenv cddl/lib/libzpool lib/libbe libexec/rc libexec/rc/rc.d rescue/rescue sbin/bectl sbin/reboot sbin/zfsbootcfg share/man/man5 share/mk ...

2020-09-21 Thread Toomas Soome
Author: tsoome Date: Mon Sep 21 09:01:10 2020 New Revision: 365938 URL: https://svnweb.freebsd.org/changeset/base/365938 Log: loader: zfs should support bootonce an nextboot bootonce feature is temporary, one time boot, activated by "bectl activate -t BE", "bectl activate -T BE" will rese

svn commit: r365939 - head

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 09:03:32 2020 New Revision: 365939 URL: https://svnweb.freebsd.org/changeset/base/365939 Log: Prefer bootstrapped tools when running certctl.sh Otherwise we get lots of warnings when building on Linux/macOS during installworld: Scanning /local/scrat

svn commit: r365941 - head/contrib/nvi/common

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 09:03:42 2020 New Revision: 365941 URL: https://svnweb.freebsd.org/changeset/base/365941 Log: Fix vi build on Linux/macOS This absolute include causes a build failure on Linux for me: .../cheri/freebsd/contrib/nvi/cl/../common/common.h:10:10: fatal err

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

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 09:03:37 2020 New Revision: 365940 URL: https://svnweb.freebsd.org/changeset/base/365940 Log: Fix -Wpointer-sign warnings in usr.bin/grep Reviewed By: kevans Differential Revision: https://reviews.freebsd.org/D26479 Modified: head/usr.bin/grep/file

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

2020-09-21 Thread Andriy Gapon
Author: avg Date: Mon Sep 21 10:02:11 2020 New Revision: 365943 URL: https://svnweb.freebsd.org/changeset/base/365943 Log: aw_usbphy: add support for device mode operation OTG mode is not supported still. It's easy to do it as a one-off detection, but the proper support requires continuo

svn commit: r365945 - in head: share/man/man9 sys/kern sys/sys

2020-09-21 Thread Mitchell Horne
Author: mhorne Date: Mon Sep 21 15:24:44 2020 New Revision: 365945 URL: https://svnweb.freebsd.org/changeset/base/365945 Log: Add getenv(9) boolean parsing functions This adds the getenv_bool() function, to parse a boolean value from a kernel environment variable or tunable. This works fo

svn commit: r365946 - head/sys/dev/nvme

2020-09-21 Thread David Bright
Author: dab Date: Mon Sep 21 15:41:47 2020 New Revision: 365946 URL: https://svnweb.freebsd.org/changeset/base/365946 Log: Add an ioctl to get an NVMe device's maximum transfer size Reviewed by: imp, chuck Obtained from:Dell EMC Isilon MFC after:1 week Sponsored by: Dell

svn commit: r365947 - head/sys/kern

2020-09-21 Thread Mitchell Horne
Author: mhorne Date: Mon Sep 21 15:44:23 2020 New Revision: 365947 URL: https://svnweb.freebsd.org/changeset/base/365947 Log: Use getenv_is_true() in init_static_kenv() A small example of how these functions can be used to simplify checks of this nature. Sponsored by: Klara, Inc. D

svn commit: r365948 - head/sbin/nvmecontrol

2020-09-21 Thread David Bright
Author: dab Date: Mon Sep 21 15:45:49 2020 New Revision: 365948 URL: https://svnweb.freebsd.org/changeset/base/365948 Log: Honor the FWUG value of some drives in nvmecontrol nvmecontrol tries to upload firmware in chunks as large as it thinks the device permits. It fails to take into acco

svn commit: r365949 - head/tools/build

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 15:48:57 2020 New Revision: 365949 URL: https://svnweb.freebsd.org/changeset/base/365949 Log: Add a tools/build/make.py script that bootstraps bmake and then runs the build This makes it possible to compile on non-FreeBSD systems since make will usuall

svn commit: r365950 - head/tools/build

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 15:49:02 2020 New Revision: 365950 URL: https://svnweb.freebsd.org/changeset/base/365950 Log: When building on Ubuntu bootstrap bmake with bash as the default shell The Ubuntu /bin/sh (dash) removes all environment variables that contain characters out

svn commit: r365951 - head/sys/amd64/amd64

2020-09-21 Thread Konstantin Belousov
Author: kib Date: Mon Sep 21 15:53:41 2020 New Revision: 365951 URL: https://svnweb.freebsd.org/changeset/base/365951 Log: amd64 pmap: only calculate page table page when needed. Noted by: alc Reviewed by: alc, markj Sponsored by: The FreeBSD Foundation MFC after:1 week Dif

svn commit: r365952 - head/contrib/libexecinfo

2020-09-21 Thread Poul-Henning Kamp
Author: phk Date: Mon Sep 21 16:43:38 2020 New Revision: 365952 URL: https://svnweb.freebsd.org/changeset/base/365952 Log: Pull in fix from upstream NetBSD rev. 1.5: If Unwind_Backtrace is broken, ctx.n will still contain ~0, and we will return that which poor behavior for the use

svn commit: r365954 - head/usr.bin/xargs

2020-09-21 Thread Kyle Evans
Author: kevans Date: Mon Sep 21 17:06:36 2020 New Revision: 365954 URL: https://svnweb.freebsd.org/changeset/base/365954 Log: xargs: add some long options for GNU compatibility These are low-effort to add, so let's just do it. Reported by: "LukeShu" on Hacker News (-r / --no-run-if-em

svn commit: r365955 - head/sys/sys

2020-09-21 Thread Mitchell Horne
Author: mhorne Date: Mon Sep 21 17:28:41 2020 New Revision: 365955 URL: https://svnweb.freebsd.org/changeset/base/365955 Log: Hide tunable definitions behind _KERNEL Some userspace code include sys/kernel.h. Namely, some OpenZFS tests do this, and it was causing breakage after r365945 due

svn commit: r365956 - head/tools/regression/fsx

2020-09-21 Thread Alan Somers
Author: asomers Date: Mon Sep 21 17:48:28 2020 New Revision: 365956 URL: https://svnweb.freebsd.org/changeset/base/365956 Log: fsx: fix build with WARNS=6 * signed/unsigned comparisons * use standard warn(3) * Suppress warnings about local vars and funcs not declared static * const-co

svn commit: r365957 - in head: sbin/rcorder usr.sbin/crunch/crunchgen

2020-09-21 Thread Adrian Chadd
Author: adrian Date: Mon Sep 21 17:59:45 2020 New Revision: 365957 URL: https://svnweb.freebsd.org/changeset/base/365957 Log: [rcorder] [crunch] Fix C function declarations to include void This fixes a compile issue under gcc6 which complains about legacy style C function declarations.

svn commit: r365958 - head/share/man/man4

2020-09-21 Thread Hans Petter Selasky
Author: hselasky Date: Mon Sep 21 18:17:01 2020 New Revision: 365958 URL: https://svnweb.freebsd.org/changeset/base/365958 Log: Add example to ng_bpf(4) showing how ng_bpf(4) can be used to prevent spoofing. Differential Revision:https://reviews.freebsd.org/D26488 MFC after:1

svn commit: r365966 - in head/sys/dev/usb: . serial

2020-09-21 Thread Hans Petter Selasky
Author: hselasky Date: Mon Sep 21 18:32:57 2020 New Revision: 365966 URL: https://svnweb.freebsd.org/changeset/base/365966 Log: Add support for Winbond USB CDC modem device found in Tenma power supply. PR: 249384 MFC after:1 week Submitted by: dar...@dons.net.au Sponsore

svn commit: r365967 - head/sbin/nvmecontrol

2020-09-21 Thread David Bright
Author: dab Date: Mon Sep 21 18:34:13 2020 New Revision: 365967 URL: https://svnweb.freebsd.org/changeset/base/365967 Log: Whitespace fix after r365948 MFC after:1 week Sponsored by: Dell EMC Isilon Modified: head/sbin/nvmecontrol/firmware.c Modified: head/sbin/nvmecontrol/firmwar

svn commit: r365968 - head/contrib/one-true-awk

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 19:03:07 2020 New Revision: 365968 URL: https://svnweb.freebsd.org/changeset/base/365968 Log: awk: Fix subobject out-of-bounds access When matching a regex with ^, it would attempt to access gototab[NSTATES][NCHARS+2], and therefore access the state fo

svn commit: r365969 - head/contrib/one-true-awk

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 19:03:12 2020 New Revision: 365969 URL: https://svnweb.freebsd.org/changeset/base/365969 Log: Fix another UBSan error in awk This applies my upstreamed fix: https://github.com/onetrueawk/awk/commit/ad9bd2f40a89ec9533b92254b86a756cf4f40fd4 Found By:

svn commit: r365970 - head/usr.bin/mkcsmapper

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 19:03:17 2020 New Revision: 365970 URL: https://svnweb.freebsd.org/changeset/base/365970 Log: mkcsmapper: Fix UBSan signed shift error usr.bin/mkcsmapper/yacc.y:466:18: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' Mod

Re: svn commit: r365249 - head

2020-09-21 Thread Slawa Olhovchenkov
On Wed, Sep 02, 2020 at 11:53:57AM -0400, Ryan Moeller wrote: > > On 9/2/20 11:43 AM, Andriy Gapon wrote: > > On 02/09/2020 18:23, Ryan Moeller wrote: > >> On 9/2/20 10:28 AM, Warner Losh wrote: > >>> Author: imp > >>> Date: Wed SepĀ  2 14:28:54 2020 > >>> New Revision: 365249 > >>> URL: https://s

svn commit: r365972 - head/tools/bsdbox

2020-09-21 Thread Kyle Evans
Author: kevans Date: Mon Sep 21 19:50:39 2020 New Revision: 365972 URL: https://svnweb.freebsd.org/changeset/base/365972 Log: bsdbox: fix build after recent libifconfig changes libifconfig now generates file(s) into its .OBJDIR that are essential to the build. Make sure we -I that in, lik

svn commit: r365973 - in head/sys: net net/route netinet netinet6

2020-09-21 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Sep 21 20:02:26 2020 New Revision: 365973 URL: https://svnweb.freebsd.org/changeset/base/365973 Log: Rework part of routing code to reduce difference to D26449. * Split rt_setmetrics into get_info_weight() and rt_set_expire_info(), as these two can be applied a

Re: svn commit: r365071 - in head/sys: net net/altq net/route net80211 netgraph netgraph/atm netgraph/atm/ccatm netgraph/atm/sscfu netgraph/atm/sscop netgraph/atm/uni netgraph/bluetooth/common netgrap

2020-09-21 Thread Gleb Smirnoff
Mateusz, On Fri, Sep 04, 2020 at 02:15:04PM -0400, Andrew Gallatin wrote: A> I do the upstream sync between the Netflix tree and A> FreeBSD-current about every 3 weeks (unless glebius beats A> me to the punch and does it first :). I anticipate that A> this blank line sweep will cause lots of co

svn commit: r365974 - head/sys/contrib/vchiq/interface/vchiq_arm

2020-09-21 Thread D Scott Phillips
Author: scottph Date: Mon Sep 21 22:18:09 2020 New Revision: 365974 URL: https://svnweb.freebsd.org/changeset/base/365974 Log: vchi: rename bitset macros to avoid collision with bitset(9) An upcoming change to include bitset(9) macros from vm_page.h causes a macro name collision with vchi

svn commit: r365975 - in head: share/man/man9 sys/sys

2020-09-21 Thread D Scott Phillips
Author: scottph Date: Mon Sep 21 22:19:12 2020 New Revision: 365975 URL: https://svnweb.freebsd.org/changeset/base/365975 Log: bitset: expand bit index type to `long` An upcoming patch to use the bitset macros for tracking vm page dump information could conceivably need more than INT_MAX

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

2020-09-21 Thread Mark Johnston
Author: markj Date: Mon Sep 21 22:19:21 2020 New Revision: 365976 URL: https://svnweb.freebsd.org/changeset/base/365976 Log: Weaken assertions in pmap_l1_to_l2() and pmap_l2_to_l3(). pmap_update_entry() will temporarily clear the valid bit of page table entries in order to satisfy the arm

svn commit: r365977 - in head: . sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm/include sys/arm64/arm64 sys/arm64/include sys/i386/i386 sys/i386/include sys/mips/include sys/mips/mips sys/po...

2020-09-21 Thread D Scott Phillips
Author: scottph Date: Mon Sep 21 22:20:37 2020 New Revision: 365977 URL: https://svnweb.freebsd.org/changeset/base/365977 Log: Move vm_page_dump bitset array definition to MI code These definitions were repeated by all architectures, with small variations. Consolidate the common definiton

svn commit: r365978 - in head: lib/libkvm sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm/include sys/arm64/arm64 sys/arm64/include sys/i386/i386 sys/i386/include sys/mips/include sys/mips/mi...

2020-09-21 Thread D Scott Phillips
Author: scottph Date: Mon Sep 21 22:21:59 2020 New Revision: 365978 URL: https://svnweb.freebsd.org/changeset/base/365978 Log: Sparsify the vm_page_dump bitmap On Ampere Altra systems, the sparse population of RAM within the physical address space causes the vm_page_dump bitmap to be much

svn commit: r365980 - head/sys/vm

2020-09-21 Thread D Scott Phillips
Author: scottph Date: Mon Sep 21 22:22:53 2020 New Revision: 365980 URL: https://svnweb.freebsd.org/changeset/base/365980 Log: vm_reserv: Sparsify the vm_reserv_array when VM_PHYSSEG_SPARSE On an Ampere Altra system, the physical memory is populated sparsely within the physical address sp

svn commit: r365981 - in head/sys: arm64/arm64 vm

2020-09-21 Thread D Scott Phillips
Author: scottph Date: Mon Sep 21 22:23:57 2020 New Revision: 365981 URL: https://svnweb.freebsd.org/changeset/base/365981 Log: arm64/pmap: Sparsify pv_table Reviewed by: markj, kib Approved by: scottl (implicit) MFC after:1 week Sponsored by: Ampere Computing, Inc. Differentia

svn commit: r365982 - head/stand/common

2020-09-21 Thread D Scott Phillips
Author: scottph Date: Mon Sep 21 22:24:46 2020 New Revision: 365982 URL: https://svnweb.freebsd.org/changeset/base/365982 Log: stand/reloc_elf: Handle relative relocations for arm{,64} and riscv Extend the powerpc relative relocation handling from r240782 to a handful of other architectur

svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-21 Thread Greg Lehey
Author: grog Date: Mon Sep 21 22:55:51 2020 New Revision: 365984 URL: https://svnweb.freebsd.org/changeset/base/365984 Log: Remove claim that Allied Forces created "West Germany" in 1953. I can find no historic substantiation for such a claim. The Federal Republic of Germany was created by

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-21 Thread Cy Schubert
In message <202009212255.08lmtpsp078...@repo.freebsd.org>, Greg Lehey writes: > Author: grog > Date: Mon Sep 21 22:55:51 2020 > New Revision: 365984 > URL: https://svnweb.freebsd.org/changeset/base/365984 > > Log: > Remove claim that Allied Forces created "West Germany" in 1953. I can > find

Re: svn commit: r365846 - head

2020-09-21 Thread Ravi Pokala
-Original Message- From: on behalf of Ed Maste Date: 2020-09-17, Thursday at 11:47 To: , , Subject: svn commit: r365846 - head Author: emaste Date: Thu Sep 17 18:47:23 2020 New Revision: 365846 URL: https://svnweb.freebsd.org/changeset/base/365846 Log: Cirru

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-21 Thread Conrad Meyer
Big ol plus one from me. On Mon, Sep 21, 2020 at 4:16 PM Cy Schubert wrote: > > In message <202009212255.08lmtpsp078...@repo.freebsd.org>, Greg Lehey > writes: > > Author: grog > > Date: Mon Sep 21 22:55:51 2020 > > New Revision: 365984 > > URL: https://svnweb.freebsd.org/changeset/base/365984 >

svn commit: r365991 - head/sys/dev/cxgbe

2020-09-21 Thread Navdeep Parhar
Author: np Date: Tue Sep 22 03:06:36 2020 New Revision: 365991 URL: https://svnweb.freebsd.org/changeset/base/365991 Log: cxgbe(4): add counters for mbuf pullups and defrags. MFC after:3 days Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/t4_sge.c Modified: head

svn commit: r365992 - head/sbin/growfs

2020-09-21 Thread Kirk McKusick
Author: mckusick Date: Tue Sep 22 03:57:48 2020 New Revision: 365992 URL: https://svnweb.freebsd.org/changeset/base/365992 Log: Add missing cylinder group check-hash updates when doing large expansions of filesystems. Reported by: Colin Percival (cperciva@) Tested by:Colin Percival

svn commit: r365993 - in head: share/man/man4 sys/dev/cxgbe

2020-09-21 Thread Navdeep Parhar
Author: np Date: Tue Sep 22 04:16:40 2020 New Revision: 365993 URL: https://svnweb.freebsd.org/changeset/base/365993 Log: cxgbe(4): let the PF driver use VM work requests for transmit. This allows the PF interfaces to communicate with the VF interfaces over the internal switch in the ASIC

Re: svn commit: r365899 - in head: share/man/man9 sys/arm/include sys/arm64/arm64 sys/arm64/include sys/kern sys/mips/include sys/powerpc/include sys/riscv/include sys/sys sys/tools sys/x86/include

2020-09-21 Thread Ravi Pokala
This breaks amd64.GENERIC-KCSAN: ${SRCTOP}/sys/kern/subr_csan.c:895:1: error: implicit declaration of function 'bus_space_peek_8' is invalid in C99 [-Werror,-Wimplicit-function-declaration] CSAN_BUS_PEEK_FUNC(8, uint64_t) ^ ${SRCTOP