svn commit: r328620 - stable/11/sys/netipsec

2018-01-31 Thread Andrey V. Elsukov
Author: ae Date: Wed Jan 31 09:24:48 2018 New Revision: 328620 URL: https://svnweb.freebsd.org/changeset/base/328620 Log: MFC r328350: Merge revision 1.35 from NetBSD: fix pointer/offset mistakes in handling of IPv4 options Reported by:Maxime Villard MFC r328352:

svn commit: r328621 - stable/10/sys/netipsec

2018-01-31 Thread Andrey V. Elsukov
Author: ae Date: Wed Jan 31 09:26:28 2018 New Revision: 328621 URL: https://svnweb.freebsd.org/changeset/base/328621 Log: MFC r328350: Merge revision 1.35 from NetBSD: fix pointer/offset mistakes in handling of IPv4 options Reported by: Maxime Villard MFC r328352: Ado

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

2018-01-31 Thread Andriy Gapon
Author: avg Date: Wed Jan 31 11:14:26 2018 New Revision: 328622 URL: https://svnweb.freebsd.org/changeset/base/328622 Log: vmm/svm: post LAPIC interrupts using event injection, not virtual interrupts The virtual interrupt method uses V_IRQ, V_INTR_PRIO, and V_INTR_VECTOR fields of VMCB to

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

2018-01-31 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jan 31 13:40:36 2018 New Revision: 328623 URL: https://svnweb.freebsd.org/changeset/base/328623 Log: Properly implement the cond_resched() function macro in the LinuxKPI. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/compat/linux

svn commit: r328624 - head/sys/x86/x86

2018-01-31 Thread Konstantin Belousov
Author: kib Date: Wed Jan 31 14:25:42 2018 New Revision: 328624 URL: https://svnweb.freebsd.org/changeset/base/328624 Log: Do not enable PTI when IA32_ARCH_CAP_RDCL_NO bit is set. Intel document 336996-001 claims that this will be the way to inform about Meltdown correction. Sponsore

svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Konstantin Belousov
Author: kib Date: Wed Jan 31 14:36:27 2018 New Revision: 328625 URL: https://svnweb.freebsd.org/changeset/base/328625 Log: IBRS support, AKA Spectre hardware mitigation. It is coded according to the Intel document 336996-001, reading of the patches posted on lkml, and some additional cons

svn commit: r328626 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-01-31 Thread Andriy Gapon
Author: avg Date: Wed Jan 31 14:44:51 2018 New Revision: 328626 URL: https://svnweb.freebsd.org/changeset/base/328626 Log: zfs_rezget: drop cached pages before doing anything else We did that in the case of success to prevent the use of stale cached data, but it makes even less sense to k

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Ravi Pokala
Thanks Kostik! Quick question: IBRS stands for...? For that matter, in the previous change, what does RDCL_NO stand for too? -Ravi (rpokala@) -Original Message- From: on behalf of Konstantin Belousov Date: 2018-01-31, Wednesday at 06:36 To: , , Subject: svn commit: r328625 - in he

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Bjoern A. Zeeb
On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: Author: kib Date: Wed Jan 31 14:36:27 2018 New Revision: 328625 URL: https://svnweb.freebsd.org/changeset/base/328625 Log: IBRS support, AKA Spectre hardware mitigation. For existing processors, you need a microcode update which adds I

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Konstantin Belousov
On Wed, Jan 31, 2018 at 06:52:43AM -0800, Ravi Pokala wrote: > Thanks Kostik! > > Quick question: IBRS stands for...? For that matter, in the previous change, > what does RDCL_NO stand for too? Indirect Branch Restricted Speculation Rogue Data Cache Load. Read (or at least skim over) the Intel

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Ravi Pokala
-Original Message- From: on behalf of Konstantin Belousov Date: 2018-01-31, Wednesday at 07:02 To: Ravi Pokala Cc: , , Subject: Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86 > On Wed, Jan 31, 2018 at 06:52:43AM -

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Shawn Webb
On Wed, Jan 31, 2018 at 02:36:27PM +, Konstantin Belousov wrote: > Author: kib > Date: Wed Jan 31 14:36:27 2018 > New Revision: 328625 > URL: https://svnweb.freebsd.org/changeset/base/328625 > > Log: > IBRS support, AKA Spectre hardware mitigation. > > It is coded according to the Intel

Re: svn commit: r328616 - head/sys/powerpc/aim

2018-01-31 Thread Nathan Whitehorn
Thanks! Since PSL_HV is only defined on powerpc64, you also need some #ifdef here or the ppc32 kernel build will break. Also, the comment is longer than 80 characters. -Nathan On 01/30/18 22:42, Wojciech Macek wrote: Author: wma Date: Wed Jan 31 06:42:01 2018 New Revision: 328616 URL: https://

