svn commit: r367364 - head/usr.bin/calendar

2020-11-05 Thread Stefan Eßer
Author: se Date: Thu Nov 5 08:58:21 2020 New Revision: 367364 URL: https://svnweb.freebsd.org/changeset/base/367364 Log: Restrict locale settings to the file they occur in This prevents LANG= in an included file from affecting the interpretation of month and day names in the including

Re: svn commit: r367280 - head/lib/libc/gen

2020-11-05 Thread Stefan Esser
Am 04.11.20 um 20:40 schrieb Baptiste Daroussin: On Wed, Nov 04, 2020 at 11:04:37AM -0800, Rodney W. Grimes wrote: For 25 years PREFIX has been rigidly a part of the ports infustructure, why is it that the BASE system has been allowed to de-evolve from this concept as documented and REQUIRED

svn commit: r367367 - stable/12/sys/cam

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 11:19:31 2020 New Revision: 367367 URL: https://svnweb.freebsd.org/changeset/base/367367 Log: MFC r365333: cam_sim: harmonize code related to acquiring a mtx cam_sim_free(), cam_sim_release(), and cam_sim_hold() all assign a mtx variable during

Re: svn commit: r367280 - head/lib/libc/gen

2020-11-05 Thread Stefan Esser
Am 04.11.20 um 20:49 schrieb Konstantin Belousov: On Mon, Nov 02, 2020 at 11:51:12PM +0100, Stefan Esser wrote: Am 02.11.20 um 23:10 schrieb Konstantin Belousov: On Mon, Nov 02, 2020 at 10:49:07PM +0100, Emmanuel Vadot wrote: I think that the first question we want to ask is : Do we want

svn commit: r367366 - stable/12/sys/net

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 11:11:50 2020 New Revision: 367366 URL: https://svnweb.freebsd.org/changeset/base/367366 Log: MFC r364305: For consistency and to avoid any problems getting past the 31bit boundry change the last two IF_Mbps(2500) and additionally one IF_Mbps(5000) to

svn commit: r367369 - stable/12/sys/dev/usb/storage

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 11:33:23 2020 New Revision: 367369 URL: https://svnweb.freebsd.org/changeset/base/367369 Log: MFC r365334: umass: fix a cam_sim leak in error case While debugging a hang I noticed that in case of error in umass_cam_attach_sim() we miss a

svn commit: r367371 - stable/12/sys/dev/iwm

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 11:56:49 2020 New Revision: 367371 URL: https://svnweb.freebsd.org/changeset/base/367371 Log: MFC r365633: iwm: fix regression from r365419 (ieee80211_media_change()) In r365419 ieee80211_media_change() callers were updated to not longer act on the

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

2020-11-05 Thread Andrew Turner
Author: andrew Date: Thu Nov 5 09:55:55 2020 New Revision: 367365 URL: https://svnweb.freebsd.org/changeset/base/367365 Log: Stop trying to bounce in memory allocated by bus dma Memory allocated by bus_dmamem_alloc will take into account any alignment requirements of the CPU it's

svn commit: r367368 - head/sys/fs/tmpfs

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 11:24:45 2020 New Revision: 367368 URL: https://svnweb.freebsd.org/changeset/base/367368 Log: tmpfs: reorder struct tmpfs_node to shrink it by 8 bytes The reduction (232 -> 224 bytes) allows UMA to fit one more item (17 -> 18) per slab as reported in

svn commit: r367370 - stable/12/sys/dev/usb/storage

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 11:37:14 2020 New Revision: 367370 URL: https://svnweb.freebsd.org/changeset/base/367370 Log: MFC r365335: umass: enhance debugging Investigating a hang I found having some more error information available would be helpful, so be more verbose and

svn commit: r367375 - stable/12/sbin/ifconfig

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 12:12:26 2020 New Revision: 367375 URL: https://svnweb.freebsd.org/changeset/base/367375 Log: MFC r366524: 80211: ifconfig replace MS() with _IEEE80211_MASKSHIFT() As we did in the kernel in r366112 replace the MS() macro with the version(s) added

