Re: svn commit: r355383 - head/sys/arm64/linux

2019-12-04 Thread John Baldwin
Not sure how that slipped through as I do keep cross-building the relevant kernels for all of these changes. :( -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, sen

svn commit: r355401 - head/lib/libcompiler_rt

2019-12-04 Thread John Baldwin
Author: jhb Date: Wed Dec 4 20:18:12 2019 New Revision: 355401 URL: https://svnweb.freebsd.org/changeset/base/355401 Log: Define __SOFT_FP__ for riscv64sf to avoid infinite recursion. Submitted by: James Clarke Reviewed by: imp Sponsored by: DARPA Differential Revision:http

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

2019-12-04 Thread John Baldwin
Author: jhb Date: Wed Dec 4 20:50:49 2019 New Revision: 355402 URL: https://svnweb.freebsd.org/changeset/base/355402 Log: Use a single 'ld' to read the jmpbuf magic values instead of 'la; ld'. This saves an instruction in each case as well as an extra memory indirection via the GOT for P

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

2019-12-04 Thread John Baldwin
Author: jhb Date: Wed Dec 4 21:01:13 2019 New Revision: 355403 URL: https://svnweb.freebsd.org/changeset/base/355403 Log: 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 not honor LD_

Re: svn commit: r355301 - head/usr.sbin/bhyve

2019-12-05 Thread John Baldwin
review, if that's useful. >> >> Cheers, >> Vincenzo > > Meanwhile could you please revert the commit, and add a note to > D22552 to the effects that this was not the right solution? I don't think we have to revert as it isn't that big of a deal.

Re: svn commit: r354754 - in head/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2019-12-05 Thread John Baldwin
On 12/5/19 5:28 AM, Mateusz Guzik wrote: > On 11/16/19, John Baldwin wrote: >> Author: jhb >> Date: Fri Nov 15 23:01:43 2019 >> New Revision: 354754 >> URL: https://svnweb.freebsd.org/changeset/base/354754 >> >> Log: >> Use a sv_copyout_auxargs h

svn commit: r355426 - in head/sys: dev/ahci dev/ata dev/mvs dev/siis net/altq powerpc/mpc85xx

2019-12-05 Thread John Baldwin
Author: jhb Date: Thu Dec 5 18:47:29 2019 New Revision: 355426 URL: https://svnweb.freebsd.org/changeset/base/355426 Log: Use a void * argument to callout handlers instead of timeout_t casts. Reviewed by: kib Differential Revision:https://reviews.freebsd.org/D22684 Modified:

svn commit: r355428 - in head: share/mk sys/conf

2019-12-05 Thread John Baldwin
Author: jhb Date: Thu Dec 5 19:37:30 2019 New Revision: 355428 URL: https://svnweb.freebsd.org/changeset/base/355428 Log: Add a new "riscv-relaxations" linker feature. When the linker doesn't have this feature, add -mno-relax to CFLAGS on RISC-V. Define the feature for ld.bfd, but n

svn commit: r355459 - head/sys/sys

2019-12-06 Thread John Baldwin
Author: jhb Date: Fri Dec 6 19:20:45 2019 New Revision: 355459 URL: https://svnweb.freebsd.org/changeset/base/355459 Log: Remove SPARE_USRSPACE. This constant was used to reserve space at the top of the stack to hold translated system call arguments for non-default ABIs (the "stackgap"

svn commit: r355567 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/freebsd32 i386/linux kern sys

2019-12-09 Thread John Baldwin
Author: jhb Date: Mon Dec 9 19:17:28 2019 New Revision: 355567 URL: https://svnweb.freebsd.org/changeset/base/355567 Log: Copy out aux args after the argument and environment vectors. Partially revert r354741 and r354754 and go back to allocating a fixed-size chunk of stack space for the

svn commit: r355569 - head/sys/amd64/linux32

2019-12-09 Thread John Baldwin
Author: jhb Date: Mon Dec 9 19:18:05 2019 New Revision: 355569 URL: https://svnweb.freebsd.org/changeset/base/355569 Log: Use 4 byte stack alignment instead of 8 byte. This was an old bug prior to r355373 and mostly harmless as it would waste at most a handful of bytes on the stack. Mod

Re: svn commit: r355569 - head/sys/amd64/linux32

2019-12-09 Thread John Baldwin
On 12/9/19 12:01 PM, Joerg Sonnenberger wrote: > On Mon, Dec 09, 2019 at 07:18:06PM +0000, John Baldwin wrote: >> Author: jhb >> Date: Mon Dec 9 19:18:05 2019 >> New Revision: 355569 >> URL: https://svnweb.freebsd.org/changeset/base/355569 >> >> Log: >&

Re: svn commit: r355569 - head/sys/amd64/linux32

2019-12-09 Thread John Baldwin
On 12/9/19 11:18 AM, John Baldwin wrote: > Author: jhb > Date: Mon Dec 9 19:18:05 2019 > New Revision: 355569 > URL: https://svnweb.freebsd.org/changeset/base/355569 > > Log: > Use 4 byte stack alignment instead of 8 byte. > > This was an old bug prior to r35537

svn commit: r355599 - head/libexec/rtld-elf/riscv

2019-12-10 Thread John Baldwin
Author: jhb Date: Tue Dec 10 21:56:44 2019 New Revision: 355599 URL: https://svnweb.freebsd.org/changeset/base/355599 Log: Correct the offset of static TLS variables for Initial-Exec on RISC-V. TP points to the start of the TLS block after the tcb, but Obj_Entry.tlsoffset includes the tcb

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

2019-12-10 Thread John Baldwin
Author: jhb Date: Tue Dec 10 21:58:30 2019 New Revision: 355600 URL: https://svnweb.freebsd.org/changeset/base/355600 Log: 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 header. Us

svn commit: r355601 - in head/sys: cam cam/ata cam/scsi dev/aic7xxx dev/isp dev/kbdmux dev/mpt dev/ocs_fc dev/ppbus dev/sbni dev/smc dev/syscons dev/uart netgraph/netflow netinet

2019-12-10 Thread John Baldwin
Author: jhb Date: Tue Dec 10 22:06:53 2019 New Revision: 355601 URL: https://svnweb.freebsd.org/changeset/base/355601 Log: Use callout_func_t instead of the deprecated timeout_t. Reviewed by: kib, imp Differential Revision:https://reviews.freebsd.org/D22752 Modified: head/sys/

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

2019-12-10 Thread John Baldwin
On 12/10/19 2:09 PM, Hans Petter Selasky wrote: > On 2019-12-10 22:58, John Baldwin wrote: >> While here, add to the manpage. > > FYI: > > Linux guys eliminated the "void *c_arg" in their timer implementation by > using container_of() to get callback

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

2019-12-11 Thread John Baldwin
Author: jhb Date: Wed Dec 11 23:41:39 2019 New Revision: 355634 URL: https://svnweb.freebsd.org/changeset/base/355634 Log: Emulate reads of the PCI command register for passthrough devices. VFs return zero for the memory enable bit even if it has been set by a prior write. After r348779

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

2019-12-12 Thread John Baldwin
Author: jhb Date: Fri Dec 13 01:17:20 2019 New Revision: 355683 URL: https://svnweb.freebsd.org/changeset/base/355683 Log: Don't call into the debug server if it isn't configured. Reviewed by: markj (as part of a larger diff) MFC after:1 month Differential Revision:https://

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

2019-12-12 Thread John Baldwin
Author: jhb Date: Fri Dec 13 02:15:34 2019 New Revision: 355686 URL: https://svnweb.freebsd.org/changeset/base/355686 Log: Fix a mismerge in r355683 and remove the local gdb_port from main. Modified: head/usr.sbin/bhyve/bhyverun.c Modified: head/usr.sbin/bhyve/bhyverun.c

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

2019-12-12 Thread John Baldwin
Author: jhb Date: Fri Dec 13 02:18:44 2019 New Revision: 355687 URL: https://svnweb.freebsd.org/changeset/base/355687 Log: Document that the debug server supports writing to guest memory. This was added in r348212. Modified: head/usr.sbin/bhyve/bhyve.8 Modified: head/usr.sbin/bhyve/bhyv

svn commit: r355724 - in head: sys/amd64/include sys/amd64/vmm/amd sys/amd64/vmm/intel usr.sbin/bhyve

2019-12-13 Thread John Baldwin
Author: jhb Date: Fri Dec 13 19:21:58 2019 New Revision: 355724 URL: https://svnweb.freebsd.org/changeset/base/355724 Log: Support software breakpoints in the debug server on Intel CPUs. - Allow the userland hypervisor to intercept breakpoint exceptions (BP#) in the guest. A new capabi

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

2019-12-13 Thread John Baldwin
Author: jhb Date: Fri Dec 13 19:26:04 2019 New Revision: 355725 URL: https://svnweb.freebsd.org/changeset/base/355725 Log: Use callout(9) instead of deprecated timeout(9) for fail points. Allocate the callout structure on-demand from fail_point_use_timeout_path() since most fail points do

svn commit: r355726 - in head/sys/cddl: compat/opensolaris/sys contrib/opensolaris/uts/common/fs/zfs contrib/opensolaris/uts/common/fs/zfs/sys

2019-12-13 Thread John Baldwin
Author: jhb Date: Fri Dec 13 19:27:51 2019 New Revision: 355726 URL: https://svnweb.freebsd.org/changeset/base/355726 Log: Use a callout instead of timeout(9) for delayed zio's. Reviewed by: avg Differential Revision:https://reviews.freebsd.org/D22597 Modified: head/sys/cddl/c

Re: svn commit: r355724 - in head: sys/amd64/include sys/amd64/vmm/amd sys/amd64/vmm/intel usr.sbin/bhyve

2019-12-13 Thread John Baldwin
On 12/13/19 11:21 AM, John Baldwin wrote: > Author: jhb > Date: Fri Dec 13 19:21:58 2019 > New Revision: 355724 > URL: https://svnweb.freebsd.org/changeset/base/355724 > > Log: > Support software breakpoints in the debug server on Intel CPUs. > > - Allow

Re: svn commit: r355725 - in head/sys: kern sys

2019-12-13 Thread John Baldwin
On 12/13/19 11:27 AM, Hans Petter Selasky wrote: > On 2019-12-13 20:26, John Baldwin wrote: >> deprecated timeout(9) > > Are you planning to nuke the timeout(9) API? Yes, only one consumer left and that is in review. D22602 is the removal. It always runs under Giant, is u

svn commit: r355728 - head/sys/dev/smartpqi

2019-12-13 Thread John Baldwin
Author: jhb Date: Fri Dec 13 19:56:48 2019 New Revision: 355728 URL: https://svnweb.freebsd.org/changeset/base/355728 Log: Use callout(9) instead of deprecated timeout(9). Reviewed by: imp Tested by:Scott Benesh Differential Revision:https://reviews.freebsd.org/D22598 Modi

svn commit: r355732 - in head: . share/man/man9 sys/kern sys/netgraph sys/sys

2019-12-13 Thread John Baldwin
Author: jhb Date: Fri Dec 13 21:03:12 2019 New Revision: 355732 URL: https://svnweb.freebsd.org/changeset/base/355732 Log: Remove the deprecated timeout(9) interface. All in-tree consumers have been converted to callout(9). Reviewed by: kib, markj Differential Revision:https

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

2019-12-13 Thread John Baldwin
Author: jhb Date: Fri Dec 13 23:33:54 2019 New Revision: 355740 URL: https://svnweb.freebsd.org/changeset/base/355740 Log: Expand net epoch in the cxgbe TOE driver to satisfy assertions. Reviewed by: np Sponsored by: Chelsio Communications Differential Revision:https://reviews.

svn commit: r355866 - in head/share/man: man4 man9

2019-12-17 Thread John Baldwin
Author: jhb Date: Tue Dec 17 22:58:07 2019 New Revision: 355866 URL: https://svnweb.freebsd.org/changeset/base/355866 Log: Update the crypto(4) and crypto(9) manpages. There are probably bits that are still wrong, but this fixes some things at least: - Add named arguments to the functio

svn commit: r355871 - in head/share/man: man4 man9

2019-12-17 Thread John Baldwin
Author: jhb Date: Wed Dec 18 01:27:49 2019 New Revision: 355871 URL: https://svnweb.freebsd.org/changeset/base/355871 Log: Bump Dd for changes in r355866. Pointy hat to:jhb MFC after:2 weeks Modified: head/share/man/man4/crypto.4 head/share/man/man9/crypto.9 Modified: he

svn commit: r355872 - head/sys/sys

2019-12-17 Thread John Baldwin
Author: jhb Date: Wed Dec 18 01:33:20 2019 New Revision: 355872 URL: https://svnweb.freebsd.org/changeset/base/355872 Log: Add a structure for the AAD used in TLS 1.3. While here, add RFC numbers to comments about nonce and AAD data for TLS 1.2. Reviewed by: gallatin Sponsored by:

svn commit: r355873 - head/sys/opencrypto

2019-12-17 Thread John Baldwin
Author: jhb Date: Wed Dec 18 01:37:00 2019 New Revision: 355873 URL: https://svnweb.freebsd.org/changeset/base/355873 Log: Add support for TLS 1.3 using AES-GCM to the OCF backend for KTLS. Reviewed by: gallatin Sponsored by: Netflix Differential Revision:https://reviews.freebs

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

2019-12-19 Thread John Baldwin
Author: jhb Date: Thu Dec 19 15:36:00 2019 New Revision: 355912 URL: https://svnweb.freebsd.org/changeset/base/355912 Log: Trim a spurious carriage return from the RFB signature string added in r355301. Submitted by: Yamagi Modified: head/usr.sbin/bhyve/rfb.c Modified: head/usr.sbin/b

Re: svn commit: r356113 - in head: libexec/rtld-elf sys/kern sys/sys

2019-12-27 Thread John Baldwin
1 sysvec instead of needing a runtime check. You could also move it purely into the powerpc code at that point and not need to stick it in the MI file. It probably should also be under COMPAT_FREEBSD12. -- John Baldwin ___ svn-src-head@freebsd.org ma

Re: svn commit: r356113 - in head: libexec/rtld-elf sys/kern sys/sys

2019-12-27 Thread John Baldwin
On 12/27/19 10:43 AM, John Baldwin wrote: > On 12/26/19 8:07 PM, Justin Hibbits wrote: >> Author: jhibbits >> Date: Fri Dec 27 04:07:03 2019 >> New Revision: 356113 >> URL: https://svnweb.freebsd.org/changeset/base/356113 >> >> Log: >> Eliminate th

svn commit: r356209 - head/share/man/man7

2019-12-30 Thread John Baldwin
Author: jhb Date: Mon Dec 30 22:05:57 2019 New Revision: 356209 URL: https://svnweb.freebsd.org/changeset/base/356209 Log: Formatting fixes for tables, no content changes. - Add missing .Pp after the end of some lists so that there is a blank line before the subsequent paragraph. - Us

svn commit: r356274 - head/share/man/man7

2020-01-02 Thread John Baldwin
Author: jhb Date: Thu Jan 2 16:27:15 2020 New Revision: 356274 URL: https://svnweb.freebsd.org/changeset/base/356274 Log: Some minor tweaks to arch(7). - Drop mention of _LP64. FreeBSD's source generally uses __LP64__ instead of _LP64, and the relevant macros are better covered in the

svn commit: r356289 - head

2020-01-02 Thread John Baldwin
Author: jhb Date: Thu Jan 2 21:34:44 2020 New Revision: 356289 URL: https://svnweb.freebsd.org/changeset/base/356289 Log: Look for cross toolchain makefiles in /usr/share/toolchains. The freebsd-binutils and freebsd-gcc* packages install toolchain makefiles to /usr/share/toolchains rathe

Re: svn commit: r356289 - head

2020-01-02 Thread John Baldwin
On 1/2/20 1:34 PM, John Baldwin wrote: > Author: jhb > Date: Thu Jan 2 21:34:44 2020 > New Revision: 356289 > URL: https://svnweb.freebsd.org/changeset/base/356289 > > Log: > Look for cross toolchain makefiles in /usr/share/toolchains. > > The freebsd-binutil

svn commit: r356339 - head/share/mk

2020-01-03 Thread John Baldwin
Author: jhb Date: Fri Jan 3 23:31:38 2020 New Revision: 356339 URL: https://svnweb.freebsd.org/changeset/base/356339 Log: Set correct lib32 MACHINE_ARCH for mips64el*. Use "mipsel" instead of "mips" as the 32-bit MACHINE_ARCH when building lib32 for little-endian 64-bit MIPS targets. Th

svn commit: r356344 - head

2020-01-03 Thread John Baldwin
Author: jhb Date: Sat Jan 4 00:59:47 2020 New Revision: 356344 URL: https://svnweb.freebsd.org/changeset/base/356344 Log: Use the freebsd-gcc6 toolchains instead of powerpc64-xtoolchain-gcc. Reviewed by: brooks Differential Revision:https://reviews.freebsd.org/D23029 Modified:

Re: svn commit: r356344 - head

2020-01-04 Thread John Baldwin
o do to the kernel so lld can link it after dim@'s merges yesterday). I probably will add some kind of WITH_GCC=yes to 'make tinderbox' I think, but that will require untangling the mess so it can pick per-machine_arch toolchains rather than per-cpuarch. -- John Baldwin __

Re: svn commit: r356289 - head

2020-01-04 Thread John Baldwin
On 1/3/20 2:34 AM, Mark Millard wrote: > John Baldwin jhb at FreeBSD.org wrote on > Thu Jan 2 21:41:07 UTC 2020 : > >> On 1/2/20 1:34 PM, John Baldwin wrote: >>> Author: jhb >>> Date: Thu Jan 2 21:34:44 2020 >>> New Revision: 356289 >>> UR

svn commit: r356418 - head

2020-01-06 Thread John Baldwin
Author: jhb Date: Mon Jan 6 17:34:17 2020 New Revision: 356418 URL: https://svnweb.freebsd.org/changeset/base/356418 Log: Only build kernels for enabled TARGET_ARCHes in make universe/tinderbox. Previously, all of the kernels for a given TARGET were built if that target was enabled. Thi

svn commit: r356419 - head

2020-01-06 Thread John Baldwin
Author: jhb Date: Mon Jan 6 17:36:28 2020 New Revision: 356419 URL: https://svnweb.freebsd.org/changeset/base/356419 Log: Enable powerpc in make tinderbox using clang instead of GCC. powerpcspe is disabled for now until clang/llvm issues with spe have been fixed. Reviewed by: imp

svn commit: r356420 - head/sys/mips/mips

2020-01-06 Thread John Baldwin
Author: jhb Date: Mon Jan 6 18:02:02 2020 New Revision: 356420 URL: https://svnweb.freebsd.org/changeset/base/356420 Log: Simplify arguments to signal handlers on mips. - Use ksi_addr directly as si_addr in the siginfo instead of the 'badvaddr' register. - Remove a duplicate assignme

svn commit: r356452 - head

2020-01-07 Thread John Baldwin
Author: jhb Date: Tue Jan 7 16:53:51 2020 New Revision: 356452 URL: https://svnweb.freebsd.org/changeset/base/356452 Log: Remove support for using GCC 4.2.1 from make tinderbox. Reviewed by: emaste Differential Revision:https://reviews.freebsd.org/D23054 Modified: head/Makefi

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

2020-01-07 Thread John Baldwin
Author: jhb Date: Tue Jan 7 17:07:58 2020 New Revision: 356457 URL: https://svnweb.freebsd.org/changeset/base/356457 Log: Various cleanups to cryptocheck. - Rename 'blkcipher' to 'cipher'. Some of the ciphers being tested are stream ciphers. - Rename 'authenc' to 'eta' as it is only

svn commit: r356478 - head

2020-01-07 Thread John Baldwin
Author: jhb Date: Tue Jan 7 21:56:28 2020 New Revision: 356478 URL: https://svnweb.freebsd.org/changeset/base/356478 Log: Don't fail universe kernel stage for TARGET_ARCHes without a kernel config. This fixes a regression in r356418 where the entire universe would fail early due to an un

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

2020-01-07 Thread John Baldwin
Author: jhb Date: Tue Jan 7 23:18:31 2020 New Revision: 356481 URL: https://svnweb.freebsd.org/changeset/base/356481 Log: 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 in the code mo

svn commit: r356499 - in head: . share/man/man7 share/mk

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 17:25:59 2020 New Revision: 356499 URL: https://svnweb.freebsd.org/changeset/base/356499 Log: 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-enable ris

svn commit: r356501 - head/share/man/man7

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 17:31:18 2020 New Revision: 356501 URL: https://svnweb.freebsd.org/changeset/base/356501 Log: Remove a mention of MAKE_OBSOLETE_GCC. This should have been included in r356452. Modified: head/share/man/man7/arch.7 Modified: head/share/man/man7/arch.7

svn commit: r356502 - head

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 17:31:54 2020 New Revision: 356502 URL: https://svnweb.freebsd.org/changeset/base/356502 Log: Add notes for MAKE_OBSOLETE_GCC going away and riscv switching to clang/lld. Modified: head/UPDATING Modified: head/UPDATING

svn commit: r356504 - head/share/mk

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 17:49:34 2020 New Revision: 356504 URL: https://svnweb.freebsd.org/changeset/base/356504 Log: Add -mno-relax to CFLAGS in bsd.prog/lib.mk instead of bsd.cpu.mk. bsd.cpu.mk is included by bsd.init.mk before bsd.linker.mk, so it was always setting the flag since

svn commit: r356507 - head/sys/opencrypto

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 18:59:23 2020 New Revision: 356507 URL: https://svnweb.freebsd.org/changeset/base/356507 Log: Add a reference count to cryptodev sessions. This prevents use-after-free races with crypto requests (which may sleep) and CIOCFSESSION as well as races from current

svn commit: r356508 - head/sys/opencrypto

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 19:03:24 2020 New Revision: 356508 URL: https://svnweb.freebsd.org/changeset/base/356508 Log: Use falloc_noinstall + finstall for crypto file descriptors. Reviewed by: cem, kib MFC after:1 week Sponsored by: Chelsio Communications Differential Revisio

svn commit: r356509 - head/sys/opencrypto

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 19:05:23 2020 New Revision: 356509 URL: https://svnweb.freebsd.org/changeset/base/356509 Log: Remove unneeded cdevsw methods and D_NEEDGIANT. Reviewed by: kib MFC after:2 weeks Sponsored by: Chelsio Communications Differential Revision:https:/

svn commit: r356520 - head/sys/opencrypto

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 22:16:26 2020 New Revision: 356520 URL: https://svnweb.freebsd.org/changeset/base/356520 Log: Remove no-longer-used function prototype. Reported by: amd64-gcc Modified: head/sys/opencrypto/cryptodev.c Modified: head/sys/opencrypto/cryptodev.c ==

svn commit: r356561 - head/sys/opencrypto

2020-01-09 Thread John Baldwin
Author: jhb Date: Thu Jan 9 18:29:59 2020 New Revision: 356561 URL: https://svnweb.freebsd.org/changeset/base/356561 Log: Add stricter checking on mac key lengths. Negative lengths are always invalid. The key length should also be zero for hash algorithms that do not accept a key.

svn commit: r356737 - head/sys/mips/mips

2020-01-14 Thread John Baldwin
Author: jhb Date: Tue Jan 14 18:00:04 2020 New Revision: 356737 URL: https://svnweb.freebsd.org/changeset/base/356737 Log: Preserve the inherited value of the status register in cpu_set_upcall(). Instead of re-deriving the value of SR using logic similar to exec_set_regs(), just inherit t

Re: svn commit: r356755 - in head/sys: net netinet netinet6 netpfil/ipfw/nat64 sys

2020-01-16 Thread John Baldwin
ch_call(9) - first function, then its argument. NFC > J> > J> Is there some practical impact of changing the argument order or does it > J> just seem more natural to you? > > It is just more natural. I'm suggesting to change prototype of epoch_call() > to the same or

Re: svn commit: r356797 - head/share/mk

2020-01-16 Thread John Baldwin
s (e.g. I think the mcount bits for MIPS only work for o32 and are completely broken for n64). Do we know if any other systems still ship -pg libraries as an option? Also, is anyone still using them? -- John Baldwin ___ svn-src-head@freebsd.org mailing l

Re: svn commit: r356831 - head/sys/powerpc/include

2020-01-17 Thread John Baldwin
s the comment said. Thanks, this was the source of the kgdb bug I think. :) -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r356839 - in head/sys: arm64/arm64 riscv/riscv