Re: svn commit: r328536 - in head/stand: common powerpc/kboot

2018-01-31 Thread Roger Pau Monné
On Mon, Jan 29, 2018 at 09:24:28AM +, Wojciech Macek wrote: > Modified: head/stand/common/load_elf.c > == > --- head/stand/common/load_elf.c Mon Jan 29 09:21:08 2018 > (r328535) > +++ head/stand/common/load

Re: svn commit: r328536 - in head/stand: common powerpc/kboot

2018-01-31 Thread Roger Pau Monné
On Mon, Jan 29, 2018 at 09:24:28AM +, Wojciech Macek wrote: > Modified: head/stand/common/load_elf.c > == > --- head/stand/common/load_elf.c Mon Jan 29 09:21:08 2018 > (r328535) > +++ head/stand/common/load

Re: svn commit: r328610 - head/sys/amd64/amd64

2018-01-31 Thread Ed Maste
On 30 January 2018 at 21:01, John Baldwin wrote: > On Tuesday, January 30, 2018 11:29:27 PM John Baldwin wrote: >> Author: jhb >> Date: Tue Jan 30 23:29:27 2018 >> New Revision: 328610 >> URL: https://svnweb.freebsd.org/changeset/base/328610 >> >> Log: >> Ensure 'name' is not NULL before passing

Re: svn commit: r328610 - head/sys/amd64/amd64

2018-01-31 Thread John Baldwin
On Wednesday, January 31, 2018 10:31:36 AM Ed Maste wrote: > On 30 January 2018 at 21:01, John Baldwin wrote: > > On Tuesday, January 30, 2018 11:29:27 PM John Baldwin wrote: > >> Author: jhb > >> Date: Tue Jan 30 23:29:27 2018 > >> New Revision: 328610 > >> URL: https://svnweb.freebsd.org/changes

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Konstantin Belousov
On Wed, Jan 31, 2018 at 02:56:24PM +, Bjoern A. Zeeb wrote: > On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: > > > Author: kib > > Date: Wed Jan 31 14:36:27 2018 > > New Revision: 328625 > > URL: https://svnweb.freebsd.org/changeset/base/328625 > > > > Log: > > IBRS support, AKA Spectr

svn commit: r328627 - head/sys/x86/x86

2018-01-31 Thread Konstantin Belousov
Author: kib Date: Wed Jan 31 16:54:05 2018 New Revision: 328627 URL: https://svnweb.freebsd.org/changeset/base/328627 Log: Expand IBRS TLA in sysctl help lines. Requested by: bz Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/x86/x86/cpu_machdep.c Modifi

svn commit: r328628 - head/sys/amd64/amd64

2018-01-31 Thread Konstantin Belousov
Author: kib Date: Wed Jan 31 16:56:02 2018 New Revision: 328628 URL: https://svnweb.freebsd.org/changeset/base/328628 Log: When switching IBRS on, also enable STIBP (Single Thread Indirect Branch Predictors) mitigation. DOcument 336996-001 promises that CPUs which implement IBRS but not

Re: svn commit: r328383 - head/sbin/fsck_ffs

2018-01-31 Thread Mark Johnston
On Wed, Jan 24, 2018 at 11:57:40PM +, Kirk McKusick wrote: > Author: mckusick > Date: Wed Jan 24 23:57:40 2018 > New Revision: 328383 > URL: https://svnweb.freebsd.org/changeset/base/328383 > > Log: > More throughly integrate libufs into fsck_ffs by using its cgput() > routine to write out

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Ed Maste
On 31 January 2018 at 09:56, Bjoern A. Zeeb wrote: > On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: > >> Author: kib >> Date: Wed Jan 31 14:36:27 2018 >> New Revision: 328625 >> URL: https://svnweb.freebsd.org/changeset/base/328625 >> >> Log: >> IBRS support, AKA Spectre hardware mitigatio

svn commit: r328629 - in head: lib/libc/mips/gen sys/mips/include sys/mips/mips

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 17:36:39 2018 New Revision: 328629 URL: https://svnweb.freebsd.org/changeset/base/328629 Log: Consistently use 16-byte alignment for MIPS N32 and N64. - Add a new header to hold constants shared between C and assembly such as CALLFRAME_SZ. - Add a new STA

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

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 17:56:36 2018 New Revision: 328630 URL: https://svnweb.freebsd.org/changeset/base/328630 Log: Clarify that the additional arguments to makecontext() are of type int. MFC after:1 week Sponsored by: DARPA / AFRL Modified: head/lib/libc/gen/makecontext.3