svn commit: r367377 - in stable/12: sbin/ifconfig sys/net80211

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 12:16:22 2020 New Revision: 367377 URL: https://svnweb.freebsd.org/changeset/base/367377 Log: MFC r366800: net80211: update for (more) VHT160 support Implement two macros IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_IS_160MHZ() and its 80+80 counter part to

svn commit: r367373 - in stable/12/sys: dev/ath dev/bwn dev/iwn dev/malo dev/mwl net80211

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 12:08:04 2020 New Revision: 367373 URL: https://svnweb.freebsd.org/changeset/base/367373 Log: MFC r366112: Provide MS() and SM() macros for 80211 and wireless drivers. We have (two versions) of MS() and SM() macros which we use throughout the

svn commit: r367372 - head/sys/kern

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 12:06:50 2020 New Revision: 367372 URL: https://svnweb.freebsd.org/changeset/base/367372 Log: vfs: change nt_zone into a malloc type Elements are small in size and allocated for short periods. Modified: head/sys/kern/vfs_lookup.c Modified:

Re: svn commit: r367343 - in head/sys/contrib/openzfs/include/os: freebsd/zfs/sys linux/zfs/sys

2020-11-05 Thread Mateusz Guzik
On 11/5/20, Alexey Dokuchaev wrote: > On Wed, Nov 04, 2020 at 09:18:52PM +, Mateusz Guzik wrote: >> New Revision: 367343 >> URL: https://svnweb.freebsd.org/changeset/base/367343 >> >> Log: >> zfs: add branch prediction to ZFS_ENTER and ZFS_VERIFY_ZP macros >> >> They are expected to fail

svn commit: r367374 - in stable/12: lib/lib80211 sbin/ifconfig sys/net80211

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 12:10:24 2020 New Revision: 367374 URL: https://svnweb.freebsd.org/changeset/base/367374 Log: MFC r366522: 80211: non-functional changes Sort a few VHT160 and 80+80 lines, update some comments, and remove a superfluous ','. No functional

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

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 12:14:51 2020 New Revision: 367376 URL: https://svnweb.freebsd.org/changeset/base/367376 Log: MFC r366525: net80211: whitespace Fix indentation for the multi-line copies of ieee80211_add_channel_list_5ghz() for the 3 bands. Modified:

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

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 12:17:50 2020 New Revision: 367378 URL: https://svnweb.freebsd.org/changeset/base/367378 Log: MFC r366817: net80211: factor out the priv(9) checks into OS specifc code. Factor out the priv(9) checks into OS specifc code so other OSes can equally

svn commit: r367379 - head/sys/kern

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 12:24:37 2020 New Revision: 367379 URL: https://svnweb.freebsd.org/changeset/base/367379 Log: poll/select: change selfd_zone into a malloc type On a sample box vmstat -z shows: ITEM SIZE LIMIT USED FREE REQ 64:

svn commit: r367380 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 13:38:26 2020 New Revision: 367380 URL: https://svnweb.freebsd.org/changeset/base/367380 Log: MFC r366523: LinuxKPI: add a bitfield.h implementation. This code was iteratively implemented during the work on various WiFi drivers -- from individual

svn commit: r367381 - stable/12/sys/netinet

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 13:43:06 2020 New Revision: 367381 URL: https://svnweb.freebsd.org/changeset/base/367381 Log: MFC r366623: ip_mroute: fix the viftable export sysctl It seems that in r354857 I got more than one thing wrong. Convert the SYSCTL_OPAQUE to a SYSCTL_PROC

svn commit: r367382 - stable/12/sys/dev/extres/clk

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 13:45:26 2020 New Revision: 367382 URL: https://svnweb.freebsd.org/changeset/base/367382 Log: MFC r366799: clk: fix indentation Just fix indentation of an if() clause. No functional changes intended. Modified: stable/12/sys/dev/extres/clk/clk.c

svn commit: r367383 - in head/sys: dev/hwpmc powerpc/include powerpc/powerpc

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 14:15:50 2020 New Revision: 367383 URL: https://svnweb.freebsd.org/changeset/base/367383 Log: [PowerPC] Make PPC 970 PMC SPRs the standard ones And add a _74XX suffix to 74XX SPRs. This is a preparation for adding support to POWER8/9 PMCs, which have

