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

2020-05-11 Thread John Baldwin
Author: jhb Date: Mon May 11 16:14:20 2020 New Revision: 360901 URL: https://svnweb.freebsd.org/changeset/base/360901 Log: MFC 356840,357344: Add stricter checks on user changes to SSTATUS. 356840: Check for invalid sstatus values in set_mcontext(). Previously, this check was only

svn commit: r360874 - in stable/12/sys: arm64/arm64 riscv/riscv

2020-05-10 Thread John Baldwin
Author: jhb Date: Sun May 10 14:53:08 2020 New Revision: 360874 URL: https://svnweb.freebsd.org/changeset/base/360874 Log: MFC 356839: Save and restore floating point registers in get/set_mcontext(). arm64 and riscv were only saving and restoring floating point registers for sendsig()

svn commit: r360862 - stable/12/sys/riscv/include

2020-05-09 Thread John Baldwin
Author: jhb Date: Sun May 10 00:34:09 2020 New Revision: 360862 URL: https://svnweb.freebsd.org/changeset/base/360862 Log: MFC 357255,357337: Fix definition of SSTATUS_SD and MSTATUS_SD. 357255: Fix definition of SSTATUS_SD The SD bit is defined as the MSB of the sstatus register,

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

2020-05-09 Thread John Baldwin
Author: jhb Date: Sat May 9 21:34:50 2020 New Revision: 360857 URL: https://svnweb.freebsd.org/changeset/base/360857 Log: MFC 357313: Trim duplicate CSR swaps from user exceptions. The stack pointer is swapped with the sscratch CSR just before the jump to cpu_exception_handler_user

svn commit: r360856 - in stable/12/sys/riscv: include riscv

2020-05-09 Thread John Baldwin
Author: jhb Date: Sat May 9 21:32:44 2020 New Revision: 360856 URL: https://svnweb.freebsd.org/changeset/base/360856 Log: MFC 357305: Remove unused fields from struct pcb. cpu_switch/throw() and savectx() do not save or restore any values in these fields which mostly held

svn commit: r360855 - stable/12/sys/riscv/include

2020-05-09 Thread John Baldwin
Author: jhb Date: Sat May 9 20:14:05 2020 New Revision: 360855 URL: https://svnweb.freebsd.org/changeset/base/360855 Log: MFC 357591: Read the breakpoint instruction to determine its length in BKPT_SKIP. This fixes continuing from debug.kdb.enter=1 after enabling the use of compressed

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

2020-05-09 Thread John Baldwin
Author: jhb Date: Sat May 9 20:10:01 2020 New Revision: 360854 URL: https://svnweb.freebsd.org/changeset/base/360854 Log: MFC 357593: Remove stale workaround for the htif console. In practice this discarded all characters entered at the DDB prompt. Modified:

Re: svn commit: r360850 - in stable/12: . share/man/man7 share/mk

2020-05-09 Thread John Baldwin
On 5/9/20 10:14 AM, John Baldwin wrote: > Author: jhb > Date: Sat May 9 17:14:59 2020 > New Revision: 360850 > URL: https://svnweb.freebsd.org/changeset/base/360850 > > Log: > MFC 356499: Use clang and lld as the default toolchain for RISCV. > > - Enable clang a

svn commit: r360853 - in stable/12/share: man/man7 mk

2020-05-09 Thread John Baldwin
Author: jhb Date: Sat May 9 20:02:48 2020 New Revision: 360853 URL: https://svnweb.freebsd.org/changeset/base/360853 Log: MFC 354289,354441,355095: Use lld on armv6. 354289: armv6: Switch to LLD by default This could just be ${__TT} == "arm", except armv5 isn't slated for death

svn commit: r360850 - in stable/12: . share/man/man7 share/mk

2020-05-09 Thread John Baldwin
Author: jhb Date: Sat May 9 17:14:59 2020 New Revision: 360850 URL: https://svnweb.freebsd.org/changeset/base/360850 Log: MFC 356499: Use clang and lld as the default toolchain for RISCV. - Enable clang and lld as system toolchains. - Don't use external GCC for universe by default. -

Re: svn commit: r360817 - stable/12/sys/riscv/riscv

2020-05-08 Thread John Baldwin
On 5/8/20 8:05 AM, John Baldwin wrote: > Author: jhb > Date: Fri May 8 15:05:05 2020 > New Revision: 360817 > URL: https://svnweb.freebsd.org/changeset/base/360817 > > Log: > MFC 354603,354604,354717,354718: Sync PLIC code with head. This fixes booting under QEMU wi

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

2020-05-08 Thread John Baldwin
Author: jhb Date: Fri May 8 16:41:23 2020 New Revision: 360818 URL: https://svnweb.freebsd.org/changeset/base/360818 Log: Fix a memory leak for ENCIOC_GETSTRING I introduced in r360171. MFC after:1 week Sponsored by: DARPA Modified: head/sys/cam/scsi/scsi_enc_ses.c Modified:

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

2020-05-08 Thread John Baldwin
Author: jhb Date: Fri May 8 15:05:05 2020 New Revision: 360817 URL: https://svnweb.freebsd.org/changeset/base/360817 Log: MFC 354603,354604,354717,354718: Sync PLIC code with head. 354603: plic: fix PLIC_MAX_IRQS The maximum number of PLIC interrupts is defined in the PLIC spec[1]

