svn commit: r360865 - head/sys/mips/atheros

2020-05-09 Thread Adrian Chadd
Author: adrian Date: Sun May 10 03:36:11 2020 New Revision: 360865 URL: https://svnweb.freebsd.org/changeset/base/360865 Log: [atheros] [if_arge] Various fixes to avoid TX stalls and bad sized packets This is stuff I've been running for a couple years. It's inspired by changes I found

svn commit: r360864 - stable/11/sys/cam/ctl

2020-05-09 Thread Alexander Motin
Author: mav Date: Sun May 10 02:14:23 2020 New Revision: 360864 URL: https://svnweb.freebsd.org/changeset/base/360864 Log: MFC r360610: Add session locking in cfiscsi_ioctl_handoff(). While there, remove ifdef around cs_target check in cfiscsi_ioctl_list(). I am not sure why this ifdef

svn commit: r360863 - stable/12/sys/cam/ctl

2020-05-09 Thread Alexander Motin
Author: mav Date: Sun May 10 02:13:38 2020 New Revision: 360863 URL: https://svnweb.freebsd.org/changeset/base/360863 Log: MFC r360610: Add session locking in cfiscsi_ioctl_handoff(). While there, remove ifdef around cs_target check in cfiscsi_ioctl_list(). I am not sure why this ifdef

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

2020-05-09 Thread Kyle Evans
On Tue, Mar 31, 2020 at 11:00 AM Simon J. Gerraty wrote: > > Author: sjg > Date: Tue Mar 31 15:59:29 2020 > New Revision: 359488 > URL: https://svnweb.freebsd.org/changeset/base/359488 > > Log: > Include ${.CURDIR}/local.init.mk if it exists > > This is handy for making local hacks to an app

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 and lld as system

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: r360852 - head/contrib/llvm-project/clang/lib/AST

2020-05-09 Thread Conrad Meyer
Author: cem Date: Sat May 9 19:26:44 2020 New Revision: 360852 URL: https://svnweb.freebsd.org/changeset/base/360852 Log: clang: Reject %n for __attribute__((format(__freebsd_kprintf__))) A follow-up to r360849. Reported by: imp Reviewed by: emaste, imp X-MFC-With: r360849

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

2020-05-09 Thread Ed Maste
On Sat, 9 May 2020 at 12:46, Ryan Stone wrote: > > On Sat, May 9, 2020 at 11:56 AM Ed Maste wrote: > > > > Author: emaste > > Date: Sat May 9 15:56:02 2020 > > New Revision: 360849 > > URL: https://svnweb.freebsd.org/changeset/base/360849 > > > > Log: > > remove %n support from printf(9) > >

svn commit: r360851 - head/sys/compat/linuxkpi/common/include/linux

2020-05-09 Thread Emmanuel Vadot
Author: manu Date: Sat May 9 17:52:50 2020 New Revision: 360851 URL: https://svnweb.freebsd.org/changeset/base/360851 Log: linuxkpi: Add bitmap_copy and bitmap_andnot bitmap_copy simply copy the bitmaps, no idea why it exists. bitmap_andnot is similar to bitmap_and but uses !src2.

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: r360849 - in head: share/man/man9 sys/kern

2020-05-09 Thread Ryan Stone
On Sat, May 9, 2020 at 11:56 AM Ed Maste wrote: > > Author: emaste > Date: Sat May 9 15:56:02 2020 > New Revision: 360849 > URL: https://svnweb.freebsd.org/changeset/base/360849 > > Log: > remove %n support from printf(9) Should we put a KASSERT in to catch if new code tries to use a %n flag

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

2020-05-09 Thread Ed Maste
Author: emaste Date: Sat May 9 15:56:02 2020 New Revision: 360849 URL: https://svnweb.freebsd.org/changeset/base/360849 Log: remove %n support from printf(9) It can be dangerous and there is no need for it in the kernel. Inspired by Kees Cook's change in Linux, and later OpenBSD.

svn commit: r360848 - in head: share/man/man4 sys/dev/rtwn/usb sys/dev/usb