svn commit: r367384 - in head/sys: kern sys vm

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 15:08:56 2020 New Revision: 367384 URL: https://svnweb.freebsd.org/changeset/base/367384 Log: Rationalize per-cpu zones. The 2 provided zones had inconsistent naming between each other ("int" and "64") and other allocator zones (which use bytes). Follow

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

2020-11-05 Thread Allan Jude
Author: allanjude Date: Thu Nov 5 17:10:14 2020 New Revision: 367393 URL: https://svnweb.freebsd.org/changeset/base/367393 Log: VirtIO: Make sure the guest knows the TRIM alignment requirements If bhyve is used to emulate 512e access in guest OS, then discard addresses should be properly

svn commit: r367385 - stable/12/sys/dev/rtwn/usb

2020-11-05 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 5 15:27:38 2020 New Revision: 367385 URL: https://svnweb.freebsd.org/changeset/base/367385 Log: MFC r366268 (and epoch parts of r357093): rtwn: narrow the epoch area Rather than placing the epoch around the entire receive loop which might call into

svn commit: r367386 - in head: share/man/man4 sys/amd64/conf sys/conf sys/dev/qat sys/modules sys/modules/qat

2020-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 5 15:55:23 2020 New Revision: 367386 URL: https://svnweb.freebsd.org/changeset/base/367386 Log: Add qat(4) This provides an OpenCrypto driver for Intel QuickAssist devices. The driver was initially ported from NetBSD and comes with a few improvements: -

svn commit: r367389 - in head/sys: kern sys

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 16:21:21 2020 New Revision: 367389 URL: https://svnweb.freebsd.org/changeset/base/367389 Log: malloc: add a helper returning size allocated for given request Sample usage: kernel modules can decide whether to stick to malloc or create their own zone.

svn commit: r367392 - head/lib/libpmcstat

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 16:47:23 2020 New Revision: 367392 URL: https://svnweb.freebsd.org/changeset/base/367392 Log: pmcstat: fix PPC kernel symbol resolution PowerPC kernel is of DYN type and it has a base address where it is initially loaded, before being relocated. As the

svn commit: r367388 - head/tests/sys/opencrypto

2020-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 5 16:00:57 2020 New Revision: 367388 URL: https://svnweb.freebsd.org/changeset/base/367388 Log: cryptotest: Add qat(4) coverage MFC after:3 days Sponsored by: Rubicon Communications, LLC (Netgate) Modified: head/tests/sys/opencrypto/cryptotest.py

svn commit: r367387 - in head/sys: contrib/dev/qat modules modules/qatfw modules/qatfw/qat_c2xxx modules/qatfw/qat_c3xxx modules/qatfw/qat_c62x modules/qatfw/qat_d15xx modules/qatfw/qat_dh895xcc

2020-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 5 16:00:30 2020 New Revision: 367387 URL: https://svnweb.freebsd.org/changeset/base/367387 Log: Add firmware modules for qat(4) MFC after:3 days Sponsored by: Rubicon Communications, LLC (Netgate) Added: head/sys/contrib/dev/qat/

svn commit: r367390 - in head/sys: dev/hwpmc modules/hwpmc powerpc/include sys

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 16:36:39 2020 New Revision: 367390 URL: https://svnweb.freebsd.org/changeset/base/367390 Log: [PowerPC] hwpmc: add support for POWER8/9 PMCs This change adds support for POWER8 and POWER9 PMCs (bare metal and pseries). All PowerISA 2.07B non-random

svn commit: r367391 - head/lib/libpmc

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 16:41:28 2020 New Revision: 367391 URL: https://svnweb.freebsd.org/changeset/base/367391 Log: libpmc: add support for POWER8/9 PMCs This change adds support for POWER8/9 performance counters. Reviewed by: jhibbits Sponsored by: Eldorado Research

svn commit: r367394 - in head/sys/arm: arm include

2020-11-05 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Nov 5 18:10:03 2020 New Revision: 367394 URL: https://svnweb.freebsd.org/changeset/base/367394 Log: Remove the 'nap' field from ARM's 'struct syscall_args', to bring it in sync with (most) other architectures. No functional changes. Reviewed by: manu Tested