svn commit: r360814 - in stable/12/sys: conf kern

2020-05-08 Thread John Baldwin
Author: jhb Date: Fri May 8 14:48:45 2020 New Revision: 360814 URL: https://svnweb.freebsd.org/changeset/base/360814 Log: MFC 348611: Expose the kernel's build-ID through sysctl After our migration (of certain architectures) to lld the kernel is built with a unique build-ID. Make it

Re: svn commit: r360808 - in stable/12/sys: conf riscv/include riscv/riscv

2020-05-08 Thread John Baldwin
On 5/7/20 10:30 PM, John Baldwin wrote: > Author: jhb > Date: Fri May 8 05:30:10 2020 > New Revision: 360808 > URL: https://svnweb.freebsd.org/changeset/base/360808 > > Log: > MFC 354719,354720,354721,354722,357480: OpenSBI support. Booting via -kernel with qemu hangs

svn commit: r360808 - in stable/12/sys: conf riscv/include riscv/riscv

2020-05-07 Thread John Baldwin
Author: jhb Date: Fri May 8 05:30:10 2020 New Revision: 360808 URL: https://svnweb.freebsd.org/changeset/base/360808 Log: MFC 354719,354720,354721,354722,357480: OpenSBI support. 354719: RISC-V: pass arg6 in sbi_call Allow for an additional argument to sbi_call which will be passed

svn commit: r360793 - in stable/12/sys: conf riscv/riscv

2020-05-07 Thread John Baldwin
Author: jhb Date: Thu May 7 19:19:39 2020 New Revision: 360793 URL: https://svnweb.freebsd.org/changeset/base/360793 Log: MFC 356481: Work around lld's inability to handle undefined weak symbols on risc-v. lld on RISC-V is not yet able to handle undefined weak symbols for non-PIC code

svn commit: r360792 - stable/12/sys/conf

2020-05-07 Thread John Baldwin
Author: jhb Date: Thu May 7 18:47:54 2020 New Revision: 360792 URL: https://svnweb.freebsd.org/changeset/base/360792 Log: MFC 357145: Compile hack.c with normal CFLAGS + -shared -nostdlib. Originally, hack.c was compiled into a shard object with just -shared -nostdlib. This assumed

svn commit: r360783 - stable/12/lib/libc/riscv/gen

2020-05-07 Thread John Baldwin
Author: jhb Date: Thu May 7 15:59:55 2020 New Revision: 360783 URL: https://svnweb.freebsd.org/changeset/base/360783 Log: MFC 355403: Use "far" calls and branches so that lld uses valid relocations. Conditional branch and jump instructions do not always call via PLT stubs and thus will

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

2020-05-07 Thread John Baldwin
Author: jhb Date: Thu May 7 14:20:52 2020 New Revision: 360780 URL: https://svnweb.freebsd.org/changeset/base/360780 Log: MFC 355428,356504: Add a new "riscv-relaxations" linker feature. 355428: Add a new "riscv-relaxations" linker feature. When the linker doesn't have this

svn commit: r360721 - in stable: 11/sys/netipsec 12/sys/netipsec

2020-05-06 Thread John Baldwin
Author: jhb Date: Wed May 6 23:23:22 2020 New Revision: 360721 URL: https://svnweb.freebsd.org/changeset/base/360721 Log: MFC 360202,360206: Deprecate 3des support in IPsec for FreeBSD 13. 360202: Deprecate 3des support in IPsec for FreeBSD 13. RFC 8221 does not outright ban 3des

svn commit: r360721 - in stable: 11/sys/netipsec 12/sys/netipsec

2020-05-06 Thread John Baldwin
Author: jhb Date: Wed May 6 23:23:22 2020 New Revision: 360721 URL: https://svnweb.freebsd.org/changeset/base/360721 Log: MFC 360202,360206: Deprecate 3des support in IPsec for FreeBSD 13. 360202: Deprecate 3des support in IPsec for FreeBSD 13. RFC 8221 does not outright ban 3des

svn commit: r360718 - in stable/12/sys/dev/cxgbe: . tom

2020-05-06 Thread John Baldwin
Author: jhb Date: Wed May 6 22:49:21 2020 New Revision: 360718 URL: https://svnweb.freebsd.org/changeset/base/360718 Log: MFC 358415: Rename TOE TLS stats from [rt]x_tls_* to [rt]x_toe_tls_*. This more clearly differentiates TLS records encrypted and decrypted in TOE connections from

svn commit: r360717 - in stable/12/sys: conf dev/cxgbe dev/cxgbe/crypto modules/cxgbe/if_cxgbe

2020-05-06 Thread John Baldwin
===== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/12/sys/dev/cxgbe/crypto/t4_keyctx.c Wed May 6 22:44:53 2020 (r360717, copy of r354667, head/sys/dev/cxgbe/crypto/t4_keyctx.c) @@ -0,0 +1,1

svn commit: r360713 - in stable/12: lib/libvmmapi sys/amd64/include sys/amd64/vmm/amd sys/amd64/vmm/intel usr.sbin/bhyve

