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)

LLVM/llvm 364486compiler-rt/trunk/cmake config-ix.cmake

[GWP-ASan] D63736 broke ARMv7/v8 sanitizer bots.

Remove ARM32/ARM64 support for GWP-ASan due to a strange SEGV when
running scudo's preinit.c test. Disabling to make the bots go green
while investigating.

NetBSD/pkgsrc-wip c038895coverity-analysis-bin PLIST distinfo

coverity-analysis-bin: update to 2019.03.

Changes not found.

DragonFlyBSD/dports d02714fcad/freecad Makefile, cad/freecad/files patch-CMakeLists.txt

Update cad/freecad to version 0.18.2_1

HardenedBSD/hardenedbsd 09c76d4share/man/man4 pwmc.4, sys/arm/allwinner aw_pwm.c

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

* freebsd/12-stable/master:
  MFC r349196: Make zlib encoding messages idempotent.
  MFC r343826, r346698, r349057-r349060, r349073-r349077, r349080-r349086, r349088,     
r349091-r349097, r349115, r349119, r349130-r349132, r349143-r349145,     r349164-r349168, 
r349174, r349269-r349273
  MFC r340130, r340134:
  MFC r341268, r342003-r342007, r342087-r342088, r342091

LLVM/llvm 364485llvm/trunk/cmake/modules GetHostTriple.cmake

[cmake] Allow config.guess to be run with MSYS on Windows

With r363420, config.guess can no longer be run with MSYS on Windows and this
patch should be able to fix this particular case.

Reviewers: compnerd

Reviewed By: compnerd

Subscribers: mgorny, llvm-commits

Tags: #llvm

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

DragonFlyBSD/dports 14a7a0cdevel/qtcreator pkg-plist distinfo

Update devel/qtcreator to version 4.9.1

FreeBSD/src 349444head/sys/arm64/arm64 freebsd32_machdep.c

In get_fpcontext32() and set_fpcontext32(), we can't just use memcpy() to
copy the VFP registers.
arvm7 VFP uses 32 64bits fp registers (but those could be used in pairs to
make 16 128bits registers), while aarch64 uses 32 128bits fp registers, so
we have to copy the value of each register.

NetBSD/src Oits6lWsys/arch/sandpoint/stand/altboot main.c

   make this compile again

FreeBSD/src 349443stable 11 12, stable/11/sys/amd64/vmm vmm_instruction_emul.c

MFC: r347065 (by jhb) Emulate the "ADD reg, r/m" instruction (opcode 03H).

OVMF's flash variable storage is using add instructions when indexing
the variable store bootrom location.

LLVM/llvm 364484lldb/trunk/packages/Python/lldbsuite/test/functionalities/gdb_remote_client TestNestedRegDefinitions.py, lldb/trunk/source/Plugins/Process/gdb-remote ProcessGDBRemote.cpp ProcessGDBRemote.h

Support nested target.xml register definition files, lack of reg group markers.

The qemu x86_64 target returns a target.xml register definition file which
includes other xml files and they include others, etc.  Also, the registers
are not put in register groups like lldb wants to see.

This patch (1) puts registers that aren't in a register group in a "general"
register group, (2) change ProcessGDBRemote::GetGDBServerRegisterInfo to
be a method that starts the parsing, asking a recurisve function to fetch
and parse target.xml, (3) adds 
ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess which can recusively
call itself to read and parse included xml files, (4) in addition to expecting
the top-level <target> element (which only happens in the top level xml file),
also an xml file that consists of a <feature> node - read the register 
defintions and includes from that <feature> element.  

Differential revision: https://reviews.llvm.org/D63802

LLVM/llvm 364483cfe/branches release_80, cfe/branches/release_80/lib/CodeGen CGDebugInfo.cpp

Merging r359809:
r359809 | rnk | 2019-05-02 10:45:54 -0700 (Thu, 02 May 2019) | 27 lines

Use primary template parameter names for variable template debug info

Fixes PR41677

  template <typename LHS, typename RHS> constexpr bool is_same_v = false;
  template <typename T> constexpr bool is_same_v<T, T> = true;
  template constexpr bool is_same_v<int, int>;

Before this change, when emitting debug info for the
`is_same_v<int, int>` global variable, clang would crash because it
would try to use the template parameter list from the partial
specialization to give parameter names to template arguments. This
doesn't work in general, since a partial specialization can have fewer
arguments than the primary template. Therefore, always use the primary
template. Hypothetically we could try to use the parameter names from
the partial specialization when possible, but it's not clear this really
helps debugging in practice.

Reviewers: JDevlieghere, aprantl, ormris, dblaikie

    [7 lines not shown]

NetBSD/pkgsrc zaQrLX3net/bind914 distinfo, net/bind914/patches patch-lib_isc_rwlock.c

   Fix so that pause really isn't used on SPARC.

FreeBSD/ports 505185head/astro/swe distinfo Makefile

astro/swe: Update version 2.07.01=>2.08

LLVM/llvm 364482llvm/trunk/lib/Transforms/Scalar SCCP.cpp

[SCCP] Fix non-deterministic uselists of return values (DenseMap -> MapVector)

FreeBSD/src 349442head/sys/arm64/arm64 pmap.c

Revert one of the changes from r349323.  Specifically, undo the change
that replaced a pmap_invalidate_page() with a dsb(ishst) in
pmap_enter_quick_locked().  Even though this change is in principle
correct, I am seeing occasional, spurious bus errors that are only
reproducible without this pmap_invalidate_page().  (None of adding an
isb, "upgrading" the dsb to wait on loads as well as stores, or
disabling superpage mappings eliminates the bus errors.)  Add an XXX
comment explaining why the pmap_invalidate_page() is being performed.

Discussed with:      andrew, markj

LLVM/llvm 364481lldb/trunk/examples/python x86_64_linux_target_definition.py x86_64_qemu_target_definition.py

Use the // integer divide operator in these 
target definition files, like Davide's change to x86_64_target_definition.py.

LLVM/llvm 364480cfe/trunk/lib/CodeGen CGDebugInfo.cpp

Fix formatting after r364479

The reflowing obscurs the functional changes, so here is a separate

LLVM/llvm 364479cfe/trunk/lib/CodeGen BackendUtil.cpp, cfe/trunk/lib/Driver/ToolChains Clang.cpp

[Clang] Remove unused -split-dwarf and obsolete -enable-split-dwarf

The changes in D59673 made the choice redundant, since we can achieve
single-file split DWARF just by not setting an output file name.
Like llc we can also derive whether to enable Split DWARF from whether
-split-dwarf-file is set, so we don't need the flag at all anymore.

The test CodeGen/split-debug-filename.c distinguished between having set
or not set -enable-split-dwarf with -split-dwarf-file, but we can
probably just always emit the metadata into the IR.

The flag -split-dwarf wasn't used at all anymore.

Reviewers: dblaikie, echristo

Reviewed By: dblaikie

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

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

[SLP] Look-ahead operand reordering heuristic.

Summary: This patch introduces a new heuristic for guiding operand reordering. The new 
"look-ahead" heuristic can look beyond the immediate predecessors. This helps break ties 
when the immediate predecessors have identical opcodes (see lit test for an example).

Reviewers: RKSimon, ABataev, dtemirbulatov, Ayal, hfinkel, rnk

Reviewed By: RKSimon, dtemirbulatov

Subscribers: rnk, rcorcs, llvm-commits

Tags: #llvm

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

DragonFlyBSD/dports 2c60b9eeditors/calligra Makefile

Bump editors/calligra to version 3.1.0_18

OpenBSD/ports 2Bue7Rwlang/lucee Makefile

+3-21 files

FreeBSD/src 349441head/sys/amd64/vmm vmm_instruction_emul.c

Emulate the "TEST r/m{16,32,64}, imm{16,32,32}" instructions (opcode F7H).

This adds emulation for:
        test r/m16, imm16
        test r/m32, imm32
        test r/m64, imm32 sign-extended to 64

OpenBSD guests compiled with clang 8.0.0 use TEST directly against a
Local APIC register instead of separate read via MOV followed by a
TEST against the register.

PR:            238794
Submitted by:   jhb
Reported by:    Jason Tubnor jason at tubnor.net
Tested by:      Jason Tubnor jason at tubnor.net
Reviewed by:    markj, Patrick Mooney patrick.mooney at joyent.com
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D20755

LLVM/llvm 364477llvm/trunk/test/Transforms/InstCombine broadcast.ll

[InstCombine] change 'tmp' variable names; NFC

I don't think there was anything going wrong here,
but the auto-generating CHECK line script is known
to have problems with 'TMP' because it uses that
to match nameless values.

This is a retry of rL364452.

LLVM/llvm 364476cfe/trunk/lib/AST ASTContext.cpp, cfe/trunk/test/CodeGenCXX ms-constexpr-var-template.cpp

Revert r363191 "[MS] Pretend constexpr variable template specializations are inline"

The next Visual Studio update will fix this issue, and it doesn't make
sense to implement this non-conforming behavior going forward.

FreeNAS/freenas 43220cbgui/network nav.py hook.py, src/freenas/etc netcli

Update legacy UI to use "TrueNAS Controller 1/2" instead of "Node A/B"

LLVM/llvm 364475zorg/trunk/buildbot/osuosl/master/config builders.py

[zorg] Fixes for solaris11-amd64, solaris11-sparcv9  builders

The first few days of running the Solaris 11 buildbots revealed a couple of

- The builders didn't honor the slaves' configured jobs property, but were
  running with the full parallelism discovered by ninja.  That massivly
  impacts other builders running on these systems, so im explicitly
  configuring jobs in the builder configs, too.

- Along the same line, the number of paralllel links is the worst problem
  here.  I had experimented with the LLVM_PARALLEL_LINK_JOBS option in
  the past, but only now (in cmake/modules/HandleLLVMOptions.cmake)
  discovered that it's Ninja-only. I'm reducing it to 4 here as an

- Unlike Solaris/x86, the Solaris/SPARC configure triplet defaults to
  sparc-sun-solaris2.11, which results in clang creating 32-bit
  binaries by default.  It turns out to be an inconsistency in
  config.guess which I'm trying to get resolved.  In the meantime, I'm
  forcing the proper triplet on both sparc and x86.

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

OpenBSD/src 7fufR2Zlib/libc/stdio printf.3

   The POSIX-compatible way of checking for {v,}{f,s,sn,d}printf(3)
   failure is with < 0, not the more specific -1 from C
   discussed at length with millert, nicm, schwarze
+5-41 files

DragonFlyBSD/src 5ef6d7bsys/dev/drm/radeon radeon_i2c.c radeon_connectors.c

drm/radeon: Switch to Linux i2c APIs

* Enable radeon.hw_i2c by default

* Sync some code with Linux 3.19.8 in passing

LLVM/llvm 364474cfe/trunk/include/clang/Tooling/DependencyScanning DependencyScanningWorker.h, cfe/trunk/lib/Tooling Tooling.cpp

[clang-scan-deps] Introduce the DependencyScanning library with the
thread worker code and better error handling

This commit extracts out the code that will powers the fast scanning
worker into a new file in a new DependencyScanning library. The error
and output handling is improved so that the clients can gather
errors/results from the worker directly.

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

NetBSD/pkgsrc-wip 85488d7redeclipse PLIST Makefile, redeclipse/patches patch-src_system-install.mk

redeclipe: Make this a bit more suitable to import by using the
official tarball instead of git for the distfiles.

Also, appease pkglint.

FreeNAS/freenas a307326gui/freeadmin/static/lib/js freeadmin.js, nas_ports/freenas/py-middlewared Makefile

Microsoft OneDrive improvements

OpenBSD/src sSlnFXmsys/dev/pci if_iwm.c

   Use timeout_add_msec(9)

   To initiate LED blinking, simply kick of the timer after the blinking
   rate's period rather than one tick to get red of the last hardclock(9)
   based timeout in this driver.  The now increased delay is compensated by
   also turning on the LED immediately.

   OK stsp
+6-31 files

LLVM/llvm 364473llvm/trunk/lib/Target/AMDGPU SIRegisterInfo.cpp

AMDGPU: Assert SPAdj is 0

LLVM/llvm 364472llvm/trunk/lib/CodeGen PrologEpilogInserter.cpp

PEI: Add default handling of spills to registers

FreeNAS/freenas a77c817gui/sharing/migrations 0018_add_vuid_to_afp_tm.py

Fix reverting afp vuid migration

LLVM/llvm 364471llvm/trunk/utils/UpdateTestChecks asm.py

[UpdateTestChecks][NFC] Remove entries with same prefix

Matching is 'lossy', triples with same prefix can be dropped.

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

LLVM/llvm 364470llvm/trunk/lib/Target/AMDGPU SIFrameLowering.cpp, llvm/trunk/test/CodeGen/AMDGPU callee-special-input-sgprs.ll

[AMDGPU] Fix Livereg computation during epilogue insertion

The LivePhysRegs calculated in order to find a scratch register in the
epilogue code wrongly uses 'LiveIns'. Instead, it should use the
'Liveout' sets.  For the liveness, also considering the operands of
the terminator (return) instruction which is the insertion point for
the scratch-exec-copy instruction.

Patch by Christudasan Devadasan

NetBSD/src QmzdoKdsys/kern kern_exec.c

   Remove useless debugging messages which achieved nothing but hiding bugs.
+4-91 files

FreeBSD/src 349440projects/fuse2/tests/sys/fs/fusefs read.cc write.cc

fusefs: annotate deliberate file descriptor leaks in the tests

closing a file descriptor causes FUSE activity that is superfluous to the
purpose of most tests, but would nonetheless require matching expectations.
Rather than do that, most tests deliberately leak file descriptors instead.
This commit moves the leakage from each test into two trivial functions:
leak and leakdir.  Hopefully Coverity will only complain about those
functions and not all of their callers.

Sponsored by:   The FreeBSD Foundation

FreeBSD/src 349439head/sbin/dhclient options.c

Free DHCP options with length zero.

Otherwise they are leaked, allowing an attacker to trigger memory

This is options.c rev. 1.70 from OpenBSD.

admbugs:        552
Obtained from:  OpenBSD
MFC after:      3 days

LLVM/llvm 364469llvm/trunk/lib/Target/X86 X86ISelLowering.cpp, llvm/trunk/test/CodeGen/X86 buildvec-insertvec.ll promote-vec3.ll

[X86] Rework the logic in LowerBuildVectorv16i8 to make better use of any_extend and break 
false dependencies. Other improvements

This patch rewrites the loop iteration to only visit every other element starting with 
element 0. And we work on the "even" element and "next" element at the same time. The 
"First" logic has been moved to the bottom of the loop and doesn't run on every element. I 
believe it could create dangling nodes previously since we didn't check if we were going 
to use SCALAR_TO_VECTOR for the first insertion. I got rid of the "First" variable and 
just do a null check on V which should be equivalent. We also no longer use undef as the 
starting V for vectors with no zeroes to avoid false dependencies. This matches v8i16.

I've changed all the extends and OR operations to use MVT::i32 since that's what they'll 
be promoted to anyway. I've tried to use zero_extend only when necessary and use 
any_extend otherwise. This resulted in some improvements in tests where we are now able to 
promote aligned (i32 (extload i8)) to a 32-bit load.

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

FreeBSD/ports 505184head/devel Makefile, head/www Makefile

Regular categories Makefile sorting.

LLVM/llvm 364468cfe/trunk/lib/Driver/ToolChains WebAssembly.cpp, cfe/trunk/test/Driver wasm-toolchain.c

[WebAssembly] Implement Address Sanitizer for Emscripten

This diff enables address sanitizer on Emscripten.

On Emscripten, real memory starts at the value passed to --global-base.

All memory before this is used as shadow memory, and thus the shadow mapping
function is simply dividing by 8.

Reviewers: tlively, aheejin, sbc100

Reviewed By: sbc100

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, cfe-commits, 

Tags: #clang, #llvm

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

LLVM/llvm 364467lld/trunk/test/wasm global-base.test, lld/trunk/wasm Symbols.h Writer.cpp

[wasm-ld] Add __global_base symbol to mark the value of --global-base

This is needed for address sanitizer on Emscripten. As everything in
memory starts at the value passed to --global-base, everything before
that can be used as shadow memory.

This symbol is added so that the library for the ASan runtime can know
where the shadow memory ends and real memory begins.

This is split from D63742.

Reviewers: tlively, aheejin, sbc100

Subscribers: sunfish, llvm-commits

Tags: #llvm

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

FreeBSD/src 349438head/sbin/dhclient packet.c

Avoid a divide-by-zero when bad checksum counters overflow.

A mixture of IP or UDP packets with valid and invalid checksum could
cause {ip,udp}_packets_bad_checksum to wrap around to 0, resulting
in a division by zero.

This is packet.c rev. 1.27 from OpenBSD.

admbugs:        552
Obtained from:  OpenBSD
MFC after:      3 days

SmartOS/live f67ae59src sysinfo

OS-7633 sysinfo should report the encryption status of a system
Reviewed by: Josh Wilsdon <jwilsdon at joyent.com>
Reviewed by: Mike Gerdts <mike.gerdts at joyent.com>
Approved by: Dan McDonald <danmcd at joyent.com>
+10-01 files

FreeBSD/src 349437projects/fuse2/share/man/man5 fusefs.5

fusefs.5: remove deleted sysctls from man page

Sponsored by:   The FreeBSD Foundation

LLVM/llvm 364466debuginfo-tests/trunk nrvo-string.cpp

Make nrvo-string test more robust.

The breakpoint locations were in places where clang doesn't actually
emit a source location for and depend on the debugger's ability to
move the breakpoint forward onto a line that is already in the
function epilogue. In my testing older versions of LLDB fail to do
that, so I'm modifying the test to force a break-able location by
calling a noinline function.