svn commit: r367395 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/linux conf i386/linux modules/linux modules/linux64 modules/linux_common x86/linux

2020-11-05 Thread Conrad Meyer
Author: cem Date: Thu Nov 5 19:30:31 2020 New Revision: 367395 URL: https://svnweb.freebsd.org/changeset/base/367395 Log: linux(4): Deduplicate unimpl/dummy syscall handlers No functional change. Reviewed by: emaste, trasz Differential Revision:

svn commit: r367396 - in stable/12: lib/libipsec sbin/setkey sys/net usr.bin/netstat

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 19:37:56 2020 New Revision: 367396 URL: https://svnweb.freebsd.org/changeset/base/367396 Log: MFC 361810: Refer to AES-CBC as "aes-cbc" rather than "rijndael-cbc" for IPsec. At this point, AES is the more common name for Rijndael128. setkey(8) will still

svn commit: r367397 - head/sys/powerpc/include

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 20:18:00 2020 New Revision: 367397 URL: https://svnweb.freebsd.org/changeset/base/367397 Log: Fix powerpc and powerpcspe builds This change fixes 32-bit PowerPC builds, that r367390 broke (shift count >= width of type). Modified:

svn commit: r367398 - in head/sys: dev/acpica dev/xen/control kern sys

2020-11-05 Thread Konstantin Belousov
Author: kib Date: Thu Nov 5 20:52:49 2020 New Revision: 367398 URL: https://svnweb.freebsd.org/changeset/base/367398 Log: Suspend all writeable local filesystems on power suspend. This ensures that no writes are pending in memory, either metadata or user data, but not including dirty

svn commit: r367406 - head/sys/crypto/aesni

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 23:31:58 2020 New Revision: 367406 URL: https://svnweb.freebsd.org/changeset/base/367406 Log: Check cipher key lengths during probesession. OCF drivers in general should perform as many session parameter checks as possible during probesession rather than when

svn commit: r367399 - head/contrib/bsnmp/snmpd

2020-11-05 Thread Enji Cooper
Author: ngie Date: Thu Nov 5 21:37:24 2020 New Revision: 367399 URL: https://svnweb.freebsd.org/changeset/base/367399 Log: snmpmod(3): fix typo under the COMMUNITIES section "recipte" should be spelled like "receipt". .Dd is intentionally not being bumped for the change. MFC

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

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 21:44:58 2020 New Revision: 367400 URL: https://svnweb.freebsd.org/changeset/base/367400 Log: nvme: change namei_request_zone into a malloc type Both the size (128 bytes) and ephemeral nature of allocations make it a great fit for malloc. A dedicated

svn commit: r367403 - head/sys/opencrypto

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 23:26:02 2020 New Revision: 367403 URL: https://svnweb.freebsd.org/changeset/base/367403 Log: Don't modify the destination pointer in ioctl requests. This breaks the case where the original pointer was NULL but an in-line IV was used. Reviewed by: markj

svn commit: r367407 - head/sys/opencrypto

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 23:42:36 2020 New Revision: 367407 URL: https://svnweb.freebsd.org/changeset/base/367407 Log: Move cryptodev_cb earlier before it is used. This is consistent with cryptodevkey_cb being defined before it is used and removes a prototype in the middle of the

svn commit: r367408 - in stable: 11/usr.sbin/bhyvectl 12/usr.sbin/bhyvectl

2020-11-05 Thread John Baldwin
Author: jhb Date: Fri Nov 6 00:07:46 2020 New Revision: 367408 URL: https://svnweb.freebsd.org/changeset/base/367408 Log: MFC 365842,365844: Remove support for setting some obscure fields. 365842: Remove support for setting some obscure fields. Don't permit setting the exception

svn commit: r367408 - in stable: 11/usr.sbin/bhyvectl 12/usr.sbin/bhyvectl

2020-11-05 Thread John Baldwin
Author: jhb Date: Fri Nov 6 00:07:46 2020 New Revision: 367408 URL: https://svnweb.freebsd.org/changeset/base/367408 Log: MFC 365842,365844: Remove support for setting some obscure fields. 365842: Remove support for setting some obscure fields. Don't permit setting the exception