2020-01-17 Thread John Baldwin
Author: jhb Date: Fri Jan 17 19:01:59 2020 New Revision: 356839 URL: https://svnweb.freebsd.org/changeset/base/356839 Log: Save and restore floating point registers in get/set_mcontext(). arm64 and riscv were only saving and restoring floating point registers for sendsig() and sys_sigretu

svn commit: r356840 - head/sys/riscv/riscv

2020-01-17 Thread John Baldwin
Author: jhb Date: Fri Jan 17 19:13:49 2020 New Revision: 356840 URL: https://svnweb.freebsd.org/changeset/base/356840 Log: Check for invalid sstatus values in set_mcontext(). Previously, this check was only in sys_sigreturn() which meant that user applications could write invalid values t

svn commit: r356996 - head

2020-01-22 Thread John Baldwin
Author: jhb Date: Wed Jan 22 21:21:24 2020 New Revision: 356996 URL: https://svnweb.freebsd.org/changeset/base/356996 Log: Remove support for auto-selecting an external binutils. All of the in-tree architectures not supported by in-tree binutils are supported by lld, so the condition is n

svn commit: r357062 - head/share/man/man9

2020-01-23 Thread John Baldwin
Author: jhb Date: Thu Jan 23 23:36:58 2020 New Revision: 357062 URL: https://svnweb.freebsd.org/changeset/base/357062 Log: Correct the return types of fueword*(). MFC after:1 week Sponsored by: DARPA Modified: head/share/man/man9/fetch.9 Modified: head/share/man/man9/fetch.9 =