2020-05-06 Thread John Baldwin
Author: jhb Date: Wed May 6 22:20:37 2020 New Revision: 360713 URL: https://svnweb.freebsd.org/changeset/base/360713 Log: MFC 355724,360166: Software breakpoints on Intel CPUs. 355724: Support software breakpoints in the debug server on Intel CPUs. - Allow the userland hypervisor

svn commit: r360710 - in head: share/man/man4 sys/dev/ubsec

2020-05-06 Thread John Baldwin
Author: jhb Date: Wed May 6 22:15:09 2020 New Revision: 360710 URL: https://svnweb.freebsd.org/changeset/base/360710 Log: Deprecate ubsec(4) for FreeBSD 13.0. With the removal of in-tree consumers of DES, Triple DES, and MD5-HMAC, the only algorithm this driver still supports is

Re: svn commit: r360648 - in head: lib/libvmmapi share/man/man5 share/mk sys/amd64/include sys/amd64/vmm sys/amd64/vmm/amd sys/amd64/vmm/intel sys/amd64/vmm/io sys/conf sys/modules/vmm tools/build/opt

2020-05-06 Thread John Baldwin
On 5/5/20 7:20 PM, Li-Wen Hsu wrote: > On Tue, May 5, 2020 at 8:02 AM John Baldwin wrote: >> >> Author: jhb >> Date: Tue May 5 00:02:04 2020 >> New Revision: 360648 >> URL: https://svnweb.freebsd.org/changeset/base/360648 > ... >> Added: >> h

svn commit: r360681 - stable/12/sys/mips/conf

2020-05-05 Thread John Baldwin
Author: jhb Date: Wed May 6 05:29:00 2020 New Revision: 360681 URL: https://svnweb.freebsd.org/changeset/base/360681 Log: Update a few more kernel configs for tun -> tuntap. Modified: stable/12/sys/mips/conf/GXEMUL stable/12/sys/mips/conf/GXEMUL32 Modified: stable/12/sys/mips/conf/GXEMUL

Re: svn commit: r360648 - in head: lib/libvmmapi share/man/man5 share/mk sys/amd64/include sys/amd64/vmm sys/amd64/vmm/amd sys/amd64/vmm/intel sys/amd64/vmm/io sys/conf sys/modules/vmm tools/build/opt

2020-05-05 Thread John Baldwin
On 5/4/20 5:02 PM, John Baldwin wrote: > Author: jhb > Date: Tue May 5 00:02:04 2020 > New Revision: 360648 > URL: https://svnweb.freebsd.org/changeset/base/360648 > > Log: > Initial support for bhyve save and restore. This represents a lot of work by the folks at UPB.

svn commit: r360653 - in stable: 11/share/man/man9 12/share/man/man9

2020-05-04 Thread John Baldwin
Author: jhb Date: Tue May 5 04:42:47 2020 New Revision: 360653 URL: https://svnweb.freebsd.org/changeset/base/360653 Log: MFC 357062: Correct the return types of fueword*(). Modified: stable/11/share/man/man9/fetch.9 Directory Properties: stable/11/ (props changed) Changes in other

svn commit: r360653 - in stable: 11/share/man/man9 12/share/man/man9

2020-05-04 Thread John Baldwin
Author: jhb Date: Tue May 5 04:42:47 2020 New Revision: 360653 URL: https://svnweb.freebsd.org/changeset/base/360653 Log: MFC 357062: Correct the return types of fueword*(). Modified: stable/12/share/man/man9/fetch.9 Directory Properties: stable/12/ (props changed) Changes in other

svn commit: r360652 - stable/12/sys/opencrypto

2020-05-04 Thread John Baldwin
Author: jhb Date: Tue May 5 04:37:05 2020 New Revision: 360652 URL: https://svnweb.freebsd.org/changeset/base/360652 Log: MFC 356508: Use falloc_noinstall + finstall for crypto file descriptors. Modified: stable/12/sys/opencrypto/cryptodev.c Directory Properties: stable/12/ (props

svn commit: r360651 - stable/12/usr.sbin/bhyve

2020-05-04 Thread John Baldwin
Author: jhb Date: Tue May 5 04:25:25 2020 New Revision: 360651 URL: https://svnweb.freebsd.org/changeset/base/360651 Log: MFC 355683: Don't call into the debug server if it isn't configured. Modified: stable/12/usr.sbin/bhyve/bhyverun.c Directory Properties: stable/12/ (props changed)

svn commit: r360648 - in head: lib/libvmmapi share/man/man5 share/mk sys/amd64/include sys/amd64/vmm sys/amd64/vmm/amd sys/amd64/vmm/intel sys/amd64/vmm/io sys/conf sys/modules/vmm tools/build/opti...

2020-05-04 Thread John Baldwin
Author: jhb Date: Tue May 5 00:02:04 2020 New Revision: 360648 URL: https://svnweb.freebsd.org/changeset/base/360648 Log: Initial support for bhyve save and restore. Save and restore (also known as suspend and resume) permits a snapshot to be taken of a guest's state that can later be

svn commit: r360642 - head/sys/opencrypto