svn commit: r328631 - in head/lib/libc: i386/gen powerpc/gen powerpc64/gen

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 17:57:59 2018 New Revision: 328631 URL: https://svnweb.freebsd.org/changeset/base/328631 Log: Remove bogus checks against NCARGS. NCARGS isn't a limit on the number of arguments to pass to a function, but the number of bytes that can be consumed by arguments t

svn commit: r328632 - head/lib/libc/mips/gen

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 18:00:23 2018 New Revision: 328632 URL: https://svnweb.freebsd.org/changeset/base/328632 Log: Remove limitation of 6 arguments for makecontext() on mips. This implementation spills additional arguments on the stack so works fine with more than 6 arguments. I

svn commit: r328633 - head/lib/libc/tests/gen

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 18:02:02 2018 New Revision: 328633 URL: https://svnweb.freebsd.org/changeset/base/328633 Log: Add a new set of simple tests for makecontext(). In contrast to the existing NetBSD setcontext_link test, these tests verify that passing from 1 to 6 arguments throug

svn commit: r328634 - head/contrib/netbsd-tests/lib/libc/sys

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 18:03:40 2018 New Revision: 328634 URL: https://svnweb.freebsd.org/changeset/base/328634 Log: Update limits on makecontext() arguments in the setcontext_link test. sparc64 and riscv do not support 10 arguments, but MIPS now does. While here, combine clauses fo

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Rodney W. Grimes
> On Wed, Jan 31, 2018 at 02:56:24PM +, Bjoern A. Zeeb wrote: > > On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: > > > > > Author: kib > > > Date: Wed Jan 31 14:36:27 2018 > > > New Revision: 328625 > > > URL: https://svnweb.freebsd.org/changeset/base/328625 > > > > > > Log: > > > IBRS

svn commit: r328635 - head/lib/libgcc_s

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 18:13:33 2018 New Revision: 328635 URL: https://svnweb.freebsd.org/changeset/base/328635 Log: Don't include long double routines on architectures with small long double. Reviewed by: emaste Sponsored by: DARPA / AFRL Differential Revision:https://re

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Steven Hartland
Pretty sure I’ve seen that too On Wed, 31 Jan 2018 at 18:05, Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> wrote: > > On Wed, Jan 31, 2018 at 02:56:24PM +, Bjoern A. Zeeb wrote: > > > On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: > > > > > > > Author: kib > > > > Date: Wed Jan 31

svn commit: r328636 - in head/sys: dev/atkbdc sys

2018-01-31 Thread Vladimir Kondratyev
Author: wulf Date: Wed Jan 31 21:14:59 2018 New Revision: 328636 URL: https://svnweb.freebsd.org/changeset/base/328636 Log: psm(4): Add support for HP EliteBook 1040 ForcePads. ForcePads do not have any physical buttons, instead they detect click based on finger pressure. Forcepads errone

svn commit: r328637 - head/lib/libgcc_s

2018-01-31 Thread Glen Barber
Author: gjb Date: Wed Jan 31 21:41:42 2018 New Revision: 328637 URL: https://svnweb.freebsd.org/changeset/base/328637 Log: Fix build by escaping a line break. PR: 225597 Submitted by: cbnfinley at gmail.com Sponsored by: The FreeBSD Foundation Modified: head/lib/libgcc_s/Ma

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

2018-01-31 Thread Vladimir Kondratyev
Author: wulf Date: Wed Jan 31 21:46:37 2018 New Revision: 328638 URL: https://svnweb.freebsd.org/changeset/base/328638 Log: psm(4): Reduce psm watchdog verbosity Modern touchpads do not issue interrupts on inactivity so "lost interrupt" message became annoying spam nowadays. This change q

svn commit: r328639 - in head/contrib/jemalloc: . include/jemalloc

2018-01-31 Thread Marius Strobl
Author: marius Date: Wed Jan 31 21:56:23 2018 New Revision: 328639 URL: https://svnweb.freebsd.org/changeset/base/328639 Log: Account for the fact that jemalloc 5.0.0 dropped STATIC_PAGE_SHIFT in favor for using LG_PAGE directly and, thus, for the fact that host and target don't necessarily

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

2018-01-31 Thread Vladimir Kondratyev
Author: wulf Date: Wed Jan 31 22:17:52 2018 New Revision: 328640 URL: https://svnweb.freebsd.org/changeset/base/328640 Log: psm: Add a kludge to support 0x46 identity middle byte Synaptics touchpads Most synaptics touchpads return 0x47 in middle byte in responce to identify command as sta

svn commit: r328641 - head/usr.bin/dtc

