svn commit: r367153 - head/sys/dev/mlx5/mlx5_en

2020-10-29 Thread John Baldwin
Author: jhb Date: Fri Oct 30 00:06:36 2020 New Revision: 367153 URL: https://svnweb.freebsd.org/changeset/base/367153 Log: Fix a couple of silly bugs in r367149. - Assign the TLS rate limit value to the correct member of the rl_params for the nested rate limit tag. - Remove a dead

svn commit: r367151 - in head/sys: dev/mlx5/mlx5_en kern net netinet sys

2020-10-29 Thread John Baldwin
Author: jhb Date: Thu Oct 29 23:28:39 2020 New Revision: 367151 URL: https://svnweb.freebsd.org/changeset/base/367151 Log: Add m_snd_tag_alloc() as a wrapper around if_snd_tag_alloc(). This gives a more uniform API for send tag life cycle management. Reviewed by: gallatin, hselasky

svn commit: r367149 - head/sys/dev/mlx5/mlx5_en

2020-10-29 Thread John Baldwin
Author: jhb Date: Thu Oct 29 22:22:27 2020 New Revision: 367149 URL: https://svnweb.freebsd.org/changeset/base/367149 Log: Use public interfaces to manage the nested rate limit send tag. Each TLS send tag in mlx5 contains a nested rate limit send tag. Previously, the driver was calling

svn commit: r367148 - head/sys/netinet

2020-10-29 Thread John Baldwin
Author: jhb Date: Thu Oct 29 22:18:56 2020 New Revision: 367148 URL: https://svnweb.freebsd.org/changeset/base/367148 Log: Call m_snd_tag_rele() to free send tags. Send tags are refcounted and if_snd_tag_free() is called by m_snd_tag_rele() when the last reference is dropped on a send

svn commit: r367147 - head/sys/netinet

2020-10-29 Thread John Baldwin
Author: jhb Date: Thu Oct 29 22:16:59 2020 New Revision: 367147 URL: https://svnweb.freebsd.org/changeset/base/367147 Log: Remove an extra if_ref(). In r348254, if_snd_tag_alloc() routines were changed to bump the ifp refcount via m_snd_tag_init(). This function wasn't in the tree at

svn commit: r367146 - head/sys/netinet

2020-10-29 Thread John Baldwin
Author: jhb Date: Thu Oct 29 22:14:34 2020 New Revision: 367146 URL: https://svnweb.freebsd.org/changeset/base/367146 Log: Store the new send tag in the right place. r350501 added the 'st' parameter, but did not pass it down to if_snd_tag_alloc(). Reviewed by: gallatin Sponsored

Re: svn commit: r367123 - in head: sbin/ifconfig sys/dev/mlx5/mlx5_en sys/kern sys/net sys/netinet sys/sys

2020-10-29 Thread John Baldwin
On 10/28/20 5:23 PM, John Baldwin wrote: > Author: jhb > Date: Thu Oct 29 00:23:16 2020 > New Revision: 367123 > URL: https://svnweb.freebsd.org/changeset/base/367123 > > Log: > Support hardware rate limiting (pacing) with TLS offload. > > ... >

svn commit: r367123 - in head: sbin/ifconfig sys/dev/mlx5/mlx5_en sys/kern sys/net sys/netinet sys/sys

2020-10-28 Thread John Baldwin
Author: jhb Date: Thu Oct 29 00:23:16 2020 New Revision: 367123 URL: https://svnweb.freebsd.org/changeset/base/367123 Log: Support hardware rate limiting (pacing) with TLS offload. - Add a new send tag type for a send tag that supports both rate limiting (packet pacing) and TLS offload

svn commit: r367122 - head/sys/netinet

2020-10-28 Thread John Baldwin
Author: jhb Date: Thu Oct 29 00:03:19 2020 New Revision: 367122 URL: https://svnweb.freebsd.org/changeset/base/367122 Log: Save the current TCP pacing rate in t_pacing_rate. Reviewed by: gallatin, gnn Sponsored by: Netflix Differential Revision:

svn commit: r366955 - head/sys/dev/cxgbe/tom

2020-10-22 Thread John Baldwin
Author: jhb Date: Fri Oct 23 00:23:54 2020 New Revision: 366955 URL: https://svnweb.freebsd.org/changeset/base/366955 Log: Handle CPL_RX_DATA on active TLS sockets. In certain edge cases, the NIC might have only received a partial TLS record which it needs to return to the driver. For

svn commit: r366901 - in head: share/man/man4 sys/amd64/conf sys/conf sys/crypto/openssl sys/i386/conf sys/modules sys/modules/ossl

2020-10-20 Thread John Baldwin
Author: jhb Date: Tue Oct 20 17:50:18 2020 New Revision: 366901 URL: https://svnweb.freebsd.org/changeset/base/366901 Log: Add a kernel crypto driver using assembly routines from OpenSSL. Currently, this supports SHA1 and SHA2-{224,256,384,512} both as plain hashes and in HMAC mode on

svn commit: r366898 - in head: secure/lib/libcrypto secure/lib/libcrypto/aarch64 secure/lib/libcrypto/amd64 secure/lib/libcrypto/arm secure/lib/libcrypto/engines/padlock secure/lib/libcrypto/i386 s...