2020-05-04 Thread John Baldwin
Author: jhb Date: Mon May 4 22:31:38 2020 New Revision: 360642 URL: https://svnweb.freebsd.org/changeset/base/360642 Log: Use a lookup table of algorithm types for alg_is_* helpers. This makes it easier to maintain these functions as algorithms are added or removed. Reviewed by:

svn commit: r360634 - head/sbin/setkey

2020-05-04 Thread John Baldwin
Author: jhb Date: Mon May 4 16:50:01 2020 New Revision: 360634 URL: https://svnweb.freebsd.org/changeset/base/360634 Log: Add RFC reference for AES-CTR with IPsec. MFC after:1 week Sponsored by: Chelsio Communications Modified: head/sbin/setkey/setkey.8 Modified:

svn commit: r360633 - in stable: 11/share/man/man9 11/sys/kern 11/sys/sys 12/share/man/man9 12/sys/kern 12/sys/sys

2020-05-04 Thread John Baldwin
Author: jhb Date: Mon May 4 16:30:36 2020 New Revision: 360633 URL: https://svnweb.freebsd.org/changeset/base/360633 Log: MFC 355600: Add a callout_func_t typedef for functions used with callout_*(). This typedef is the same as timeout_t except that it is in the callout namespace and

svn commit: r360633 - in stable: 11/share/man/man9 11/sys/kern 11/sys/sys 12/share/man/man9 12/sys/kern 12/sys/sys

2020-05-04 Thread John Baldwin
Author: jhb Date: Mon May 4 16:30:36 2020 New Revision: 360633 URL: https://svnweb.freebsd.org/changeset/base/360633 Log: MFC 355600: Add a callout_func_t typedef for functions used with callout_*(). This typedef is the same as timeout_t except that it is in the callout namespace and

Re: svn commit: r360574 - in head: share/man/man9 sys/dev/cxgbe sys/dev/cxgbe/crypto sys/dev/cxgbe/tom sys/kern sys/sys

2020-05-04 Thread John Baldwin
ile need to be updated and old links added to ObsoleteFiles.inc? -- 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"

svn commit: r360565 - head/sys/opencrypto

2020-05-02 Thread John Baldwin
Author: jhb Date: Sat May 2 17:18:32 2020 New Revision: 360565 URL: https://svnweb.freebsd.org/changeset/base/360565 Log: Actually remove support for Triple DES, not just the warning. Missed in r360562. Modified: head/sys/opencrypto/cryptodev.c Modified:

svn commit: r360563 - head

2020-05-02 Thread John Baldwin
Author: jhb Date: Sat May 2 14:23:55 2020 New Revision: 360563 URL: https://svnweb.freebsd.org/changeset/base/360563 Log: Document removal of deprecated algorithms from /dev/crypto. Modified: head/RELNOTES Modified: head/RELNOTES

svn commit: r360562 - in head: sys/opencrypto tests/sys/opencrypto

2020-05-02 Thread John Baldwin
Author: jhb Date: Sat May 2 14:20:32 2020 New Revision: 360562 URL: https://svnweb.freebsd.org/changeset/base/360562 Log: Remove support for the algorithms deprecated in r348876. This removes support for the following algorithms: - ARC4 - Blowfish - CAST128 - DES - 3DES -

svn commit: r360561 - stable/12

2020-05-02 Thread John Baldwin
Author: jhb Date: Sat May 2 13:42:03 2020 New Revision: 360561 URL: https://svnweb.freebsd.org/changeset/base/360561 Log: MFC 354661,354693: Fix WITH_CLANG_BOOTSTRAP without WITH_CLANG_IS_CC. 354661: Force MK_CLANG_IS_CC on in XMAKE. This ensures that a bootstrap clang compiler is

svn commit: r360560 - head/sys/netipsec

2020-05-01 Thread John Baldwin
Author: jhb Date: Sat May 2 01:00:29 2020 New Revision: 360560 URL: https://svnweb.freebsd.org/changeset/base/360560 Log: Don't pass bogus keys down for NULL algorithms. The changes in r359374 added various sanity checks in sessions and requests created by crypto consumers in part to

Re: svn commit: r360557 - in head: lib/libipsec sbin/setkey sys/netipsec usr.bin/netstat

2020-05-01 Thread John Baldwin
On 5/1/20 5:06 PM, John Baldwin wrote: > Author: jhb > Date: Sat May 2 00:06:58 2020 > New Revision: 360557 > URL: https://svnweb.freebsd.org/changeset/base/360557 > > Log: > Remove support for IPsec algorithms deprecated in r348205 and r360202. > > Exampl

svn commit: r360558 - head

2020-05-01 Thread John Baldwin
Author: jhb Date: Sat May 2 00:08:44 2020 New Revision: 360558 URL: https://svnweb.freebsd.org/changeset/base/360558 Log: Document removal of deprecated IPsec algorithms. Modified: head/RELNOTES Modified: head/RELNOTES

svn commit: r360557 - in head: lib/libipsec sbin/setkey sys/netipsec usr.bin/netstat

2020-05-01 Thread John Baldwin
Author: jhb Date: Sat May 2 00:06:58 2020 New Revision: 360557 URL: https://svnweb.freebsd.org/changeset/base/360557 Log: Remove support for IPsec algorithms deprecated in r348205 and r360202. Examples of depecrated algorithms in manual pages and sample configs are updated where

svn commit: r360511 - in head: lib/libc/db/mpool lib/libc/gen lib/libc/iconv lib/libc/posix1e lib/libc/secure lib/libgcc_s lib/libprocstat share/man/man5 share/mk tools/build/options

2020-04-30 Thread John Baldwin
Author: jhb Date: Thu Apr 30 22:08:40 2020 New Revision: 360511 URL: https://svnweb.freebsd.org/changeset/base/360511 Log: Remove the SYMVER build option. This option was added as a transition aide when symbol versioning was first added. It was enabled by default in 2007 and is

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

2020-04-30 Thread John Baldwin
Author: jhb Date: Thu Apr 30 15:24:05 2020 New Revision: 360497 URL: https://svnweb.freebsd.org/changeset/base/360497 Log: MFC 354660: Enable the RISC-V LLVM backend by default. Modified: stable/12/share/mk/src.opts.mk Directory Properties: stable/12/ (props changed) Modified:

svn commit: r360468 - stable/12/usr.bin/truss

2020-04-29 Thread John Baldwin
Author: jhb Date: Wed Apr 29 16:04:59 2020 New Revision: 360468 URL: https://svnweb.freebsd.org/changeset/base/360468 Log: MFC 350069: Use PT_GET_SC_ARGS and PT_GET_SC_RET in truss. This removes all of the architecture-specific functions from truss. A per-ABI structure is still needed

Re: svn commit: r360453 - head

2020-04-29 Thread John Baldwin
inspected to > remove non-cross-build-safe tools, used for buildworld/buildkernel, > and potentially incremental build support. > > Sponsored by: Dell EMC Thanks for the quick fix! -- John Baldwin ___ svn-src-all@freebsd.org ma

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

2020-04-28 Thread John Baldwin
ry as a build tool and use that instead of the host config binary. I'm not quite sure where to start on fixing that though. Previously riscv broke this when it bumped the config version for GENERICSF, but I just reverted that bump yesterday, however riscv dyi

Re: svn commit: r360408 - in head: share/man/man4 sys/dev/cxgbe/tom sys/kern sys/netinet sys/sys

2020-04-28 Thread John Baldwin
On 4/27/20 4:17 PM, John Baldwin wrote: > Author: jhb > Date: Mon Apr 27 23:17:19 2020 > New Revision: 360408 > URL: https://svnweb.freebsd.org/changeset/base/360408 > > Log: > Initial support for kernel offload of TLS receive. > > - Add a new TCP_RXTLS_

svn commit: r360439 - in stable/12: lib/libc/sys sys/kern sys/sys tests/sys/kern

2020-04-28 Thread John Baldwin
Author: jhb Date: Tue Apr 28 15:44:39 2020 New Revision: 360439 URL: https://svnweb.freebsd.org/changeset/base/360439 Log: MFC 350017: Add ptrace op PT_GET_SC_RET. This ptrace operation returns a structure containing the error and return values from the current system call. It is only

svn commit: r360418 - head/sys/sys

2020-04-27 Thread John Baldwin
Author: jhb Date: Tue Apr 28 00:06:49 2020 New Revision: 360418 URL: https://svnweb.freebsd.org/changeset/base/360418 Log: Bump __FreeBSD_version for KTLS RX support. Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

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

2020-04-27 Thread John Baldwin
Author: jhb Date: Mon Apr 27 23:59:42 2020 New Revision: 360417 URL: https://svnweb.freebsd.org/changeset/base/360417 Log: Add support for KTLS RX over TOE to T6. This largely reuses the TLS TOE support added in r330884. However, this uses the KTLS framework in upstream OpenSSL rather

svn commit: r360408 - in head: share/man/man4 sys/dev/cxgbe/tom sys/kern sys/netinet sys/sys

2020-04-27 Thread John Baldwin
Author: jhb Date: Mon Apr 27 23:17:19 2020 New Revision: 360408 URL: https://svnweb.freebsd.org/changeset/base/360408 Log: Initial support for kernel offload of TLS receive. - Add a new TCP_RXTLS_ENABLE socket option to set the encryption and authentication algorithms and keys as well

svn commit: r360402 - in head/sys: kern netinet sys

2020-04-27 Thread John Baldwin
Author: jhb Date: Mon Apr 27 22:31:42 2020 New Revision: 360402 URL: https://svnweb.freebsd.org/changeset/base/360402 Log: Add the initial sequence number to the TLS enable socket option. This will be needed for KTLS RX. Reviewed by: gallatin Sponsored by: Chelsio Communications

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

2020-04-27 Thread John Baldwin
Author: jhb Date: Mon Apr 27 22:27:35 2020 New Revision: 360399 URL: https://svnweb.freebsd.org/changeset/base/360399 Log: Update the cached MSI state when any MSI capability register is written. bhyve uses cached copies of the MSI capability registers to generate MSI interrupts for

svn commit: r360397 - in head/sys: conf riscv/conf

2020-04-27 Thread John Baldwin
Author: jhb Date: Mon Apr 27 21:51:22 2020 New Revision: 360397 URL: https://svnweb.freebsd.org/changeset/base/360397 Log: Retire the GENERICSF kernel config. Now that hw.machine_arch handles soft-float vs hard-float there is no longer a reason for this config. Submitted by: mhorne

svn commit: r360393 - stable/12/tests/sys/kern

2020-04-27 Thread John Baldwin
Author: jhb Date: Mon Apr 27 21:19:46 2020 New Revision: 360393 URL: https://svnweb.freebsd.org/changeset/base/360393 Log: MFC 350014: Add a test for PT_GET_SC_ARGS. Modified: stable/12/tests/sys/kern/ptrace_test.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r360392 - in stable/12/sys: amd64/amd64 amd64/ia32 arm/arm arm64/arm64 i386/i386 kern mips/mips powerpc/powerpc riscv/riscv sparc64/sparc64

2020-04-27 Thread John Baldwin
Author: jhb Date: Mon Apr 27 20:37:11 2020 New Revision: 360392 URL: https://svnweb.freebsd.org/changeset/base/360392 Log: MFC 350013: Don't pass error from syscallenter() to syscallret(). syscallret() doesn't use error anymore. Fix a few other places to permit removing the return value

svn commit: r360388 - head/sys/dev/iscsi_initiator

2020-04-27 Thread John Baldwin
Author: jhb Date: Mon Apr 27 18:04:42 2020 New Revision: 360388 URL: https://svnweb.freebsd.org/changeset/base/360388 Log: Don't run strcmp() against strings stored in user memory. Instead, copy the strings into a temporary buffer on the stack and run strcmp on the copies. Reviewed

svn commit: r360387 - in head/sys: kern riscv/include riscv/riscv

2020-04-27 Thread John Baldwin
Author: jhb Date: Mon Apr 27 17:55:40 2020 New Revision: 360387 URL: https://svnweb.freebsd.org/changeset/base/360387 Log: Improve MACHINE_ARCH handling for hard vs soft-float on RISC-V. For userland, MACHINE_ARCH reflects the current ABI via preprocessor directives. For the kernel, the

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

2020-04-27 Thread John Baldwin
Author: jhb Date: Mon Apr 27 17:53:38 2020 New Revision: 360386 URL: https://svnweb.freebsd.org/changeset/base/360386 Log: Extend support in sysctls for supporting multiple native ABIs. This extends some of the changes in place to support reporting support for 32-bit ABIs to permit

svn commit: r360363 - in stable/12/sys: compat/linux kern

2020-04-26 Thread John Baldwin
Author: jhb Date: Mon Apr 27 04:47:02 2020 New Revision: 360363 URL: https://svnweb.freebsd.org/changeset/base/360363 Log: MFC 350012: Always set td_errno to the error value of a system call. Early errors prior to a system call did not set td_errno. This commit sets td_errno for all

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

2020-04-24 Thread John Baldwin
Author: jhb Date: Fri Apr 24 22:17:13 2020 New Revision: 360286 URL: https://svnweb.freebsd.org/changeset/base/360286 Log: MFC 349871: Use 'retval' label for first error in syscallenter(). This is more consistent with the rest of the function and lets us unindent most of the function.

svn commit: r360285 - head/sys/net80211

2020-04-24 Thread John Baldwin
Author: jhb Date: Fri Apr 24 22:10:02 2020 New Revision: 360285 URL: https://svnweb.freebsd.org/changeset/base/360285 Log: Don't indirect user pointers directly in two 802.11s ioctls. IEEE80211_MESH_RTCMD_ADD was invoking memcmp() to validate the supplied address directly on the user

Re: svn commit: r360241 - head/sys/dev/ichiic

2020-04-24 Thread John Baldwin
methods "pci" bus devices expect their parent to have, etc. I suspect in the case of "iichb" the same is true and that would be fine having all these drivers use the same name and rely on the description string to differentiate different vendors, etc. -- John Baldwin

Re: svn commit: r360241 - head/sys/dev/ichiic

2020-04-24 Thread John Baldwin
tiny modules in the past, but that solution is probably worse as the dependencies are usually the wrong way around (the "leaf" drivers probably depend on the parent drivers so they get loaded in the exact wrong order for this case where you want all the leaf drivers registered

svn commit: r360206 - head/sys/netipsec

2020-04-22 Thread John Baldwin
Author: jhb Date: Wed Apr 22 21:03:24 2020 New Revision: 360206 URL: https://svnweb.freebsd.org/changeset/base/360206 Log: Fix name of 3DES cipher in deprecation warning. Submitted by: cem MFC after:1 week Modified: head/sys/netipsec/xform_esp.c Modified:

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

2020-04-22 Thread John Baldwin
Author: jhb Date: Wed Apr 22 20:43:18 2020 New Revision: 360203 URL: https://svnweb.freebsd.org/changeset/base/360203 Log: Update blake2 accelerated software tests to work after OCF refactoring. - Lookup device drivers to test by name instead of assuming that the software / hardware

svn commit: r360202 - head/sys/netipsec

2020-04-22 Thread John Baldwin
Author: jhb Date: Wed Apr 22 19:44:33 2020 New Revision: 360202 URL: https://svnweb.freebsd.org/changeset/base/360202 Log: Deprecate 3des support in IPsec for FreeBSD 13. RFC 8221 does not outright ban 3des as the algorithms deprecated for 13 in r348205, but it is listed as a SHOULD NOT

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

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 23:38:54 2020 New Revision: 360179 URL: https://svnweb.freebsd.org/changeset/base/360179 Log: Don't pass a user buffer pointer as the data pointer in a CCB. Allocate a temporary buffer in the kernel to serve as the CCB data pointer for a pass-through

svn commit: r360178 - head/lib/libvmmapi

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 21:48:35 2020 New Revision: 360178 URL: https://svnweb.freebsd.org/changeset/base/360178 Log: Map negative types passed to vm_capability_type2name to NULL. Submitted by: vangyzen Modified: head/lib/libvmmapi/vmmapi.c Modified: head/lib/libvmmapi/vmmapi.c

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

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:47:05 2020 New Revision: 360171 URL: https://svnweb.freebsd.org/changeset/base/360171 Log: Don't access a user buffer directly from the kernel. The handle_string callback for the ENCIOC_SETSTRING ioctl was passing a user pointer to memcpy(). Fix by using

svn commit: r360170 - head/sys/ufs/ffs

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:42:32 2020 New Revision: 360170 URL: https://svnweb.freebsd.org/changeset/base/360170 Log: Retire two unused background fsck sysctls. These two sysctls were added to support UFS softupdates journalling with snapshots. However, the changes to fsck to use

svn commit: r360169 - head/lib/libc/riscv/gen

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:40:23 2020 New Revision: 360169 URL: https://svnweb.freebsd.org/changeset/base/360169 Log: Check the magic value in longjmp() before calling sigprocmask(). This avoids passing garbage to sigprocmask() if the jump buffer is invalid. Reviewed by:

svn commit: r360168 - in head/sys: cddl/dev/dtrace/mips mips/mips

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:38:07 2020 New Revision: 360168 URL: https://svnweb.freebsd.org/changeset/base/360168 Log: Handle non-dtrace-triggered kernel breakpoint traps in mips. If DTRACE is enabled at compile time, all kernel breakpoint traps are first given to dtrace to see if

svn commit: r360167 - head/libexec/tftpd

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:32:57 2020 New Revision: 360167 URL: https://svnweb.freebsd.org/changeset/base/360167 Log: Abort transfer if fseeko() fails. CID: 1420215 Reviewed by: asomers MFC after:1 week Sponsored by: DARPA Differential Revision:

svn commit: r360166 - head/lib/libvmmapi

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:30:56 2020 New Revision: 360166 URL: https://svnweb.freebsd.org/changeset/base/360166 Log: Add description string for VM_CAP_BPT_EXIT. While here, replace the array of mapping structures with an array of string pointers where the index is the capability

svn commit: r360137 - head/sys/netipsec

2020-04-20 Thread John Baldwin
Author: jhb Date: Mon Apr 20 22:57:15 2020 New Revision: 360137 URL: https://svnweb.freebsd.org/changeset/base/360137 Log: Update comments about IVs used in IPsec ESP. Add some prose and a diagram describing the layout of the cipher IV for AES-CTR and AES-GCM and how it relates to the

svn commit: r360136 - in head: share/man/man9 sys/crypto/aesni sys/crypto/armv8 sys/crypto/ccp sys/crypto/via sys/dev/cesa sys/dev/cxgbe/crypto sys/dev/glxsb sys/dev/hifn sys/dev/safe sys/dev/sec s...

2020-04-20 Thread John Baldwin
Author: jhb Date: Mon Apr 20 22:24:49 2020 New Revision: 360136 URL: https://svnweb.freebsd.org/changeset/base/360136 Log: Retire the CRYPTO_F_IV_GENERATE flag. The sole in-tree user of this flag has been retired, so remove this complexity from all drivers. While here, add a helper

svn commit: r360135 - head/sys/netipsec

2020-04-20 Thread John Baldwin
Author: jhb Date: Mon Apr 20 22:20:26 2020 New Revision: 360135 URL: https://svnweb.freebsd.org/changeset/base/360135 Log: Generate IVs directly in esp_output. This is the only place that uses CRYPTO_F_IV_GENERATE. All crypto drivers currently duplicate the same boilerplate code to

svn commit: r360050 - head/sys/mips/include

2020-04-17 Thread John Baldwin
Author: jhb Date: Fri Apr 17 18:24:47 2020 New Revision: 360050 URL: https://svnweb.freebsd.org/changeset/base/360050 Log: Use the right type for 64-bit coprocessor registers. The use of "int" here caused the compiler to believe that it needs to insert a "sll $n, $n, 0" to sign extend as

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

2020-04-17 Thread John Baldwin
Author: jhb Date: Fri Apr 17 18:19:13 2020 New Revision: 360048 URL: https://svnweb.freebsd.org/changeset/base/360048 Log: Don't try to copyout() to a kernel buffer. The handle_string callback for the ENCIOC_GET_ENCNAME and ENCIOC_GETENCID ioctls tries to copy the size of the generated

svn commit: r360023 - head/sys/powerpc/aim

2020-04-16 Thread John Baldwin
Author: jhb Date: Thu Apr 16 20:46:35 2020 New Revision: 360023 URL: https://svnweb.freebsd.org/changeset/base/360023 Log: Use %zu to print a size_t value instead of %ju. This fixes the build for 32-bit kernels. Modified: head/sys/powerpc/aim/mmu_oea64.c Modified:

svn commit: r360022 - head/sys/mips/conf

2020-04-16 Thread John Baldwin
Author: jhb Date: Thu Apr 16 20:45:54 2020 New Revision: 360022 URL: https://svnweb.freebsd.org/changeset/base/360022 Log: Add 'gpio' since mmc now requires gpio_if.h. Modified: head/sys/mips/conf/std.XLP Modified: head/sys/mips/conf/std.XLP

Re: svn commit: r360018 - in head/sys/arm: mv nvidia

2020-04-16 Thread John Baldwin
name (the string name in a manual driver_t) and that needs to stay "pcib" here. The change to DRIVER_MODULE() in this file is correct though. -- 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"

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

2020-04-16 Thread John Baldwin
Author: jhb Date: Thu Apr 16 17:41:32 2020 New Revision: 360016 URL: https://svnweb.freebsd.org/changeset/base/360016 Log: Document TCP_TLS_MODE_TOE. Modified: head/share/man/man4/tcp.4 Modified: head/share/man/man4/tcp.4

svn commit: r359993 - head/sys/crypto/via

2020-04-15 Thread John Baldwin
Author: jhb Date: Wed Apr 15 21:05:38 2020 New Revision: 359993 URL: https://svnweb.freebsd.org/changeset/base/359993 Log: Use crypto_contiguous_subsegment(). This driver used a home-rolled version that predated the function and didn't support mbufs. Modified:

svn commit: r359984 - head

2020-04-15 Thread John Baldwin
Author: jhb Date: Wed Apr 15 19:33:42 2020 New Revision: 359984 URL: https://svnweb.freebsd.org/changeset/base/359984 Log: Document removal of deprecated algorithms from geli(4). Modified: head/RELNOTES Modified: head/RELNOTES

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

2020-04-15 Thread John Baldwin
Author: jhb Date: Wed Apr 15 19:28:51 2020 New Revision: 359983 URL: https://svnweb.freebsd.org/changeset/base/359983 Log: Set inp_flowid's for TOE connections. KTLS uses the flowid to distribute software encryption tasks among its pool of worker threads. Without this change, all

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

2020-04-15 Thread John Baldwin
Author: jhb Date: Wed Apr 15 19:23:53 2020 New Revision: 359982 URL: https://svnweb.freebsd.org/changeset/base/359982 Log: Clear CPL_GET_TCB_RPL handler on module unload. This fixes a panic when unloading and reloading t4_tom.ko since the old pointer is still stored when t4_tom_load

svn commit: r359979 - head/sys/geom/eli

2020-04-15 Thread John Baldwin
Author: jhb Date: Wed Apr 15 18:27:28 2020 New Revision: 359979 URL: https://svnweb.freebsd.org/changeset/base/359979 Log: Mark eli_metadata_crypto_supported inline. This quiets warnings about it not being always used. Reported by: kevans Modified: head/sys/geom/eli/g_eli.h

Re: svn commit: r359945 - in head: lib/geom/eli sys/geom/eli

2020-04-15 Thread John Baldwin
On 4/15/20 10:55 AM, Kyle Evans wrote: > On Tue, Apr 14, 2020 at 7:15 PM John Baldwin wrote: >> >> Author: jhb >> Date: Wed Apr 15 00:14:50 2020 >> New Revision: 359945 >> URL: https://svnweb.freebsd.org/changeset/base/359945 >> >> Log: >>

Re: svn commit: r359945 - in head: lib/geom/eli sys/geom/eli

2020-04-15 Thread John Baldwin
On 4/14/20 5:22 PM, Alan Somers wrote: > On Tue, Apr 14, 2020 at 6:15 PM John Baldwin wrote: > >> Author: jhb >> Date: Wed Apr 15 00:14:50 2020 >> New Revision: 359945 >> URL: https://svnweb.freebsd.org/changeset/base/359945 >> >> Log: >>

svn commit: r359945 - in head: lib/geom/eli sys/geom/eli

2020-04-14 Thread John Baldwin
Author: jhb Date: Wed Apr 15 00:14:50 2020 New Revision: 359945 URL: https://svnweb.freebsd.org/changeset/base/359945 Log: Remove support for geli(4) algorithms deprecated in r348206. This removes support for reading and writing volumes using the following algorithms: - Triple DES

svn commit: r359900 - head/sys/dev/uart

2020-04-13 Thread John Baldwin
Author: jhb Date: Mon Apr 13 20:59:09 2020 New Revision: 359900 URL: https://svnweb.freebsd.org/changeset/base/359900 Log: 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. They are then

svn commit: r359899 - head/sys/dev/uart

2020-04-13 Thread John Baldwin
Author: jhb Date: Mon Apr 13 20:43:57 2020 New Revision: 359899 URL: https://svnweb.freebsd.org/changeset/base/359899 Log: 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 gives the

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