HardenedBSD/hardenedbsd a906febsys/vm vm_unix.c

HBSD: Resolve merge conflict

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
+0-51 files

HardenedBSD/hardenedbsd 887d9e4lib/libcasper/services/cap_sysctl cap_sysctl.c cap_sysctl.3, lib/libcasper/services/cap_sysctl/tests sysctl_test.c

Merge remote-tracking branch 'origin/freebsd/current/master' into hardened/current/master

        sys/vm/vm_unix.c (unresolved)

FreeBSD/src 350020head/sbin/camcontrol camcontrol.c

Use a different approach to range check.

gcc hates dt < CC_DT_NONE since it can never be true when dt is an unsigned
type. Since that's a compiler choice and may be affected by weird stuff, instead
use (unsigned)dt > CC_DT_UNKNOWN to test for bounds error since that will work
regardless of the signedness of dt.

FreeBSD/src 350019head/lib/libc/tests/net Makefile

Fix filename to avoid skipping lib/libc/net/servent test.

PR:            239177
Approved by:    ngie
MFC after:      1 month
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D20943

LLVM/llvm 366154llvm/trunk/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/trunk/test/Transforms/SLPVectorizer/X86 lookahead.ll

Temporarily Revert "[SLP] Recommit: Look-ahead operand reordering heuristic."

As there are some reported miscompiles with AVX512 and performance regressions
in Eigen. Verified with the original committer and testcases will be forthcoming.

This reverts commit r364964.

ZFS on Linux/src df834a7cmd/zed/zed.d Makefile.am

Enable zfs-mount-generator by default

Reviewed-by: Richard Laager <rlaager at wiktel.com>
Reviewed-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Antonio Russo <antonio.e.russo at gmail.com>
Closes #8750
Closes #8848

ZFS on Linux/src f88d069cmd/zed/zed.d history_event-zfs-list-cacher.sh.in, etc/systemd/system-generators zfs-mount-generator.in

systemd encryption key support

Modify zfs-mount-generator to produce a dependency on new
zfs-import-key-*.service units, dynamically created at boot to call
zfs load-key for the encryption root, before attempting to mount any
encrypted datasets.

These units are created by zfs-mount-generator, and RequiresMountsFor on
the keyfile, if present, or call systemd-ask-password if a passphrase is

This patch includes suggestions from @Fabian-Gruenbichler, @ryanjaeb and
@rlaager, as well an adaptation of @rlaager's script to retry on
incorrect password entry.

Reviewed-by: Richard Laager <rlaager at wiktel.com>
Reviewed-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Antonio Russo <antonio.e.russo at gmail.com>
Closes #8750
Closes #8848

DragonFlyBSD/dports a8b835cnet-mgmt/ettercap Makefile pkg-plist, net-mgmt/ettercap/files patch-src-dissectors-ec_ssh.c patch-src-ec_sslwrap.c

Update net-mgmt/ettercap to version 0.8.3,1

DragonFlyBSD/dports 8292107net-im/kopete Makefile

Update net-im/kopete to version 19.04.2_1

DragonFlyBSD/dports b356805net-im/qTox Makefile distinfo

Update net-im/qTox to version

ZFS on Linux/src 6993e01module/zfs zpl_xattr.c

Drop redundant POSIX ACL check in zpl_init_acl()

ZFS_ACLTYPE_POSIXACL has already been tested in zpl_init_acl(),
so no need to test again on POSIX ACL access.

Reviewed by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Closes #9009 

HardenedBSD/hardenedbsd bba7d13sys/dev/netmap netmap_freebsd.c netmap_generic.c

Merge remote-tracking branch 'origin/hardened/11-stable/master' into 

* origin/hardened/11-stable/master:
  MFC r349581
  MFC r349966

DragonFlyBSD/dports e3c4355net-im/fractal/files patch-vendor_openssl_src_ssl_mod.rs patch-vendor_openssl-sys_src_crypto.rs

Update net-im/fractal to version 4.0.0_4