2018-01-31 Thread Kyle Evans
Author: kevans Date: Wed Jan 31 22:20:33 2018 New Revision: 328641 URL: https://svnweb.freebsd.org/changeset/base/328641 Log: dtc(1): Revert WARNS change from r328173 WARNS > 3 breaks xtoolchain builds to varying degrees. Revert it. Reported by: lwhsu, jhb MFC after:3 days Modi

svn commit: r328642 - in head/stand: . common

2018-01-31 Thread Warner Losh
Author: imp Date: Wed Jan 31 22:46:05 2018 New Revision: 328642 URL: https://svnweb.freebsd.org/changeset/base/328642 Log: Break out the interpreters (simple and forth) w/o ifdefs. This is akin to what Pedro Souza and Wojciech Koszek did in the lua GSoC with interp.h, interp_simple.c and ch

svn commit: r328643 - head/sys/kern

2018-01-31 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 31 22:49:50 2018 New Revision: 328643 URL: https://svnweb.freebsd.org/changeset/base/328643 Log: One of the vnode fields listed by vn_printf is the union of pointers whose type depends on the type of vnode. Correct vn_printf so that it correctly identifies the

Re: svn commit: r328637 - head/lib/libgcc_s

2018-01-31 Thread John Baldwin
On Wednesday, January 31, 2018 09:41:42 PM Glen Barber wrote: > Author: gjb > Date: Wed Jan 31 21:41:42 2018 > New Revision: 328637 > URL: https://svnweb.freebsd.org/changeset/base/328637 > > Log: > Fix build by escaping a line break. > > PR: 225597 > Submitted by: cbnfinley

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

2018-01-31 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 31 23:13:37 2018 New Revision: 328644 URL: https://svnweb.freebsd.org/changeset/base/328644 Log: When reading a cylinder group, break out reporting of check hash errors from other types of errors so that the error is correctly reported. Modified: head/sys/ufs/

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

2018-01-31 Thread Warner Losh
Author: imp Date: Wed Jan 31 23:16:19 2018 New Revision: 328645 URL: https://svnweb.freebsd.org/changeset/base/328645 Log: Add the new armv7 architecture. Modified: head/share/man/man7/arch.7 Modified: head/share/man/man7/arch.7 ===

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

2018-01-31 Thread Warner Losh
Author: imp Date: Wed Jan 31 23:16:54 2018 New Revision: 328646 URL: https://svnweb.freebsd.org/changeset/base/328646 Log: Bump .Dd Modified: head/share/man/man7/arch.7 Modified: head/share/man/man7/arch.7 == --- hea

svn commit: r328647 - head/sys/geom/journal

2018-01-31 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 31 23:30:49 2018 New Revision: 328647 URL: https://svnweb.freebsd.org/changeset/base/328647 Log: Null out journal softc pointer earlier to avoid a segment fault that can otherwise occur. PR: 221804 Submitted by: Andreas Longwitz MFC after:

Re: svn commit: r328593 - head/release/scripts

2018-01-31 Thread Jonathan Anderson
On 30 Jan 2018, at 14:58, Rodney W. Grimes wrote: Do we even want to include the ports tree on install media? Extracting ports from some out-of-date tarball doesn't seem to match best practices for ports and it takes up quite a lot of space. -Nathan Yes, you want to ship a known working know

svn commit: r328648 - stable/11/sbin/pfctl

2018-01-31 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 1 01:59:37 2018 New Revision: 328648 URL: https://svnweb.freebsd.org/changeset/base/328648 Log: MFC r328497: pfctl(8): Fix two wrong conditions. Caught by gcc80's -Wtautological-compare option. MFC after:5 days Reviewed by: kp Obtained from:

svn commit: r328649 - stable/10/sbin/pfctl

2018-01-31 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 1 02:00:36 2018 New Revision: 328649 URL: https://svnweb.freebsd.org/changeset/base/328649 Log: MFC r328497: pfctl(8): Fix two wrong conditions. Caught by gcc80's -Wtautological-compare option. MFC after:5 days Reviewed by: kp Obtained from:

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

2018-01-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Feb 1 05:28:02 2018 New Revision: 328650 URL: https://svnweb.freebsd.org/changeset/base/328650 Log: Fix build on 32-bit PowerPC, broken in r328537. Modified: head/sys/powerpc/aim/mp_cpudep.c Modified: head/sys/powerpc/aim/mp_cpudep.c

svn commit: r328651 - in head/sys/powerpc: aim booke include powerpc

2018-01-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Feb 1 05:31:24 2018 New Revision: 328651 URL: https://svnweb.freebsd.org/changeset/base/328651 Log: Change the default MSR values used when starting userland and kernel threads from compile-time defines to global variables. This removes a significant amount of d