2020-05-09 Thread Mark Johnston
Author: markj Date: Sat May 9 14:49:56 2020 New Revision: 360848 URL: https://svnweb.freebsd.org/changeset/base/360848 Log: rtwn: Add a new USB ID. PR: 246315 Submitted by: Idwer Vollering MFC after:1 week Modified: head/share/man/man4/rtwn_usb.4

svn commit: r360847 - head/share/man/man8

2020-05-09 Thread Edward Tomasz Napierala
Author: trasz Date: Sat May 9 14:19:29 2020 New Revision: 360847 URL: https://svnweb.freebsd.org/changeset/base/360847 Log: Add ARM loader path to uefi(8) man page. MFC after:2 weeks Sponsored by: DARPA Modified: head/share/man/man8/uefi.8 Modified: head/share/man/man8/uefi.8

svn commit: r360846 - head/sys/netgraph/bluetooth/include

2020-05-09 Thread Takanori Watanabe
Author: takawata Date: Sat May 9 14:15:44 2020 New Revision: 360846 URL: https://svnweb.freebsd.org/changeset/base/360846 Log: Add space for RSSI in data member. RSSI is put just after actual data. Submitted by: Marc Veldman PR: 245920 Modified:

svn commit: r360845 - head/sys/kern

2020-05-09 Thread Konstantin Belousov
Author: kib Date: Sat May 9 13:00:38 2020 New Revision: 360845 URL: https://svnweb.freebsd.org/changeset/base/360845 Log: Avoid spurious ENOMEMs from sysctl hw.pagesizes. Reported by: Paul Floyd PR: 246215 Reviewed by: emaste Sponsored by: The FreeBSD Foundation MFC after:

svn commit: r360844 - head/share/man/man3

2020-05-09 Thread Konstantin Belousov
Author: kib Date: Sat May 9 12:58:27 2020 New Revision: 360844 URL: https://svnweb.freebsd.org/changeset/base/360844 Log: Document BUS_OOMERR. Sponsored by: The FreeBSD Foundation MFC after:3 days Differential revision:https://reviews.freebsd.org/D24761 Modified:

Re: svn commit: r360836 - head/stand/libsa/zfs

2020-05-09 Thread Toomas Soome via svn-src-all
> On 9. May 2020, at 11:23, Ronald Klop wrote: > > On Sat, 09 May 2020 09:25:29 +0200, Toomas Soome > wrote: > >> >> >>> On 9. May 2020, at 09:57, Ronald Klop wrote: >>> >>> Hi Toomas, >>> >>> Could this fix this issue >>>

svn commit: r360843 - in stable: 11/sys/dev/mfi 12/sys/dev/mfi

2020-05-09 Thread Dimitry Andric
Author: dim Date: Sat May 9 11:18:34 2020 New Revision: 360843 URL: https://svnweb.freebsd.org/changeset/base/360843 Log: MFC r358689 (by jhibbits): Fix a mistaken conditional in mfi_tbolt_send_frame() As written, the condition of (cdb[0] != 0x28 || cdb[0] != 0x2A) will always be

svn commit: r360843 - in stable: 11/sys/dev/mfi 12/sys/dev/mfi

2020-05-09 Thread Dimitry Andric
Author: dim Date: Sat May 9 11:18:34 2020 New Revision: 360843 URL: https://svnweb.freebsd.org/changeset/base/360843 Log: MFC r358689 (by jhibbits): Fix a mistaken conditional in mfi_tbolt_send_frame() As written, the condition of (cdb[0] != 0x28 || cdb[0] != 0x2A) will always be

svn commit: r360842 - stable/11/sys/dev/isci/scil

2020-05-09 Thread Dimitry Andric
Author: dim Date: Sat May 9 11:10:44 2020 New Revision: 360842 URL: https://svnweb.freebsd.org/changeset/base/360842 Log: MFC r315205 (by cem): scif_sas_controller: Fix inverted logic range check PR: 217742 Submitted by: Svyatoslav Sponsored by: Viva64 (PVS-Studio)

svn commit: r360841 - head/sbin/recoverdisk