LLVM/llvm 366153cfe/trunk/lib/CodeGen BackendUtil.cpp, cfe/trunk/test/CodeGen sancov-new-pm.c

Revert "[NewPM] Port Sancov"

This reverts commit 5652f35817f07b16f8b3856d594cc42f4d7ee29c.

LLVM/llvm 366152cfe/trunk/lib/DirectoryWatcher/linux DirectoryWatcher-linux.cpp

[DirectoryWatcher][linux] Fix for older kernels

IN_EXCL_UNLINK exists since Linux 2.6.36

Differential Revision: https://reviews.llvm.org/D64764

ZFS on Linux/src 64f3d39module/zfs dnode.c

Export dnode symbols

External consumers such as Lustre require access to the dnode
interfaces in order to correctly manipulate dnodes.

Reviewed-by: James Simmons <uja.ornl at yahoo.com>
Reviewed-by: Olaf Faaland <faaland1 at llnl.gov>
Reviewed-by: George Melikov <mail at gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Issue #8994
Closes #9027 
+10-01 files

DragonFlyBSD/dports 9879b03net-im/kaidan Makefile distinfo

Update net-im/kaidan to version 0.4.0

DragonFlyBSD/dports 861628fnet-im/ktp-call-ui Makefile

Update net-im/ktp-call-ui to version 19.04.2_1

ZFS on Linux/src 9949b85module/zfs dsl_destroy.c

Ensure dsl_destroy_head() decrypts objsets

This patch corrects a small issue where the dsl_destroy_head()
code that runs when the async_destroy feature is disabled would
not properly decrypt the dataset before beginning processing.
If the dataset is not able to be decrypted, the optimization
code now simply does not run and the dataset is completely
destroyed in the DSL sync task.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Tom Caputi <tcaputi at datto.com>
Closes #9021 

LLVM/llvm 366151llvm/trunk/lib/Target/X86 X86InstrInfo.cpp X86InstrArithmetic.td, llvm/trunk/test/CodeGen/X86 bmi-intrinsics-fast-isel.ll add.ll

[X86] Teach convertToThreeAddress to handle SUB with immediate

We mostly avoid sub with immediate but there are a couple cases that can create them. One 
is the add 128, %rax -> sub -128, %rax trick in isel. The other is when a SUB immediate 
gets created for a compare where both the flags and the subtract value is used. If we are 
unable to linearize the SelectionDAG to satisfy the flag user and the sub result user from 
the same instruction, we will clone the sub immediate for the two uses. The one that 
produces flags will eventually become a compare. The other will have its flag output dead, 
and could then be considered for LEA creation.

I added additional test cases to add.ll to show the the sub -128 trick gets converted to 
LEA and a case where we don't need to convert it.

This showed up in the current codegen for PR42571.

Differential Revision: https://reviews.llvm.org/D64574

LLVM/llvm 366150compiler-rt/trunk/lib/tsan/rtl tsan_platform_linux.cc

[TSan] Fix asm token error (again)

DragonFlyBSD/dports 5bbef3bnet-im/mikutter distinfo Makefile

Update net-im/mikutter to version 3.8.9

DragonFlyBSD/dports f3df33enet-im/kde-telepathy Makefile

Update net-im/kde-telepathy to version 19.04.2_1

HardenedBSD/hardenedbsd 66db4e1sys/dev/netmap netmap_generic.c netmap_freebsd.c

Merge branch 'freebsd/11-stable/master' into hardened/11-stable/master

* freebsd/11-stable/master:
  MFC r349581
  MFC r349966

LLVM/llvm 366149llvm/trunk/lib/Target/WebAssembly WebAssemblyInstrInfo.cpp, llvm/trunk/lib/Target/WebAssembly/MCTargetDesc WebAssemblyMCTargetDesc.h

[WebAssembly] Add missing utility methods for exnref type

This adds missing utility methods and copy instruction handling for
`exnref` type and also adds tests.

`tee` instruction tests are missing because `isTee` is currently only
used in ExplicitLocals pass and testing that pass in mir requires
serialization of stackified registers in mir files, which is a bit
nontrivial because `MachineFunctionInfo` only has info of vreg numbers
(which are large integers) but not the mir's register numbers. But this
change is quite trivial anyway.

Reviewers: tlively

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64705

FreeBSD/ports 506714head/sysutils/intel-pcm distinfo Makefile, head/sysutils/intel-pcm/files patch-Makefile

Update to 201902

Update to the latest release. There's also been reports of coredumps with the
default -O3 settings and clang 8.0, but not with -O0. Until those are solved,
be conservative and compile -O0. 201902 also fixes a number of stats collection
issues on NUMA / multi-socket machines.

Reported by: gallatin@

NetBSD/pkgsrc yfpLlD1audio/ladspa PLIST Makefile, audio/ladspa/patches patch-aa patch-ab

   ladspa: various portability improvements from clément bouvier

   * Add libtool support in install and build targets
   * Add libtool support to test target
   * Add endian.h header for macosx

   closes PR pkg/54368

DragonFlyBSD/dports 98237b7net/zeroconf-ioslave Makefile

Update net/zeroconf-ioslave to version 19.04.2_1

LLVM/llvm 366148lldb/trunk/include/lldb/Target ObjCLanguageRuntime.h, lldb/trunk/source/Plugins/Language/ObjC Cocoa.h

[LanguageRuntime] Move ObjCLanguageRuntime into a plugin

Following up to my CPPLanguageRuntime change, I'm moving
ObjCLanguageRuntime into a plugin as well.

Reviewers: JDevlieghere, compnerd, jingham, clayborg

Subscribers: mgorny, arphaman, lldb-commits

Differential Revision: https://reviews.llvm.org/D64763

DragonFlyBSD/dports 1936a8cnet/tigervnc-server Makefile.common.mk distinfo, net/tigervnc-server/files patch-unix_vncserver patch-CMakeLists.txt

Tweak net/tigervnc-server version 1.9.0_1

LLVM/llvm 366147llvm/trunk/test/tools/llvm-readobj archive.test macho-universal-x86_64.i386.test, llvm/trunk/tools/llvm-readobj llvm-readobj.cpp

[llvm-readelf] Print "File: lib.a(file.o)" info when dumping archive files.

Match GNU readelf.


Reviewers: jhenderson, grimar, MaskRay, rupprecht

Reviewed by: jhenderson, MaskRay, grimar

Differential Revision: https://reviews.llvm.org/D64361

DragonFlyBSD/dports 5be5c7anet/waypipe Makefile pkg-descr

Import net/waypipe version 0.3.0_2

LLVM/llvm 366146cfe/trunk/include/clang/Driver Options.td, cfe/trunk/test/Driver cl-thinlto-backend.c

add -fthinlto-index= option to clang-cl

This adds a -fthinlto-index= option to clang-cl, which allows it to
be used to drive ThinLTO backend passes. This allows clang-cl to be
used for distributed ThinLTO.

Reviewers: tejohnson, pcc, rnk

Subscribers: mehdi_amini, steven_wu, dexonsmith, arphaman, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D64458

LLVM/llvm 366145llvm/trunk/lib/Target/WebAssembly WebAssemblyLateEHPrepare.cpp WebAssemblyInstrExceptRef.td, llvm/trunk/lib/Target/WebAssembly/MCTargetDesc WebAssemblyMCTargetDesc.h

[WebAssembly] Rename except_ref type to exnref

We agreed to rename `except_ref` to `exnref` for consistency with other
reference types in
https://github.com/WebAssembly/exception-handling/issues/79. This also
renames WebAssemblyInstrExceptRef.td to WebAssemblyInstrRef.td in order
to use the file for other reference types in future.

Reviewers: dschuff

Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, jfb, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64703

DragonFlyBSD/dports 900fc42net/spoofer Makefile distinfo, net/spoofer/files patch-common-util.cc

Update net/spoofer to version 1.4.5_1

DragonFlyBSD/dports 3411dbenet/serviio pkg-plist Makefile

Update net/serviio to version 2.0

LLVM/llvm 366144llvm/trunk/test/tools/llvm-lipo create-without-alignment.test create-executable.test, llvm/trunk/test/tools/llvm-lipo/Inputs arm64-slice.yaml x86_64-slice.yaml

Revert [llvm-lipo] Implement -create (with hardcoded alignments)

This reverts r366142 (git commit 67cee1dc7ee285b03372eb818a3894d35efa7394)

The test is failing on the Windows buildbots. Reverting while I

DragonFlyBSD/dports 2056413multimedia/rav1e distinfo Makefile

Update multimedia/rav1e to version s20190708

DragonFlyBSD/dports f465e5fnet/ocserv distinfo Makefile

Update net/ocserv to version 0.12.4_1

DragonFlyBSD/dports 83e6d54net/kget Makefile

Update net/kget to version 19.04.2_1
+4-21 files

LLVM/llvm 366143cfe/trunk/lib/Sema SemaLookup.cpp, cfe/trunk/utils/TableGen ClangOpenCLBuiltinEmitter.cpp

[OpenCL] Make TableGen'd builtin tables and helper functions static

Reviewers: Pierre, Anastasia

Reviewed By: Anastasia

Subscribers: yaxunl, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D64608

FreeBSD/src 350018head/sbin/camcontrol camcontrol.c camcontrol.8

Implement a devtype command.

List the device's protocol. The returned value is one of the following:
        ata    direct attach ATA or SATA device
        satl   a SATA device attached via SAS
        scsi   A parallel SCSI or SAS
        nvme   A direct attached NVMe device
        mmcsd  A MMC or SD attached device

Reviewed by: scottl@, rpokala@
Differential Revision: https://reviews.freebsd.org/D20950

LLVM/llvm 366142llvm/trunk/test/tools/llvm-lipo create-without-alignment.test create-executable.test, llvm/trunk/test/tools/llvm-lipo/Inputs arm64-slice.yaml x86_64-slice.yaml

[llvm-lipo] Implement -create (with hardcoded alignments)

Creates universal binary output file from input files. Currently uses
hard coded value for alignment.  Want to get the create functionality
approved before implementing the alignment function.

Patch by Anusha Basana <anusha.basana at gmail.com>

Differential Revision: https://reviews.llvm.org/D64102

DragonFlyBSD/dports 1993863net/axa Makefile

Bump net/axa to version 2.2.0_1
+1-01 files

DragonFlyBSD/dports a7c904dmultimedia/shotcut pkg-plist Makefile

Update multimedia/shotcut to version 19.06.15

LLVM/llvm 366141cfe/trunk/tools/clang-fuzzer/handle-llvm handle_llvm.cpp

[clang-fuzzer] Remove 'setUseOrcMCJITReplacement(false)' call.

The default value for this option (UseMCJITReplacement) is already false, and
OrcMCJITReplacement is going to have deprecation warnings attached in LLVM 9.0.
Removing this call removes a spurious warning.

DragonFlyBSD/dports a8c7624multimedia/winff Makefile

Tweak multimedia/winff version 1.5.5_12

DragonFlyBSD/dports c48f818multimedia/subtitlecomposer Makefile distinfo

Update multimedia/subtitlecomposer to version 0.7.0

DragonFlyBSD/dports fe11347multimedia/syncplay Makefile pkg-plist, multimedia/syncplay/files patch-GNUmakefile

Update multimedia/syncplay to version 1.6.4.a

LLVM/llvm 366140llvm/trunk/test/CodeGen/WebAssembly regcopy.mir reg-copy.mir

[WebAssembly] Simplify regcopy.mir

This deletes the ll templates from the functions because they don't need
them (mir files need ll templates only when they have function calls or
BB names that are not numbers).

This also renames the filename to `reg-copy.mir`, because I'm planning
to add some more `reg-*.mir` soon.

Reviewers: tlively

Subscribers: dschuff, sbc100, jgravelle-google, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64704