Re: svn commit: r357051 - head/sys/dev/bge

2020-01-26 Thread John Baldwin
via 'Edit related revisions' in the web ui if you forget to tag a commit. -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Re: svn commit: r357051 - head/sys/dev/bge

2020-01-26 Thread John Baldwin
be ignored. Packet batching would not be impossible by simply using m_nextpkt chains in mbufs passed up to ether_input and having ether_input pass them in a loop to the next higher loop (as a first step). That would reduce unlock/lock operations in drivers (for those st

svn commit: r357145 - head/sys/conf

2020-01-26 Thread John Baldwin
Author: jhb Date: Sun Jan 26 14:19:08 2020 New Revision: 357145 URL: https://svnweb.freebsd.org/changeset/base/357145 Log: Compile hack.c with normal CFLAGS + -shared -nostdlib. Originally, hack.c was compiled into a shard object with just -shared -nostdlib. This assumed that ${CC} did n

svn commit: r357146 - in head/sys: dev/mrsas dev/sound/pci kern

2020-01-26 Thread John Baldwin
Author: jhb Date: Sun Jan 26 14:20:57 2020 New Revision: 357146 URL: https://svnweb.freebsd.org/changeset/base/357146 Log: Fix some misleading indentation warnings reported by recent clang. These should not be any functional change. While the change in emul10kx-pcm.c looks like a real bu

svn commit: r357147 - head/sys/kern

2020-01-26 Thread John Baldwin
Author: jhb Date: Sun Jan 26 14:23:27 2020 New Revision: 357147 URL: https://svnweb.freebsd.org/changeset/base/357147 Log: Revert accidental change from r357146. Modified: head/sys/kern/subr_stats.c Modified: head/sys/kern/subr_stats.c

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

2020-01-26 Thread John Baldwin
On 1/26/20 6:23 AM, John Baldwin wrote: > Author: jhb > Date: Sun Jan 26 14:23:27 2020 > New Revision: 357147 > URL: https://svnweb.freebsd.org/changeset/base/357147 > > Log: > Revert accidental change from r357146. Oops, this was a different warning fix which I've op

svn commit: r357302 - head/sys/kern

2020-01-30 Thread John Baldwin
Author: jhb Date: Thu Jan 30 18:28:02 2020 New Revision: 357302 URL: https://svnweb.freebsd.org/changeset/base/357302 Log: Fix use of an uninitialized variable. ctx (and thus ctx.flags) is stack garbage at the start of this function, so initialize ctx.flags to an explicit value instead of

svn commit: r357305 - in head/sys/riscv: include riscv

2020-01-30 Thread John Baldwin
Author: jhb Date: Thu Jan 30 19:15:27 2020 New Revision: 357305 URL: https://svnweb.freebsd.org/changeset/base/357305 Log: Remove unused fields from struct pcb. cpu_switch/throw() and savectx() do not save or restore any values in these fields which mostly held non-callee-save registers.

svn commit: r357313 - head/sys/riscv/riscv

2020-01-30 Thread John Baldwin
Author: jhb Date: Thu Jan 30 22:19:48 2020 New Revision: 357313 URL: https://svnweb.freebsd.org/changeset/base/357313 Log: 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 where the first i

svn commit: r357337 - head/sys/riscv/include

2020-01-31 Thread John Baldwin
Author: jhb Date: Fri Jan 31 17:49:15 2020 New Revision: 357337 URL: https://svnweb.freebsd.org/changeset/base/357337 Log: Fix 64-bit value of SSTATUS_SD to use an unsigned long. While here, fix MSTATUS_SD to match SSTATUS_SD. Reviewed by: mhorne MFC after:2 weeks Sponsored by

svn commit: r357344 - head/sys/riscv/riscv

2020-01-31 Thread John Baldwin
Author: jhb Date: Fri Jan 31 19:00:48 2020 New Revision: 357344 URL: https://svnweb.freebsd.org/changeset/base/357344 Log: Add stricter checks on user changes to SSTATUS. Rather than trying to blacklist which bits userland can't write to via sigreturn() or setcontext(), only permit change

Re: svn commit: r357337 - head/sys/riscv/include

2020-01-31 Thread John Baldwin
ince the compiler will always get those correct. -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Re: svn commit: r357407 - head

2020-02-03 Thread John Baldwin
as: # cddl/lib/libdtrace requires lib/libproc and lib/librtld_db > -.if ${MACHINE_CPUARCH} != "sparc64" > _prebuild_libs+= lib/libprocstat lib/libproc lib/librtld_db > lib/libprocstat__L: lib/libelf__L lib/libkvm__L lib/libutil

Re: svn commit: r357361 - in head/sys: kern sys ufs/ufs vm

2020-02-03 Thread John Baldwin
*/ > > -/* > - * Mark this file's access time for update for vfs_mark_atime(). This > - * is called from execve() and mmap(). > - */ Why remove this comment rather than update it? It is largely still true and explains the purpose of the VOP (update the atime) which is now no

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: >> Rem

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: >>

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 Modifi

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 tries

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 softwar

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: 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: head/sys/crypto/via/padlo

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 ==

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

2020-04-16 Thread John Baldwin
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-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

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 ==

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: head/sys/powerpc/aim/m

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 st

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: 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 handl

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 routi

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 ESP

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 val

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:https://rev

<    3   4   5   6   7   8   9   10   11   12   >