r336294 alc July 14, 2018, 8:14 p.m.
Doing so ensures that all threads sharing the pmap have a consistent
view of the mapping.  This fixes the problem described in the commit
log message for r329254 without the overhead of an extra page fault
in the common case.  (Now that all pmap_enter() implementations are
similarly modified, the workaround added in r329254 can be removed,
reducing the overhead of COW faults.)

With this change we can reuse the PV entry from the old mapping,
potentially avoiding a call to reclaim_pv_chunk().  Otherwise, there is
nothing preventing the old PV entry from being reclaimed.  In rare
cases this could result in the PTE's page table page being freed,
leading to a use-after-free of the page when the updated PTE is written
following the allocation of the PV entry for the new mapping.

Reviewed by:	br, markj
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D16261
ViewVC
r336293 tuexen July 14, 2018, 7:53 p.m.
This bug was spotted by markj@ in D16268 because I copied this code part
and used it there. So fix it.

Sponsored by:		Netflix, Inc.
ViewVC
r336292 rmacklem July 14, 2018, 7:51 p.m.
Without this patch, the client side NFSv4.1 pNFS code erroneously did writes
and commits to both DS mirrors using the TCP connection of the first one.
For my test setup this worked, since I have both DSs running on the same
machine, but it would have failed when the DSs are on separate machines.
This patch fixes the code to use the correct TCP connection for each DS.
This patch should only affect the NFSv4.1 client when using "pnfs" mounts
to mirrored DSs.

MFC after:	2 weeks
ViewVC
r336291 tuexen July 14, 2018, 7:49 p.m.
Since we don't have /usr/bin/ksh, use a generic way of specifying
ksh. Some of the tests only run with ksh93, so use this shell
for these tests. Two of the tests don't have the execute bit set,
so fix this, too.

Reviewed by:		markj@
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D16270
ViewVC
r336290 alc July 14, 2018, 7:35 p.m.
Reviewed by:	kib
ViewVC
r336289 stevek July 14, 2018, 5:21 p.m.
In the method, disallow changing SUID/SGID on verified files.

Obtained from:	Juniper Networks, Inc.
ViewVC
r336288 alc July 14, 2018, 5:20 p.m.
add support for explicitly requesting that pmap_enter() create a 2 or 4 MB
page mapping.  (Essentially, this feature allows the machine-independent
layer to create superpage mappings preemptively, and not wait for automatic
promotion to occur.)

Export pmap_ps_enabled() to the machine-independent layer.

Add a flag to pmap_pv_insert_pde() that specifies whether it should fail or
reclaim a PV entry when one is not available.

Refactor pmap_enter_pde() into two functions, one by the same name, that is
a general-purpose function for creating PDE PG_PS mappings, and another,
pmap_enter_4mpage(), that is used to prefault 2 or 4 MB read- and/or
execute-only mappings for execve(2), mmap(2), and shmat(2).

Reviewed by:	kib
Tested by:	pho
Differential Revision:	https://reviews.freebsd.org/D16246
ViewVC
r336287 stevek July 14, 2018, 5:18 p.m.
and its fingerprint modules into a kernel.

Reviewed by:	sjg
ViewVC
r336286 stevek July 14, 2018, 5:15 p.m.
enabled in the kernel config.

Remove unused mac_veriexec_print_db prototype in internal header file.
ViewVC
r336285 tuexen July 14, 2018, 5:12 p.m.
For compatibility, add the TCP state names used by Solaris
and given in the Dtrace Guide available at
https://docs.oracle.com/cd/E37838_01/html/E61035/glhgu.html#OSDTGglhmv

Reviewed by:		markj@
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D16269
ViewVC
r336284 stevek July 14, 2018, 4:59 p.m.
little practical use and would not be recommended for anyone to use in
a production environment.

Reviewed by:	sjg
ViewVC
r336283 ian July 14, 2018, 4:33 p.m.
linux-style boot args, so wrap it in the appropriate ifdef.
ViewVC
r336282 sbruno July 14, 2018, 4:19 p.m.
Submitted by:	Jason Eggleston <jason@eggnet.com>
Sponsored by:	Limelight Networks
Differential Revision:	https://reviews.freebsd.org/D14621
ViewVC
r336281 markj July 14, 2018, 4:06 p.m.
In some cases it seems that the PHY mode can only be identified by
matching against the corresponding device node name in the FDT.  r334880
broke this for the case where the node name contains a unit address.
Fix the problem by allowing a match in that case.

Reviewed by:	andrew, sbruno
Tested by:	sbruno
Differential Revision:	https://reviews.freebsd.org/D16259
ViewVC
r336280 cem July 14, 2018, 3:45 p.m.
It can occur during ordinary use of softupdates, or perhaps if writes to the
underlying media fail (causing bufs to be redirtied).  Either way, it is not
particularly actionable.

Reviewed by:	imp, kib
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D16258
ViewVC