2020-10-20 Thread John Baldwin
Author: jhb Date: Tue Oct 20 17:00:43 2020 New Revision: 366898 URL: https://svnweb.freebsd.org/changeset/base/366898 Log: Move generated OpenSSL assembly routines into the kernel sources. Sponsored by: Netflix Added: head/sys/crypto/openssl/ head/sys/crypto/openssl/aarch64/ -

svn commit: r366897 - in head/sys: conf dev/md

2020-10-20 Thread John Baldwin
= --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/md/embedfs.S Tue Oct 20 16:48:45 2020(r366897) @@ -0,0 +1,46 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2020 John Baldwin + * + * This softwar

svn commit: r366854 - head/sys/dev/cxgbe/tom

2020-10-19 Thread John Baldwin
Author: jhb Date: Mon Oct 19 20:08:50 2020 New Revision: 366854 URL: https://svnweb.freebsd.org/changeset/base/366854 Log: Re-enable receive flow control for TOE TLS sockets. Flow control was disabled during initial TOE TLS development to workaround a hang (and to match the Linux TOE TLS

svn commit: r366852 - head/sys/opencrypto

2020-10-19 Thread John Baldwin
Author: jhb Date: Mon Oct 19 20:04:03 2020 New Revision: 366852 URL: https://svnweb.freebsd.org/changeset/base/366852 Log: Fix a couple of bugs for asym crypto introduced in r359374. - Check for null pointers in the crypto_drivers[] array when checking for empty slots in

svn commit: r366845 - head/sys/kern

2020-10-19 Thread John Baldwin
Author: jhb Date: Mon Oct 19 18:24:06 2020 New Revision: 366845 URL: https://svnweb.freebsd.org/changeset/base/366845 Log: Check TF_TOE not the tod pointer to determine if TOE is active. The TF_TOE flag is the check used in the rest of the network stack to determine if TOE is active on a

svn commit: r366844 - in head: share/man/man4 sys/opencrypto

2020-10-19 Thread John Baldwin
Author: jhb Date: Mon Oct 19 18:21:41 2020 New Revision: 366844 URL: https://svnweb.freebsd.org/changeset/base/366844 Log: Mark asymmetric cryptography via OCF deprecated for 14.0. Only one MIPS-specific driver implements support for one of the asymmetric operations. There are no

svn commit: r366843 - head/sys/i386/i386

2020-10-19 Thread John Baldwin
Author: jhb Date: Mon Oct 19 17:35:45 2020 New Revision: 366843 URL: https://svnweb.freebsd.org/changeset/base/366843 Log: Properly clear PCB_KERNNPX in fpu_kern_leave(). PR: 250423 Reported by: CI Tested by:lwhsu Modified: head/sys/i386/i386/npx.c Modified:

Re: svn commit: r366766 - head

2020-10-16 Thread John Baldwin
bit premature. 'make USE_GCC_TOOLCHAINS=yes tinderbox' still uses gcc6 as I still have several open reviews for gcc9 fixes, though OpenZFS regressed the build for both gcc6 and gcc9 as Adrian is finding. I think I would also just suggest 'pkg install ${TARGET_ARCH}-gcc6' rather than building th

Re: svn commit: r366687 - head/tools/tools/crypto

2020-10-13 Thread John Baldwin
On 10/13/20 3:20 PM, John Baldwin wrote: > Author: jhb > Date: Tue Oct 13 22:20:03 2020 > New Revision: 366687 > URL: https://svnweb.freebsd.org/changeset/base/366687 > > Log: > Fix various warnings with higher WARNS. > > - Rename global 'crid' to 'request

svn commit: r366687 - head/tools/tools/crypto

2020-10-13 Thread John Baldwin
Author: jhb Date: Tue Oct 13 22:20:03 2020 New Revision: 366687 URL: https://svnweb.freebsd.org/changeset/base/366687 Log: Fix various warnings with higher WARNS. - Rename global 'crid' to 'requested_crid' to avoid shadowing. - Remove some unused function arguments. - Use __DECONST().

svn commit: r366677 - head/sys/opencrypto

2020-10-13 Thread John Baldwin
Author: jhb Date: Tue Oct 13 18:04:19 2020 New Revision: 366677 URL: https://svnweb.freebsd.org/changeset/base/366677 Log: Add support to the KTLS OCF module for AES-CBC MTE ciphersuites. This is a simplistic approach which encrypts each TLS record in two separate passes: one to generate

svn commit: r366674 - head/sys/kern

2020-10-13 Thread John Baldwin
Author: jhb Date: Tue Oct 13 17:30:34 2020 New Revision: 366674 URL: https://svnweb.freebsd.org/changeset/base/366674 Log: Permit sending empty fragments for TLS 1.0. Due to a weakness in the TLS 1.0 protocol, OpenSSL will periodically send empty TLS records ("empty fragments"). These

svn commit: r366673 - in head/sys/i386: i386 include

2020-10-13 Thread John Baldwin
Author: jhb Date: Tue Oct 13 17:27:37 2020 New Revision: 366673 URL: https://svnweb.freebsd.org/changeset/base/366673 Log: Add support for FPU_KERN_NOCTX. This mirrors the implementation on amd64. Reviewed by: kib Sponsored by: Netflix Differential Revision:

svn commit: r366672 - in head: share/man/man9 sys/crypto/aesni sys/crypto/blake2 sys/crypto/via sys/i386/include