svn commit: r367409 - head/sys/opencrypto

2020-11-05 Thread John Baldwin
Author: jhb Date: Fri Nov 6 00:10:58 2020 New Revision: 367409 URL: https://svnweb.freebsd.org/changeset/base/367409 Log: Split logic to create new sessions into a separate function. This simplifies cryptof_ioctl as it now a wrapper around functions that contain the bulk of the

svn commit: r367401 - stable/12/lib/libc/tests/resolv

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 22:35:45 2020 New Revision: 367401 URL: https://svnweb.freebsd.org/changeset/base/367401 Log: MFC 365055: Fix a buffer overrun. getln() returns 'len' valid characters. line[len] is out of bounds. Modified: stable/12/lib/libc/tests/resolv/resolv_test.c

svn commit: r367402 - stable/12/sys/netinet6

2020-11-05 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Nov 5 22:41:54 2020 New Revision: 367402 URL: https://svnweb.freebsd.org/changeset/base/367402 Log: MFC r367114. Fix use-after-free in icmp6_notify_error(). Reported by: Maxime Villard Modified: stable/12/sys/netinet6/icmp6.c Directory Properties:

svn commit: r367404 - head/sys/opencrypto

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 23:28:05 2020 New Revision: 367404 URL: https://svnweb.freebsd.org/changeset/base/367404 Log: Style fixes for function prototypes and definitions. Reviewed by: markj Sponsored by: Chelsio Communications Differential Revision:

svn commit: r367405 - stable/12/lib/libc/tests/sys

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 23:28:46 2020 New Revision: 367405 URL: https://svnweb.freebsd.org/changeset/base/367405 Log: MFC 365280: Pass a valid mode with O_CREATE to open(2). CheriABI is pickier about the arguments to open(2) and crashes with a fault if a mode isn't passed to an

svn commit: r367410 - head/sys/opencrypto

2020-11-05 Thread John Baldwin
Author: jhb Date: Fri Nov 6 00:15:52 2020 New Revision: 367410 URL: https://svnweb.freebsd.org/changeset/base/367410 Log: Move cryptof_ioctl() below the routines it calls. Reviewed by: markj Sponsored by: Chelsio Communications Differential Revision:

svn commit: r367411 - stable/12/sys/dev/usb/controller

2020-11-05 Thread Konstantin Belousov
Author: kib Date: Fri Nov 6 00:35:36 2020 New Revision: 367411 URL: https://svnweb.freebsd.org/changeset/base/367411 Log: MFC r366978: xhci: Handle the case when MSI-X BAR is the same as IO BAR. Modified: stable/12/sys/dev/usb/controller/xhci_pci.c Directory Properties: stable/12/

svn commit: r367414 - stable/12/share/man/man7

2020-11-05 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Fri Nov 6 07:15:04 2020 New Revision: 367414 URL: https://svnweb.freebsd.org/changeset/base/367414 Log: MFC r367300: build.7: Mention etcupdate(8) alongside mergemaster(8) Modified: stable/12/share/man/man7/build.7 Directory Properties:

svn commit: r367412 - stable/12/share/man/man7

2020-11-05 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Fri Nov 6 07:14:04 2020 New Revision: 367412 URL: https://svnweb.freebsd.org/changeset/base/367412 Log: MFC r367299: Fix a typo in the description of WITH_DEBUG_PORTS For each origin listed in WITH_DEBUG_PORTS, the ports framework sets

svn commit: r367413 - stable/11/share/man/man7

2020-11-05 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Fri Nov 6 07:14:33 2020 New Revision: 367413 URL: https://svnweb.freebsd.org/changeset/base/367413 Log: MFC r367299: Fix a typo in the description of WITH_DEBUG_PORTS For each origin listed in WITH_DEBUG_PORTS, the ports framework sets

svn commit: r367415 - stable/11/share/man/man7

2020-11-05 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Fri Nov 6 07:16:21 2020 New Revision: 367415 URL: https://svnweb.freebsd.org/changeset/base/367415 Log: MFC r367300: build.7: Mention etcupdate(8) alongside mergemaster(8) Modified: stable/11/share/man/man7/build.7 Directory Properties: