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

2020-04-26 Thread Hans Petter Selasky
Author: hselasky Date: Sun Apr 26 08:34:03 2020 New Revision: 360330 URL: https://svnweb.freebsd.org/changeset/base/360330 Log: MFC r359968: Cast all ioctl command arguments through uint32_t internally. Hide debug print showing use of sign extended ioctl command argument under

svn commit: r360332 - stable/10/sys/kern

2020-04-26 Thread Hans Petter Selasky
Author: hselasky Date: Sun Apr 26 08:35:32 2020 New Revision: 360332 URL: https://svnweb.freebsd.org/changeset/base/360332 Log: MFC r359968: Cast all ioctl command arguments through uint32_t internally. Hide debug print showing use of sign extended ioctl command argument under

svn commit: r360334 - stable/11/sys/dev/usb/controller

2020-04-26 Thread Hans Petter Selasky
Author: hselasky Date: Sun Apr 26 08:37:31 2020 New Revision: 360334 URL: https://svnweb.freebsd.org/changeset/base/360334 Log: MFC r360075: Set the maximum exit latency to 0 for XHCI USB 3.0 devices, because we don't implement link power management, LPM. This fixes error code

svn commit: r360331 - stable/11/sys/kern

2020-04-26 Thread Hans Petter Selasky
Author: hselasky Date: Sun Apr 26 08:34:52 2020 New Revision: 360331 URL: https://svnweb.freebsd.org/changeset/base/360331 Log: MFC r359968: Cast all ioctl command arguments through uint32_t internally. Hide debug print showing use of sign extended ioctl command argument under

svn commit: r360336 - stable/9/sys/dev/usb/controller

2020-04-26 Thread Hans Petter Selasky
Author: hselasky Date: Sun Apr 26 08:38:53 2020 New Revision: 360336 URL: https://svnweb.freebsd.org/changeset/base/360336 Log: MFC r360075: Set the maximum exit latency to 0 for XHCI USB 3.0 devices, because we don't implement link power management, LPM. This fixes error code

svn commit: r360329 - head/usr.sbin/bluetooth/hccontrol

2020-04-26 Thread Hans Petter Selasky
Author: hselasky Date: Sun Apr 26 08:31:08 2020 New Revision: 360329 URL: https://svnweb.freebsd.org/changeset/base/360329 Log: Properly update AD field length in hccontrol(8). While at it use strtol() instead of atoi() to support hexadecimal numbers aswell as 10-base numbers.

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

2020-04-26 Thread Hans Petter Selasky
Author: hselasky Date: Sun Apr 26 08:36:54 2020 New Revision: 360333 URL: https://svnweb.freebsd.org/changeset/base/360333 Log: MFC r360075: Set the maximum exit latency to 0 for XHCI USB 3.0 devices, because we don't implement link power management, LPM. This fixes error code

svn commit: r360335 - stable/10/sys/dev/usb/controller

2020-04-26 Thread Hans Petter Selasky
Author: hselasky Date: Sun Apr 26 08:38:10 2020 New Revision: 360335 URL: https://svnweb.freebsd.org/changeset/base/360335 Log: MFC r360075: Set the maximum exit latency to 0 for XHCI USB 3.0 devices, because we don't implement link power management, LPM. This fixes error code

svn commit: r360337 - head/sys/netinet

2020-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 26 13:02:42 2020 New Revision: 360337 URL: https://svnweb.freebsd.org/changeset/base/360337 Log: Fix order of arguments in fib[46]_lookup calls in SCTP. r360292 introduced the wrong order, resulting in returned nhops not being referenced, despite the fact

svn commit: r360340 - stable/10/usr.sbin/timed

2020-04-26 Thread Dimitry Andric
Author: dim Date: Sun Apr 26 15:52:41 2020 New Revision: 360340 URL: https://svnweb.freebsd.org/changeset/base/360340 Log: Remove stray "DO NOT DELETE" line, which bmake apparently put in without my knowledge or consent. I did not intend to commit this. Modified:

svn commit: r360346 - head/tests/sys/net

2020-04-26 Thread Kristof Provost
Author: kp Date: Sun Apr 26 16:27:03 2020 New Revision: 360346 URL: https://svnweb.freebsd.org/changeset/base/360346 Log: bridge tests: Test for #216510 We used to have an issue with recursive locking with net.link.bridge.inherit_mac. This causes us to send an ARP request while we hold

svn commit: r360350 - head/contrib/llvm-project/llvm/lib/Target/ARM

2020-04-26 Thread Dimitry Andric
Author: dim Date: Sun Apr 26 19:17:45 2020 New Revision: 360350 URL: https://svnweb.freebsd.org/changeset/base/360350 Log: Tentatively apply https://reviews.llvm.org/D78877 (by Dave Green): [ARM] Only produce qadd8b under hasV6Ops When compiling for a arm5te cpu from clang, the

svn commit: r360345 - head/sys/net

2020-04-26 Thread Kristof Provost
Author: kp Date: Sun Apr 26 16:22:35 2020 New Revision: 360345 URL: https://svnweb.freebsd.org/changeset/base/360345 Log: bridge: epoch-ification Run the bridge datapath under epoch, rather than under the BRIDGE_LOCK(). We still take the BRIDGE_LOCK() whenever we insert or delete

svn commit: r360348 - head/sys/netinet6

2020-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 26 18:07:35 2020 New Revision: 360348 URL: https://svnweb.freebsd.org/changeset/base/360348 Log: Fix IPv6 link-local operations with RADIX_MPATH. It was broken by r360292 as fib6_lookup() assumes de-embedded addresses while rtalloc_mpath_fib() requires

svn commit: r360341 - stable/12/sbin/pfctl

2020-04-26 Thread Kristof Provost
Author: kp Date: Sun Apr 26 16:06:09 2020 New Revision: 360341 URL: https://svnweb.freebsd.org/changeset/base/360341 Log: MFC r360096: pfctl: Remove unused variable Submitted by: Nick Rogers MFC after:1 week Sponsored by: RG Nets Modified:

svn commit: r360342 - stable/12/sys/netpfil/pf

2020-04-26 Thread Kristof Provost
Author: kp Date: Sun Apr 26 16:13:50 2020 New Revision: 360342 URL: https://svnweb.freebsd.org/changeset/base/360342 Log: MFC r360098: pf: Improve ioctl() input validation Both DIOCCHANGEADDR and DIOCADDADDR take a struct pf_pooladdr from userspace. They failed to validate the dyn

svn commit: r360343 - stable/11/sys/netpfil/pf

2020-04-26 Thread Kristof Provost
Author: kp Date: Sun Apr 26 16:13:51 2020 New Revision: 360343 URL: https://svnweb.freebsd.org/changeset/base/360343 Log: MFC r360098: pf: Improve ioctl() input validation Both DIOCCHANGEADDR and DIOCADDADDR take a struct pf_pooladdr from userspace. They failed to validate the dyn

svn commit: r360347 - head/sys/netpfil/pf

2020-04-26 Thread Kristof Provost
Author: kp Date: Sun Apr 26 16:30:00 2020 New Revision: 360347 URL: https://svnweb.freebsd.org/changeset/base/360347 Log: pf: Virtualise pf_frag_mtx The pf_frag_mtx mutex protects the fragments queue. The fragments queue is virtualised already (i.e. per-vnet) so it makes no sense to

svn commit: r360349 - in head/sys: net netinet netinet6

2020-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 26 18:42:38 2020 New Revision: 360349 URL: https://svnweb.freebsd.org/changeset/base/360349 Log: Convert debugnet to the new routing KPI. Introduce new fib[46]_lookup_debugnet() functions serving as a special interface for the crash-time operations.

svn commit: r360338 - in stable: 10/usr.sbin/timed 10/usr.sbin/timed/timed 11/usr.sbin/timed/timed 12/usr.sbin/timed/timed

2020-04-26 Thread Dimitry Andric
Author: dim Date: Sun Apr 26 15:50:32 2020 New Revision: 360338 URL: https://svnweb.freebsd.org/changeset/base/360338 Log: Add casts to work around harmless -Werror warnings from clang 10.0.0, such as: usr.sbin/timed/timed/networkdelta.c:160:13: error: implicit conversion from 'long' to

svn commit: r360338 - in stable: 10/usr.sbin/timed 10/usr.sbin/timed/timed 11/usr.sbin/timed/timed 12/usr.sbin/timed/timed

2020-04-26 Thread Dimitry Andric
Author: dim Date: Sun Apr 26 15:50:32 2020 New Revision: 360338 URL: https://svnweb.freebsd.org/changeset/base/360338 Log: Add casts to work around harmless -Werror warnings from clang 10.0.0, such as: usr.sbin/timed/timed/networkdelta.c:160:13: error: implicit conversion from 'long' to

svn commit: r360338 - in stable: 10/usr.sbin/timed 10/usr.sbin/timed/timed 11/usr.sbin/timed/timed 12/usr.sbin/timed/timed

2020-04-26 Thread Dimitry Andric
Author: dim Date: Sun Apr 26 15:50:32 2020 New Revision: 360338 URL: https://svnweb.freebsd.org/changeset/base/360338 Log: Add casts to work around harmless -Werror warnings from clang 10.0.0, such as: usr.sbin/timed/timed/networkdelta.c:160:13: error: implicit conversion from 'long' to

svn commit: r360339 - head/tests/sys/mac/bsdextended

2020-04-26 Thread Alan Somers
Author: asomers Date: Sun Apr 26 15:51:46 2020 New Revision: 360339 URL: https://svnweb.freebsd.org/changeset/base/360339 Log: mac_bsdextended: ATFify the tests The new tests have more complete setup and cleanup, are more granular, and correctly annotate expected failures and skipped

svn commit: r360344 - head/sys/netpfil/pf

2020-04-26 Thread Kristof Provost
Author: kp Date: Sun Apr 26 16:16:39 2020 New Revision: 360344 URL: https://svnweb.freebsd.org/changeset/base/360344 Log: pf: Improve input validation If we pass an anchor name which doesn't exist pfr_table_count() returns -1, which leads to an overflow in mallocarray() and thus a panic.

svn commit: r360351 - stable/12/sys/dev/evdev

2020-04-26 Thread Vladimir Kondratyev
Author: wulf Date: Sun Apr 26 19:42:40 2020 New Revision: 360351 URL: https://svnweb.freebsd.org/changeset/base/360351 Log: MFC r359905: [evdev] Use proper mutex reference in autorepeat callout initialization. This fixes panic occuring when evdev key autorepeat is enabled by driver

svn commit: r360352 - stable/11/sys/dev/evdev

2020-04-26 Thread Vladimir Kondratyev
Author: wulf Date: Sun Apr 26 19:43:27 2020 New Revision: 360352 URL: https://svnweb.freebsd.org/changeset/base/360352 Log: MFC r359905: [evdev] Use proper mutex reference in autorepeat callout initialization. This fixes panic occuring when evdev key autorepeat is enabled by driver

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

2020-04-26 Thread Mark Johnston
Author: markj Date: Sun Apr 26 20:08:57 2020 New Revision: 360354 URL: https://svnweb.freebsd.org/changeset/base/360354 Log: Use a single VM object for kernel stacks. Previously we allocated a separate VM object for each kernel stack. However, fully constructed kernel stacks are cached

svn commit: r360353 - head/sys/dev/atkbdc

2020-04-26 Thread Vladimir Kondratyev
Author: wulf Date: Sun Apr 26 20:06:08 2020 New Revision: 360353 URL: https://svnweb.freebsd.org/changeset/base/360353 Log: psm(4): Fix wrong key-release event occuring after trackpoint use. Some models of laptops e.g. "X1 Carbon 3rd Gen Thinkpad" have LRM buttons wired as so called

svn commit: r360357 - head/sys/kern

2020-04-26 Thread Mark Johnston
Author: markj Date: Sun Apr 26 22:04:43 2020 New Revision: 360357 URL: https://svnweb.freebsd.org/changeset/base/360357 Log: Fix up i386 thread structure layout assertions after r360354. Reported by: Jenkins Modified: head/sys/kern/kern_thread.c Modified: head/sys/kern/kern_thread.c

svn commit: r360355 - head/sys/dev/ichiic

2020-04-26 Thread Vladimir Kondratyev
Author: wulf Date: Sun Apr 26 20:16:18 2020 New Revision: 360355 URL: https://svnweb.freebsd.org/changeset/base/360355 Log: ig4(4): Add PCI IDs for Intel Bay Trail I2C controllers. PR: 245654 Reported by: MFC after:1 week Modified: head/sys/dev/ichiic/ig4_pci.c

svn commit: r360356 - head/usr.bin/sockstat

2020-04-26 Thread Ryan Moeller
Author: freqlabs Date: Sun Apr 26 20:55:11 2020 New Revision: 360356 URL: https://svnweb.freebsd.org/changeset/base/360356 Log: sockstat: Attach to jail if in new vnet Attach sockstat -j to the specified jail if the jail is in a new vnet. Otherwise we do not see all sockets belonging to

svn commit: r360358 - head/sys/dev/sound/pci/hda

2020-04-26 Thread Ed Maste
Author: emaste Date: Sun Apr 26 22:08:47 2020 New Revision: 360358 URL: https://svnweb.freebsd.org/changeset/base/360358 Log: snd_hda: use bool for hdac_reset's boolean wakeup param Modified: head/sys/dev/sound/pci/hda/hdac.c Modified: head/sys/dev/sound/pci/hda/hdac.c

svn commit: r360360 - head/usr.sbin/bluetooth/hccontrol

2020-04-26 Thread Takanori Watanabe
Author: takawata Date: Mon Apr 27 02:48:49 2020 New Revision: 360360 URL: https://svnweb.freebsd.org/changeset/base/360360 Log: Fix advertise packet parsing. Differential Revision:https://reviews.freebsd.org/D21779 Modified: head/usr.sbin/bluetooth/hccontrol/node.c Modified:

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: r360368 - stable/12/usr.sbin/config

2020-04-26 Thread Jason A. Harmening
Author: jah Date: Mon Apr 27 05:35:26 2020 New Revision: 360368 URL: https://svnweb.freebsd.org/changeset/base/360368 Log: MFC r359815: config(8): use sbuf to manage line buffers Modified: stable/12/usr.sbin/config/main.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r360359 - head/sbin/fsck_msdosfs

2020-04-26 Thread Xin LI
Author: delphij Date: Mon Apr 27 02:01:48 2020 New Revision: 360359 URL: https://svnweb.freebsd.org/changeset/base/360359 Log: Fix a bug with dirty file system handling. r356313 broke handling of dirty file system because we have restricted the correction of "odd" byte sequences to

svn commit: r360362 - stable/11/contrib/tzdata

2020-04-26 Thread Philip Paeps
Author: philip Date: Mon Apr 27 03:57:17 2020 New Revision: 360362 URL: https://svnweb.freebsd.org/changeset/base/360362 Log: MFC r360240: Import tzdata 2020a Modified: stable/11/contrib/tzdata/Makefile stable/11/contrib/tzdata/NEWS stable/11/contrib/tzdata/africa

svn commit: r360361 - stable/12/contrib/tzdata

2020-04-26 Thread Philip Paeps
Author: philip Date: Mon Apr 27 03:56:47 2020 New Revision: 360361 URL: https://svnweb.freebsd.org/changeset/base/360361 Log: MFC r360240: Import tzdata 2020a Modified: stable/12/contrib/tzdata/Makefile stable/12/contrib/tzdata/NEWS stable/12/contrib/tzdata/africa