2020-10-13 Thread John Baldwin
Author: jhb Date: Tue Oct 13 17:26:12 2020 New Revision: 366672 URL: https://svnweb.freebsd.org/changeset/base/366672 Log: Add a for i386 that includes . arm64 has a similar wrapper. This permits defining as the standard header for fpu_kern_*. Reviewed by: kib Sponsored by:

svn commit: r366584 - head/sys/kern

2020-10-09 Thread John Baldwin
Author: jhb Date: Fri Oct 9 20:20:42 2020 New Revision: 366584 URL: https://svnweb.freebsd.org/changeset/base/366584 Log: Don't invoke semunload() if seminit() fails during MOD_LOAD. The module handler code invokes a MOD_UNLOAD event immediately if MOD_LOAD fails. The result was that

svn commit: r366494 - head/sys/dev/drm2

2020-10-06 Thread John Baldwin
Author: jhb Date: Tue Oct 6 18:13:15 2020 New Revision: 366494 URL: https://svnweb.freebsd.org/changeset/base/366494 Log: Don't permit DRM buffer mappings to be upgraded to executable. Reviewed by: kib MFC after:1 month Sponsored by: DARPA Differential Revision:

svn commit: r366493 - head/sys/opencrypto

2020-10-06 Thread John Baldwin
Author: jhb Date: Tue Oct 6 18:07:52 2020 New Revision: 366493 URL: https://svnweb.freebsd.org/changeset/base/366493 Log: Simplify swcr_authcompute() after removal of deprecated algorithms. - Just use sw->octx != NULL to handle the HMAC case when finalizing the MAC. - Explicitly

svn commit: r366492 - head/sys/netinet

2020-10-06 Thread John Baldwin
Author: jhb Date: Tue Oct 6 18:02:33 2020 New Revision: 366492 URL: https://svnweb.freebsd.org/changeset/base/366492 Log: Check if_capenable, not if_capabilities when enabling rate limiting. if_capabilities is a read-only mask of supported capabilities. if_capenable is a mask under

svn commit: r366491 - in head/sys: dev/cxgbe dev/cxgbe/crypto dev/mlx5/mlx5_en kern net sys

2020-10-06 Thread John Baldwin
Author: jhb Date: Tue Oct 6 17:58:56 2020 New Revision: 366491 URL: https://svnweb.freebsd.org/changeset/base/366491 Log: Store the send tag type in the common send tag header. Both cxgbe(4) and mlx5(4) wrapped the existing send tag header with their own identical headers that stored

Re: svn commit: r366382 - in head/sys: amd64/conf arm/conf arm64/conf i386/conf powerpc/conf

2020-10-03 Thread John Baldwin
head/sys/arm/conf/NOTES > head/sys/arm64/conf/NOTES > head/sys/i386/conf/NOTES > head/sys/powerpc/conf/NOTES Perhaps sys/x86/conf/NOTES rather than sys/{amd64,i386}/conf/NOTES? -- John Baldwin ___ svn-src-all@freebsd.org mailing list http

svn commit: r366332 - releng/12.2/sys/cam/scsi

2020-10-01 Thread John Baldwin
Author: jhb Date: Thu Oct 1 17:30:38 2020 New Revision: 366332 URL: https://svnweb.freebsd.org/changeset/base/366332 Log: MFS 366297: Revert most of r360179. I had failed to notice that sgsendccb() was using cam_periph_mapmem() and thus was not passing down user pointers directly to

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

2020-10-01 Thread John Baldwin
Author: jhb Date: Thu Oct 1 17:16:05 2020 New Revision: 366331 URL: https://svnweb.freebsd.org/changeset/base/366331 Log: bhyve: Fix build with option BHYVE_SNAPSHOT 'ident' was replaced with 'ata_ident' in revision r363596. Submitted by: Vitaliy Gusev Reviewed by: Darius Mihai

svn commit: r366328 - in head/sys/amd64/vmm: . amd intel

2020-10-01 Thread John Baldwin
Author: jhb Date: Thu Oct 1 16:45:11 2020 New Revision: 366328 URL: https://svnweb.freebsd.org/changeset/base/366328 Log: Clear the upper 32-bits of registers in x86_emulate_cpuid(). Per the Intel manuals, CPUID is supposed to unconditionally zero the upper 32 bits of the involved

svn commit: r366297 - in stable: 11/sys/cam/scsi 12/sys/cam/scsi

2020-09-30 Thread John Baldwin
Author: jhb Date: Wed Sep 30 18:09:50 2020 New Revision: 366297 URL: https://svnweb.freebsd.org/changeset/base/366297 Log: MFC 366175: Revert most of r360179. I had failed to notice that sgsendccb() was using cam_periph_mapmem() and thus was not passing down user pointers directly to

svn commit: r366297 - in stable: 11/sys/cam/scsi 12/sys/cam/scsi

2020-09-30 Thread John Baldwin
Author: jhb Date: Wed Sep 30 18:09:50 2020 New Revision: 366297 URL: https://svnweb.freebsd.org/changeset/base/366297 Log: MFC 366175: Revert most of r360179. I had failed to notice that sgsendccb() was using cam_periph_mapmem() and thus was not passing down user pointers directly to

svn commit: r366296 - head/sys/kern

2020-09-30 Thread John Baldwin
Author: jhb Date: Wed Sep 30 17:49:06 2020 New Revision: 366296 URL: https://svnweb.freebsd.org/changeset/base/366296 Log: Avoid a dubious assignment to bio_data in aio_qbio(). A user pointer is not a suitable value for bio_data and the next block of code always overwrites bio_data

svn commit: r366269 - head/sys/dev/cxgbe/crypto

2020-09-29 Thread John Baldwin
Author: jhb Date: Tue Sep 29 21:51:32 2020 New Revision: 366269 URL: https://svnweb.freebsd.org/changeset/base/366269 Log: Fallback to software for more GCM and CCM requests. ccr(4) uses software to handle GCM and CCM requests not supported by the crypto engine (e.g. with only AAD and no

svn commit: r366175 - head/sys/cam/scsi

2020-09-25 Thread John Baldwin
Author: jhb Date: Fri Sep 25 21:19:56 2020 New Revision: 366175 URL: https://svnweb.freebsd.org/changeset/base/366175 Log: Revert most of r360179. I had failed to notice that sgsendccb() was using cam_periph_mapmem() and thus was not passing down user pointers directly to drivers. In

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

2020-09-25 Thread John Baldwin
Author: jhb Date: Fri Sep 25 21:18:43 2020 New Revision: 366174 URL: https://svnweb.freebsd.org/changeset/base/366174 Log: MFC 365013: Suppress -Wempty-body warnings in GCC 6.x and later. libc++ in LLVM 11 uses an empty else clause in include/c++/v1/__thread_support which triggers this

svn commit: r366094 - in stable: 11/lib/libc/gen 12/lib/libc/gen

2020-09-23 Thread John Baldwin
Author: jhb Date: Wed Sep 23 21:57:29 2020 New Revision: 366094 URL: https://svnweb.freebsd.org/changeset/base/366094 Log: MFC 365278: Don't assume objects in program sections have a size of a pointer. The size of the object at 'addr' is unknown and might be smaller than the size of a

svn commit: r366094 - in stable: 11/lib/libc/gen 12/lib/libc/gen

2020-09-23 Thread John Baldwin
Author: jhb Date: Wed Sep 23 21:57:29 2020 New Revision: 366094 URL: https://svnweb.freebsd.org/changeset/base/366094 Log: MFC 365278: Don't assume objects in program sections have a size of a pointer. The size of the object at 'addr' is unknown and might be smaller than the size of a

Re: svn commit: r365449 - head/sbin/rcorder

2020-09-17 Thread John Baldwin
On 9/17/20 3:44 PM, Olivier Cochard-Labbé wrote: > On Thu, Sep 17, 2020 at 10:21 PM John Baldwin wrote: >> I think long term we want OCF's notions of sessions to be a bit more >> fluid such that "client" sessions for things like GELI and IPSec can >> be backed b

Re: svn commit: r365855 - head/share/man/man9

2020-09-17 Thread John Baldwin
ALSO > .Xr ipsec 4 , > -.Xr bus_dma 9 , Did you mean to lose this one? (Rest looks fine) -- John Baldwin ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Re: svn commit: r365449 - head/sbin/rcorder

2020-09-17 Thread John Baldwin
/etc/rc.d/ipsec restart' post-boot without unloading any modules which would also fix your benchmark. I think long term we want OCF's notions of sessions to be a bit more fluid such that "client" sessions for things like GELI and IPSec can be backed by one or more "driver" sessions

svn commit: r365844 - head/usr.sbin/bhyvectl

2020-09-17 Thread John Baldwin
Author: jhb Date: Thu Sep 17 18:06:57 2020 New Revision: 365844 URL: https://svnweb.freebsd.org/changeset/base/365844 Log: Remove no longer used variable. Pointy hat to:jhb Reported by: kevans MFC after:1 week Modified: head/usr.sbin/bhyvectl/bhyvectl.c Modified:

svn commit: r365842 - head/usr.sbin/bhyvectl

2020-09-17 Thread John Baldwin
Author: jhb Date: Thu Sep 17 17:07:04 2020 New Revision: 365842 URL: https://svnweb.freebsd.org/changeset/base/365842 Log: Remove support for setting some obscure fields. Don't permit setting the exception bitmap or VMCS entry interrupt information. These are not generally useful to

svn commit: r365819 - in stable: 11/lib/libc/stdlib 12/lib/libc/stdlib

2020-09-16 Thread John Baldwin
Author: jhb Date: Wed Sep 16 22:55:27 2020 New Revision: 365819 URL: https://svnweb.freebsd.org/changeset/base/365819 Log: MFC 365276: Compute the correct size of the string to move forward. Previously this was counting the amount of spare room at the start of the buffer that the string

svn commit: r365819 - in stable: 11/lib/libc/stdlib 12/lib/libc/stdlib

2020-09-16 Thread John Baldwin
Author: jhb Date: Wed Sep 16 22:55:27 2020 New Revision: 365819 URL: https://svnweb.freebsd.org/changeset/base/365819 Log: MFC 365276: Compute the correct size of the string to move forward. Previously this was counting the amount of spare room at the start of the buffer that the string

svn commit: r365642 - in head/sys: amd64/amd64 x86/include

2020-09-11 Thread John Baldwin
Author: jhb Date: Fri Sep 11 20:32:40 2020 New Revision: 365642 URL: https://svnweb.freebsd.org/changeset/base/365642 Log: Add constant for the DE_CFG MSR on AMD CPUs. Reported by: Patrick Mooney MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D25885