2020-05-09 Thread Poul-Henning Kamp
Author: phk Date: Sat May 9 10:55:34 2020 New Revision: 360841 URL: https://svnweb.freebsd.org/changeset/base/360841 Log: Don't send clear screen until we are committed to run. Modified: head/sbin/recoverdisk/recoverdisk.c Modified: head/sbin/recoverdisk/recoverdisk.c

Re: svn commit: r360833 - head

2020-05-09 Thread Mateusz Piotrowski
Hi, On 5/9/20 4:01 AM, Kyle Evans wrote: Author: kevans Date: Sat May 9 02:01:29 2020 New Revision: 360833 URL: https://svnweb.freebsd.org/changeset/base/360833 Log: installworld: attempt a certctl rehash at the tail end ... Modified: head/Makefile.inc1

svn commit: r360840 - in releng/11.4/stand/i386: . boot2 gptboot gptzfsboot isoboot loader zfsboot

2020-05-09 Thread Dimitry Andric
Author: dim Date: Sat May 9 10:30:06 2020 New Revision: 360840 URL: https://svnweb.freebsd.org/changeset/base/360840 Log: MF11 r360838: MFC r358643: Link stand/i386 components using a linker script LLD 10.0.0 changed the behavior of the -Ttext option, so that using -Ttext=0x0

svn commit: r360839 - head/share/man/man5

2020-05-09 Thread Benedict Reuschling
Author: bcr (doc committer) Date: Sat May 9 10:22:00 2020 New Revision: 360839 URL: https://svnweb.freebsd.org/changeset/base/360839 Log: Mention the existence of /etc/defaults/vendor.conf for custom vendor-specific changes to FreeBSD's default settings. While here, fix a typo:

svn commit: r360838 - in stable/11/stand/i386: . boot2 gptboot gptzfsboot isoboot loader zfsboot

2020-05-09 Thread Dimitry Andric
Author: dim Date: Sat May 9 08:55:18 2020 New Revision: 360838 URL: https://svnweb.freebsd.org/changeset/base/360838 Log: MFC r358643: Link stand/i386 components using a linker script LLD 10.0.0 changed the behavior of the -Ttext option, so that using -Ttext=0x0 now causes linking

Re: svn commit: r360836 - head/stand/libsa/zfs

2020-05-09 Thread Ronald Klop
On Sat, 09 May 2020 09:25:29 +0200, Toomas Soome wrote: On 9. May 2020, at 09:57, Ronald Klop wrote: Hi Toomas, Could this fix this issue https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=144234 ? Regards, Ronald. I doubt a bit unless you have GELI encryption or 4kn disk (which we

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

2020-05-09 Thread Vincenzo Maffione
Author: vmaffione Date: Sat May 9 07:57:41 2020 New Revision: 360837 URL: https://svnweb.freebsd.org/changeset/base/360837 Log: bhyve: update man page to describe the virtio-net mtu option r359704 introduced an 'mtu' option for the virtio-net device emulation. Update the man page to

Re: svn commit: r360836 - head/stand/libsa/zfs

2020-05-09 Thread Toomas Soome via svn-src-all
> On 9. May 2020, at 09:57, Ronald Klop wrote: > > Hi Toomas, > > Could this fix this issue > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=144234 ? > > Regards, > Ronald. I doubt a bit unless you have GELI encryption or 4kn disk (which we can not boot with BIOS, only with UEFI).

Re: svn commit: r360836 - head/stand/libsa/zfs

2020-05-09 Thread Ronald Klop
Hi Toomas, Could this fix this issue https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=144234 ? Regards, Ronald. On Sat, 09 May 2020 08:25:21 +0200, Toomas Soome wrote: Author: tsoome Date: Sat May 9 06:25:20 2020 New Revision: 360836 URL:

svn commit: r360836 - head/stand/libsa/zfs

2020-05-09 Thread Toomas Soome
Author: tsoome Date: Sat May 9 06:25:20 2020 New Revision: 360836 URL: https://svnweb.freebsd.org/changeset/base/360836 Log: loader: vdev_read() can corrupt memory When reading less than sector size but from sector boundary, the vdev_read() will read full sector into the provided buffer