svn commit: r365620 - head/sys/riscv/conf

2020-09-10 Thread John Baldwin
Author: jhb Date: Fri Sep 11 00:06:16 2020 New Revision: 365620 URL: https://svnweb.freebsd.org/changeset/base/365620 Log: Disable WITNESS for spin locks by default. This matches all other architectures and removes substantial overhead. Reported by: arichardson (indirectly)

svn commit: r365616 - head/sys/amd64/vmm/amd

2020-09-10 Thread John Baldwin
Author: jhb Date: Thu Sep 10 22:22:23 2020 New Revision: 365616 URL: https://svnweb.freebsd.org/changeset/base/365616 Log: Use vmcb_read/write for the vmcb snapshot functions. This avoids some unnecessary layers of indirection. Modified: head/sys/amd64/vmm/amd/vmcb.c Modified:

svn commit: r365611 - stable/12/sys/riscv/riscv

2020-09-10 Thread John Baldwin
Author: jhb Date: Thu Sep 10 20:34:44 2020 New Revision: 365611 URL: https://svnweb.freebsd.org/changeset/base/365611 Log: MFC 363459: Pass the right size to memcpy() when copying the array of FP registers. The size of the containing structure was passed instead of the size of the

Re: svn commit: r365281 - in stable: 11/sys/conf 11/sys/modules 11/sys/modules/tcp 12/sys/conf 12/sys/modules 12/sys/modules/tcp

2020-09-09 Thread John Baldwin
On 9/4/20 8:33 AM, John Baldwin wrote: > On 9/3/20 11:39 AM, Eugene Grosbein wrote: >> 04.09.2020 1:16, Eugene Grosbein wrote: >> Additional rollback of r365277 gave me successfull buildworld. > > Ah, it is MODULES_WITH_WORLD that is tripping you up. What is pro

svn commit: r365482 - stable/12/sys/crypto/aesni

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 23:19:59 2020 New Revision: 365482 URL: https://svnweb.freebsd.org/changeset/base/365482 Log: MFC 362123: Fix AES-CCM requests with an AAD size smaller than a single block. The amount to copy for the first block is the minimum of the size of the AAD region or

svn commit: r365480 - in stable: 11/sys/dev/uart 12/sys/dev/uart

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 22:50:24 2020 New Revision: 365480 URL: https://svnweb.freebsd.org/changeset/base/365480 Log: MFC 359900: Export a sysctl count of RX FIFO overrun events. uart(4) backends currently detect RX FIFO overrun errors and report them to the uart(4) core layer.

svn commit: r365480 - in stable: 11/sys/dev/uart 12/sys/dev/uart

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 22:50:24 2020 New Revision: 365480 URL: https://svnweb.freebsd.org/changeset/base/365480 Log: MFC 359900: Export a sysctl count of RX FIFO overrun events. uart(4) backends currently detect RX FIFO overrun errors and report them to the uart(4) core layer.

svn commit: r365476 - in stable: 11/sys/dev/uart 12/sys/dev/uart

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 22:19:06 2020 New Revision: 365476 URL: https://svnweb.freebsd.org/changeset/base/365476 Log: MFC 359899: Correct baud rate error calculation. Shifting right by 1 is not the same as dividing by 2 for signed values. In particular, dividing a signed value by 2

svn commit: r365476 - in stable: 11/sys/dev/uart 12/sys/dev/uart

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 22:19:06 2020 New Revision: 365476 URL: https://svnweb.freebsd.org/changeset/base/365476 Log: MFC 359899: Correct baud rate error calculation. Shifting right by 1 is not the same as dividing by 2 for signed values. In particular, dividing a signed value by 2

svn commit: r365474 - in stable: 11/lib/libc/sys 12/lib/libc/sys

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 20:53:44 2020 New Revision: 365474 URL: https://svnweb.freebsd.org/changeset/base/365474 Log: MFC 359467: Trim some duplicate EIO descriptions. While here, drop an extra conjunction from the list of error conditions for the remaining EIO description in

svn commit: r365474 - in stable: 11/lib/libc/sys 12/lib/libc/sys

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 20:53:44 2020 New Revision: 365474 URL: https://svnweb.freebsd.org/changeset/base/365474 Log: MFC 359467: Trim some duplicate EIO descriptions. While here, drop an extra conjunction from the list of error conditions for the remaining EIO description in

svn commit: r365473 - in stable/12: lib/libc/sys share/man/man9

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 20:51:19 2020 New Revision: 365473 URL: https://svnweb.freebsd.org/changeset/base/365473 Log: MFC 359465: Document EINTEGRITY errors for many system calls. EINTEGRITY was previously documented as a UFS-specific error for mount(2). This documents EINTEGRITY

svn commit: r365470 - in stable: 11/sys/modules/tcp 12/sys/modules/tcp

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 18:58:38 2020 New Revision: 365470 URL: https://svnweb.freebsd.org/changeset/base/365470 Log: MFC 361764: Revise r361712 to disable tcpmd5.ko for 'options TCP_SIGNATURE' Modified: stable/11/sys/modules/tcp/Makefile Directory Properties: stable/11/ (props

svn commit: r365470 - in stable: 11/sys/modules/tcp 12/sys/modules/tcp

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 18:58:38 2020 New Revision: 365470 URL: https://svnweb.freebsd.org/changeset/base/365470 Log: MFC 361764: Revise r361712 to disable tcpmd5.ko for 'options TCP_SIGNATURE' Modified: stable/12/sys/modules/tcp/Makefile Directory Properties: stable/12/ (props

svn commit: r365469 - in stable: 11/sys/modules/tcp 12/sys/modules/tcp

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 18:49:58 2020 New Revision: 365469 URL: https://svnweb.freebsd.org/changeset/base/365469 Log: Use kmod.opts.mk in sys/modules/tcp/Makefile to fix standalone builds. This was included in the original commit to head that added use of KERN_OPTS (r361638) but was

svn commit: r365469 - in stable: 11/sys/modules/tcp 12/sys/modules/tcp

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 18:49:58 2020 New Revision: 365469 URL: https://svnweb.freebsd.org/changeset/base/365469 Log: Use kmod.opts.mk in sys/modules/tcp/Makefile to fix standalone builds. This was included in the original commit to head that added use of KERN_OPTS (r361638) but was

svn commit: r365468 - stable/12/sys/modules/if_vlan

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 18:33:41 2020 New Revision: 365468 URL: https://svnweb.freebsd.org/changeset/base/365468 Log: Partial MFC 357275: if_vlan grew a dependency on opt_inet6.h in r356993 Modified: stable/12/sys/modules/if_vlan/Makefile Modified:

svn commit: r365467 - in stable: 11/sys/modules/if_enc 12/sys/modules/if_enc

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 18:29:20 2020 New Revision: 365467 URL: https://svnweb.freebsd.org/changeset/base/365467 Log: MFC 361634: Add opt_ipsec.h to fix standalone builds after r361633. Modified: stable/12/sys/modules/if_enc/Makefile Directory Properties: stable/12/ (props changed)

svn commit: r365467 - in stable: 11/sys/modules/if_enc 12/sys/modules/if_enc

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 18:29:20 2020 New Revision: 365467 URL: https://svnweb.freebsd.org/changeset/base/365467 Log: MFC 361634: Add opt_ipsec.h to fix standalone builds after r361633. Modified: stable/11/sys/modules/if_enc/Makefile Directory Properties: stable/11/ (props changed)

svn commit: r365465 - in stable: 11/share/mk 11/sys/conf 12/share/mk 12/sys/conf

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 16:43:32 2020 New Revision: 365465 URL: https://svnweb.freebsd.org/changeset/base/365465 Log: MFC 354970: Add a kmod.opts.mk. This Makefile sets KERN_OPTS. This permits kernel module Makefiles to use KERN_OPTS to control the value of variables such as SRCS

svn commit: r365465 - in stable: 11/share/mk 11/sys/conf 12/share/mk 12/sys/conf

2020-09-08 Thread John Baldwin
Author: jhb Date: Tue Sep 8 16:43:32 2020 New Revision: 365465 URL: https://svnweb.freebsd.org/changeset/base/365465 Log: MFC 354970: Add a kmod.opts.mk. This Makefile sets KERN_OPTS. This permits kernel module Makefiles to use KERN_OPTS to control the value of variables such as SRCS

Re: svn commit: r365371 - in head: . contrib/jemalloc contrib/jemalloc/doc lib/libc/stdlib/jemalloc share/man/man5 share/mk tools/build/options

2020-09-05 Thread John Baldwin
y. The result would be that on head src.conf(5) would say: WITH_MALLOC_PRODUCTION Set to disable assertions... And on stable src.conf(5) would say: WITHOUT_MALLOC_PRODUCTION Set to enable assertions... Just as when other defaults change across branches, the current vs stable different is handled by the

Re: svn commit: r365281 - in stable: 11/sys/conf 11/sys/modules 11/sys/modules/tcp 12/sys/conf 12/sys/modules 12/sys/modules/tcp

2020-09-04 Thread John Baldwin
t; stage > 4.3: building everything > but then it fails there: > > ===> sys/modules/if_enc (all) > Building /usr/local/obj/home/src/sys/modules/if_enc/if_enc.o > --- if_enc.o --- > /home/src/sys/net/if_enc.c:33:10: fatal error: 'opt_ipsec.h' file n

svn commit: r365318 - head/stand/efi/loader

2020-09-03 Thread John Baldwin
Author: jhb Date: Fri Sep 4 00:11:01 2020 New Revision: 365318 URL: https://svnweb.freebsd.org/changeset/base/365318 Log: Quiet int-to-pointer-cast warnings on i386 with GCC 9. Reviewed by: emaste Differential Revision:https://reviews.freebsd.org/D26200 Modified:

svn commit: r365302 - head/lib/libc/tests/resolv

2020-09-03 Thread John Baldwin
Author: jhb Date: Thu Sep 3 14:50:15 2020 New Revision: 365302 URL: https://svnweb.freebsd.org/changeset/base/365302 Log: Various fixes to the load() function. - Use getline() instead of fgetln(). This ensures the returned string is always null-terminated without losing the last

svn commit: r365283 - head/sys/dev/iicbus/mux

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 22:27:30 2020 New Revision: 365283 URL: https://svnweb.freebsd.org/changeset/base/365283 Log: Fix the variable name passed to OF_getprop(). Reported by: tinderbox Modified: head/sys/dev/iicbus/mux/ltc430x.c Modified: head/sys/dev/iicbus/mux/ltc430x.c

svn commit: r365282 - in head: lib/libifconfig rescue/rescue share/mk

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 22:10:08 2020 New Revision: 365282 URL: https://svnweb.freebsd.org/changeset/base/365282 Log: libifconfig now depends on libm due to usage of log10(). ld.bfd in particular requires -lm to come after libifconfig on the command line when linking rescue.

Re: svn commit: r365281 - in stable: 11/sys/conf 11/sys/modules 11/sys/modules/tcp 12/sys/conf 12/sys/modules 12/sys/modules/tcp

2020-09-02 Thread John Baldwin
On 9/2/20 2:36 PM, John Baldwin wrote: > Author: jhb > Date: Wed Sep 2 21:36:55 2020 > New Revision: 365281 > URL: https://svnweb.freebsd.org/changeset/base/365281 > > Log: > MFC 361638,361712: Only build ipsec modules for kernels with IPSEC_SUPPORT. > > 3

svn commit: r365281 - in stable: 11/sys/conf 11/sys/modules 11/sys/modules/tcp 12/sys/conf 12/sys/modules 12/sys/modules/tcp

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 21:36:55 2020 New Revision: 365281 URL: https://svnweb.freebsd.org/changeset/base/365281 Log: MFC 361638,361712: Only build ipsec modules for kernels with IPSEC_SUPPORT. 361638: Only build ipsec modules if the kernel includes IPSEC_SUPPORT. Honoring the

svn commit: r365281 - in stable: 11/sys/conf 11/sys/modules 11/sys/modules/tcp 12/sys/conf 12/sys/modules 12/sys/modules/tcp

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 21:36:55 2020 New Revision: 365281 URL: https://svnweb.freebsd.org/changeset/base/365281 Log: MFC 361638,361712: Only build ipsec modules for kernels with IPSEC_SUPPORT. 361638: Only build ipsec modules if the kernel includes IPSEC_SUPPORT. Honoring the

svn commit: r365280 - head/lib/libc/tests/sys

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 21:17:54 2020 New Revision: 365280 URL: https://svnweb.freebsd.org/changeset/base/365280 Log: 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 open() when

svn commit: r365278 - head/lib/libc/gen

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 20:43:08 2020 New Revision: 365278 URL: https://svnweb.freebsd.org/changeset/base/365278 Log: Don't assume objects in program sections have a size of a pointer. The size of the object at 'addr' is unknown and might be smaller than the size of a pointer (e.g.

svn commit: r365277 - in stable: 11/sys/net 11/sys/netipsec 12/sys/net 12/sys/netipsec

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 20:36:33 2020 New Revision: 365277 URL: https://svnweb.freebsd.org/changeset/base/365277 Log: MFC 361633: Consistently include opt_ipsec.h for consumers of . This fixes ipsec.ko to include all of IPSEC_DEBUG. Modified: stable/11/sys/net/if_enc.c

svn commit: r365277 - in stable: 11/sys/net 11/sys/netipsec 12/sys/net 12/sys/netipsec

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 20:36:33 2020 New Revision: 365277 URL: https://svnweb.freebsd.org/changeset/base/365277 Log: MFC 361633: Consistently include opt_ipsec.h for consumers of . This fixes ipsec.ko to include all of IPSEC_DEBUG. Modified: stable/12/sys/net/if_enc.c

Re: svn commit: r365268 - in head: sbin/sysctl sys/kern

2020-09-02 Thread John Baldwin
On 9/2/20 12:09 PM, Mark Johnston wrote: > On Wed, Sep 02, 2020 at 11:43:56AM -0700, John Baldwin wrote: >> On 9/2/20 11:17 AM, Mark Johnston wrote: >>> Author: markj >>> Date: Wed Sep 2 18:17:08 2020 >>> New Revision: 365268 >>> URL: https://svnweb.

svn commit: r365276 - head/lib/libc/stdlib

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 20:04:26 2020 New Revision: 365276 URL: https://svnweb.freebsd.org/changeset/base/365276 Log: Compute the correct size of the string to move forward. Previously this was counting the amount of spare room at the start of the buffer that the string needed to

svn commit: r365270 - in stable: 11/sys/conf 11/sys/modules/ipsec 11/sys/modules/tcp/tcpmd5 12/sys/conf 12/sys/modules/ipsec 12/sys/modules/tcp/tcpmd5

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 19:02:48 2020 New Revision: 365270 URL: https://svnweb.freebsd.org/changeset/base/365270 Log: MFC 361632: Honor opt_ipsec.h from kernel builds. To make this simpler, set the default contents of opt_ipsec.h for standalone modules in sys/conf/config.mk.

svn commit: r365270 - in stable: 11/sys/conf 11/sys/modules/ipsec 11/sys/modules/tcp/tcpmd5 12/sys/conf 12/sys/modules/ipsec 12/sys/modules/tcp/tcpmd5

2020-09-02 Thread John Baldwin
Author: jhb Date: Wed Sep 2 19:02:48 2020 New Revision: 365270 URL: https://svnweb.freebsd.org/changeset/base/365270 Log: MFC 361632: Honor opt_ipsec.h from kernel builds. To make this simpler, set the default contents of opt_ipsec.h for standalone modules in sys/conf/config.mk.

Re: svn commit: r365268 - in head: sbin/sysctl sys/kern

2020-09-02 Thread John Baldwin
XPAGESIZES is increased. > - Add a "S,pagesize" formatter to sysctl(8). Doesn't sysctl(8) handle scalar types that are arrays? That is, couldn't this change just be the change to not truncate 'len' without needing to make it opaque and needing a custom printer, etc.? -- John Baldwin ___

Re: svn commit: r365091 - in head/sys/dev/virtio: . balloon block console network scsi

2020-09-01 Thread John Baldwin
}, > - > { 0, NULL } > }; While many of the fixes are correct, I feel that this one (along with similar changes to remove a blank line before table terminators in devmethod tables, or in tables in the acpi drivers I saw in acpi_support) are a regression. Also, in general some

svn commit: r365055 - head/lib/libc/tests/resolv

2020-09-01 Thread John Baldwin
Author: jhb Date: Tue Sep 1 16:20:42 2020 New Revision: 365055 URL: https://svnweb.freebsd.org/changeset/base/365055 Log: Fix a buffer overrun. getln() returns 'len' valid characters. line[len] is out of bounds. Reported by: CHERI Reviewed by: brooks Obtained from:

svn commit: r365013 - head/share/mk

2020-08-31 Thread John Baldwin
Author: jhb Date: Mon Aug 31 21:57:01 2020 New Revision: 365013 URL: https://svnweb.freebsd.org/changeset/base/365013 Log: Suppress -Wempty-body warnings in GCC 6.x and later. libc++ in LLVM 11 uses an empty else clause in include/c++/v1/__thread_support which triggers this warning.

svn commit: r365012 - head/lib/libc/gen

2020-08-31 Thread John Baldwin
Author: jhb Date: Mon Aug 31 21:55:25 2020 New Revision: 365012 URL: https://svnweb.freebsd.org/changeset/base/365012 Log: Fix the build of scandir_b with GCC. Use explicit typedefs for block thunk structures as in r264143. Reviewed by: kib, adrian MFC after:1 week

svn commit: r364934 - in stable: 11/sys/kern 12/sys/kern

2020-08-28 Thread John Baldwin
Author: jhb Date: Fri Aug 28 19:52:16 2020 New Revision: 364934 URL: https://svnweb.freebsd.org/changeset/base/364934 Log: MFC 361613: Permit SO_NO_DDP and SO_NO_OFFLOAD to be read via getsockopt(2). Modified: stable/11/sys/kern/uipc_socket.c Directory Properties: stable/11/ (props

svn commit: r364934 - in stable: 11/sys/kern 12/sys/kern

2020-08-28 Thread John Baldwin
Author: jhb Date: Fri Aug 28 19:52:16 2020 New Revision: 364934 URL: https://svnweb.freebsd.org/changeset/base/364934 Log: MFC 361613: Permit SO_NO_DDP and SO_NO_OFFLOAD to be read via getsockopt(2). Modified: stable/12/sys/kern/uipc_socket.c Directory Properties: stable/12/ (props

Re: svn commit: r364822 - in head/crypto/openssl/crypto: aes/asm bn/asm chacha/asm ec/asm modes/asm poly1305/asm sha/asm

2020-08-27 Thread John Baldwin
On 8/27/20 1:28 PM, Benjamin Kaduk wrote: > On Thu, Aug 27, 2020 at 1:25 PM John Baldwin wrote: > >> On 8/26/20 9:55 AM, Jung-uk Kim wrote: >>> Author: jkim >>> Date: Wed Aug 26 16:55:28 2020 >>> New Revision: 364822 >>> URL: https://svnw

Re: svn commit: r364822 - in head/crypto/openssl/crypto: aes/asm bn/asm chacha/asm ec/asm modes/asm poly1305/asm sha/asm

2020-08-27 Thread John Baldwin
ion string. This broke compiler test for > AVX instruction support. Have you opened a PR upstream to fix this? They should be willing to accept it since it probably affects clang on OS X as well? -- John Baldwin ___ svn-src-all@freebsd.org mailing list ht

svn commit: r364847 - in stable: 11/lib/libc/sys 12/lib/libc/sys

2020-08-26 Thread John Baldwin
Author: jhb Date: Wed Aug 26 22:52:07 2020 New Revision: 364847 URL: https://svnweb.freebsd.org/changeset/base/364847 Log: MFC 361767: Document SO_NO_OFFLOADS and SO_NO_DDP. Modified: stable/12/lib/libc/sys/getsockopt.2 Directory Properties: stable/12/ (props changed) Changes in other

svn commit: r364847 - in stable: 11/lib/libc/sys 12/lib/libc/sys

2020-08-26 Thread John Baldwin
Author: jhb Date: Wed Aug 26 22:52:07 2020 New Revision: 364847 URL: https://svnweb.freebsd.org/changeset/base/364847 Log: MFC 361767: Document SO_NO_OFFLOADS and SO_NO_DDP. Modified: stable/11/lib/libc/sys/getsockopt.2 Directory Properties: stable/11/ (props changed) Changes in other

Re: svn commit: r364846 - head/sys/opencrypto

2020-08-26 Thread John Baldwin
On 8/26/20 3:36 PM, John Baldwin wrote: > Author: jhb > Date: Wed Aug 26 22:36:08 2020 > New Revision: 364846 > URL: https://svnweb.freebsd.org/changeset/base/364846 > > Log: > Name the on-stack union of compat thunks. > > C does not permit an anonymous

<    1   2   3   4   5   6   7   8   9   10   >