FreeBSD/src 345511stable 12, stable/12/sys/kern uipc_socket.c

Merge r344741:
  Remove bogus assert that I added in r319722. It is a legitimate case
  to call soabort() on a newborn socket created by sonewconn() in case
  if further setup of PCB failed. Code in sofree() handles such socket
  correctly.

  Submitted by: jtl, rrs

LLVM/llvm 356933openmp/trunk/runtime/src kmp_runtime.cpp

[OpenMP] Fix pause check with version info

Add 5.0 guard to pause code for now.

Patch by Terry Wilmarth

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

FreeBSD/ports 496849head/sysutils/zol distinfo Makefile, head/sysutils/zol-kmod Makefile distinfo

- Update to 20190325

- Fix an issue linking with libgeom
- Fix missing debug file if DEBUG is set on zol-kmo

FreeBSD/ports 496848head/graphics/opensubdiv Makefile

Fix build with DEFAULT_VERSIONS=python=3.x

PR:            234687

LLVM/llvm 356932lld/trunk/test/wasm target-feature-required.yaml target-feature-used.yaml, lld/trunk/wasm Writer.cpp Driver.cpp

Revert "[WebAssembly] Add linker options to control feature checking"

This reverts commit 5991328c96b6146999cfa74ede42901f8c01f2fa.

FreeBSD/ports 496847head/Mk bsd.default-versions.mk

Adjust documented values for LLVM_DEFAULT

- Add 80 (current default) but -devel is also possible
- Drop 50 as it's being phased out (see bug 236412)

PR:            235215
Reported by:    Graham Perrin

FreeBSD/ports 496846head/devel/cquery Makefile

devel/cquery: unbreak with DEFAULT_VERSIONS+=llvm=-devel

Don't try hard to make LIB_DEPENDS pick the specific version when this
is already enforced by BUILD_DEPENDS. The left field in _DEPENDS lines
isn't recorded into binary packages, anyway.

=======================<phase: lib-depends    >============================
===>   cquery-20180718_4 depends on shared library: libclang.so.-devel - not found
===>   Installing existing package /packages/All/llvm-devel-9.0.d20190226.txz
[120i386-default-llvm90-job-03] Installing llvm-devel-9.0.d20190226...
the most recent version of llvm-devel-9.0.d20190226 is already installed
===>   cquery-20180718_4 depends on shared library: libclang.so.-devel - not found
*** Error code 1

FreeBSD/ports 496845head/devel/ccls Makefile

devel/ccls: unbreak with DEFAULT_VERSIONS+=llvm=-devel

Don't try hard to make LIB_DEPENDS pick the specific version when this
is already enforced by BUILD_DEPENDS. The left field in _DEPENDS lines
isn't recorded into binary packages, anyway.

=======================<phase: lib-depends    >============================
===>   ccls-0.20190301_2 depends on shared library: libLLVM--devel.so - not found
===>   Installing existing package /packages/All/llvm-devel-9.0.d20190226.txz
[120i386-default-llvm90-job-07] Installing llvm-devel-9.0.d20190226...
the most recent version of llvm-devel-9.0.d20190226 is already installed
===>   ccls-0.20190301_2 depends on shared library: libLLVM--devel.so - not found
*** Error code 1

DragonFlyBSD/dports cccd45alang/gcc5/dragonfly patch-contrib_texi2pod.pl

Tweak lang/gcc5 version 5.5.0_6

LLVM/llvm 356931cfe/trunk/lib/Driver Driver.cpp, cfe/trunk/test/Driver immediate-options.c

clang -dumpversion returns 4.2.1 for legacy reason, update it

Summary:
It has been introduced in 2011 for gcc compat:
https://github.com/llvm-mirror/clang/commit/95a907fc0f2f717dca38a379c1d2353bfea06d4f
it is probably time to remove it to remove the confusion.

reported: https://bugs.llvm.org/show_bug.cgi?id=38836
https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1810860

Reviewers: ddunbar, rnk

Reviewed By: rnk

Subscribers: jdoerfert, cfe-commits

Tags: #clang

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

FreeBSD/src 345510head/sys/arm64/arm64 identcpu.c

Sort printing of the ID registers on arm64 to be identical to the
documentation. This will simplify checking new fields when they are added.

MFC after:      2 weeks
Sponsored by:   DARPA, AFRL

NetBSD/pkgsrc-wip 4225416arduino-ctags Makefile distinfo

arduino-ctags: started porting to pkgsrc

LLVM/llvm 356930llvm/trunk/test/CodeGen/X86 vector-zext.ll

[x86] add another vector zext test; NFC

Goes with the proposal in D59777

DragonFlyBSD/src 694f035sys/boot/pc32/libi386 biossmap.c biosmem.c, sys/platform/pc64/acpica acpi_machdep.c

kernel: Clean up the usage of <machine/pc/bios.h> and the header itself.

* In the boot code, use defines from this header instead of keeping local
  ones.

* In acpi_machdep.c, remove an unneeded inclusion of the header.

* Remove unused stuff from the header.

Reported-by: zrj

XigmaNAS/svn 6605branches/11.2.0.4/etc/inc/common/properties property_textarea.php property_text.php, trunk/etc/inc/common/properties property_textarea.php property_text.php

protect properties

LLVM/llvm 356929cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive SMTAPI.h SMTConv.h, cfe/trunk/lib/StaticAnalyzer/Core Z3ConstraintManager.cpp

Moved everything SMT-related to LLVM and updated the cmake scripts.

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

DragonFlyBSD/dports f6da284devel/py-monotonic/dragonfly patch-monotonic.py

Tweak devel/py-monotonic version 1.5

FreeBSD/src 345509stable 11 12, stable/11/share/examples/etc make.conf

MFC:    r345387

Catch up with Clang 7.0.

HardenedBSD/hardenedbsd bc7bf39gnu/usr.bin/binutils/objdump Makefile

HBSD: Revert "Fix GNU objdump build under WITH_PIE"

This reverts commit 139b9f01ca1bfc198fce7c4a3e5fe40388e3fc48.
HardenedBSD doesn't use separate libraries to link with PIE.

Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>

HardenedBSD/hardenedbsd fbd848bgnu/usr.bin/binutils/as Makefile, gnu/usr.bin/binutils/ld Makefile

HBSD: Revert "Apply WITH_PIE changes to other binutils components"

This reverts commit 4c4acf7e5f1d176bd3bf157a32241b18b0429a44.
HardenedBSD doesn't use separate libraries for linking with PIE.

Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>

LLVM/llvm 356928cfe/trunk/lib/Format TokenAnnotator.cpp, cfe/trunk/unittests/Format FormatTestObjC.cpp

[clang-format] Refine structured binding detection

Summary:
Revision r356575 had the unfortunate consequence that now clang-format never
detects an ObjC call expression after `&&`.

This patch tries harder to distinguish between C++17 structured bindings and
ObjC call expressions and adds a few regression tests.

Reviewers: klimek

Reviewed By: klimek

Subscribers: cfe-commits

Tags: #clang

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

LLVM/llvm 356927lldb/trunk/source/Utility Args.cpp, lldb/trunk/unittests/Utility ArgsTest.cpp

[Args] Handle backticks to prevent crash.

Currently LLDB crashes when autocompleting a command that ends with a
backtick because the quote character wasn't handled. This fixes that and
adds a unit test for this function.

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

OpenBSD/ports 1S7Rx2Mastro/stellarium Makefile distinfo, astro/stellarium/pkg PLIST

   Update to stellarium-0.19.0.

FreeBSD/ports 496844head/games/colobot Makefile

games/colobot: fix build with GCC-based architectures

PR:     236745
Submitted by:   pkubaj at anongoth.pl

OpenBSD/src 3lF1rDDlib/libssl ssl_sigalgs.c ssl_clnt.c

   Defer sigalgs selection until the certificate is known.

   Previously the signature algorithm was selected when the TLS extension was
   parsed (or the client received a certificate request), however the actual
   certificate to be used is not known at this stage. This leads to various
   problems, including the selection of a signature algorithm that cannot be
   used with the certificate key size (as found by jeremy@ via ruby regress).

   Instead, store the signature algorithms list and only select a signature
   algorithm when we're ready to do signature generation.

   Joint work with beck@.

NetBSD/pkgsrc i0Xtfwmdoc CHANGES-2019

   doc: Updated net/ntp4 to 4.2.8p13
VersionDeltaFile
1.1489+2-1doc/CHANGES-2019
+2-11 files

FreeBSD/ports 496843head/sysutils/mapdir Makefile distinfo

sysutils/mapdir: update to 1.2

PR:     236764
Submitted by:   bsd at olivermahmoudi.com (maintainer)

NetBSD/pkgsrc ONAW5uKnet/ntp4 distinfo Makefile

   ntp4: update to ntp-4.2.8p13

   NTP 4.2.8p13 2019-03-07
   This release fixes a bug that allows an attacker with access to an
   explicitly trusted source to send a crafted malicious mode 6 (ntpq)
   packet that can trigger a NULL pointer dereference, crashing ntpd.
   It also provides 17 other bugfixes and 1 other improvement.

   NTP 4.2.8p12 2018-04-09
   This release fixes a "hole" in the noepeer capability introduced to ntpd
   in ntp-4.2.8p11, and a buffer overflow in the openhost() function used by
   ntpq and ntpdc.  It also provides 26 other bugfixes, and 4 other improvements.

   NTP 4.2.8p11 2018-02-27
   This release fixes 2 low-/medium-, 1 informational/medum-, and 2 low-severity
   vulnerabilities in ntpd, one medium-severity vulernability in ntpq, and
   provides 65 other non-security fixes and improvements.
VersionDeltaFile
1.30+5-5net/ntp4/distinfo
1.100+2-3net/ntp4/Makefile
+7-82 files

FreeBSD/ports 496842head/deskutils/sysctlview Makefile distinfo

deskutils/sysctlview: update to 0.2

From ChangeLog: https://gitlab.com/alfix/sysctlview/blob/master/CHANGELOG

* change C GTK -> C++ GTKmm
* add menu
* add "node dialog" when a row is
* clicked
* add manual page "sysctlview.1"
* add TreeView "Main"
* delete
* TreeView "description"
* delete TreeView "values"
* delete TreeView "info"
* delete sysctlmibinfo.c/h (dynamic linking)
* delete sysctlview.window.xml

PR:     236762
Submitted by:   alfix86 at gmail.com (maintainer)

LLVM/llvm 356926llvm/trunk/lib/CodeGen MachineScheduler.cpp, llvm/trunk/test/CodeGen/AMDGPU sched-assert-onlydbg-value-empty-region.mir

MISched: Don't schedule regions with 0 instructions

I think this is correct, but may not necessarily be the correct fix
for the assertion I'm really trying to solve. If a scheduling region
was found that only has dbg_value instructions, the RegPressure
tracker would end up in an inconsistent state because it would skip
over any debug instructions and point to an instruction outside of the
scheduling region. It may still be possible for this to happen if
there are some real schedulable instructions between dbg_values, but I
haven't managed to break this.

The testcase is extremely sensitive and I'm not sure how to make it
more resistent to future scheduler changes that would avoid stressing
this situation.

FreeBSD/ports 496841head/x11-fonts/psftools distinfo Makefile

x11-fonts/psftools: Update to 1.0.12

LLVM/llvm 356925cfe/trunk/lib/Sema SemaDecl.cpp SemaExpr.cpp

[Sema][NFCI] Don't allocate storage for the various CorrectionCandidateCallback unless we 
are going to do some typo correction

The various CorrectionCandidateCallbacks are currently heap-allocated
unconditionally. This was needed because of delayed typo correction.
However these allocations represent currently 15.4% of all allocations
(number of allocations) when parsing all of Boost (!), mostly because
of ParseCastExpression, ParseStatementOrDeclarationAfterAttrtibutes
and isCXXDeclarationSpecifier. Note that all of these callback objects
are small. Let's not do this.

Instead initially allocate the callback on the stack, and only do a
heap allocation if we are going to do some typo correction. Do this by:

1. Adding a clone function to each callback, which will do a polymorphic
   clone of the callback. This clone function is required to be implemented
   by every callback (of which there is a fair amount). Make sure this is
   the case by making it pure virtual.

2. Use this clone function when we are going to try to correct a typo.

This additionally cut the time of -fsyntax-only on all of Boost by 0.5%
(not that much, but still something). No functional changes intended.

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

    [2 lines not shown]

FreeBSD/src 345508stable 10, stable/10/sys/dev/pms/RefTisa/tisa/sassata/sas/ini itdio.c

MFC r345009:

Fix a scribbler in the PMS driver.

The ESGL bit was left uninitialized when executing the REPORT LUNS
ioctl. This could allow a zeroed data buffer to be treated as a
scatter/gather list. The firmware would eventually walk past the end
of the data buffer, potentially find what looked like a valid
address/length pair, and write the result to semi-random memory.

Obtained from:  Dell EMC Isilon
Sponsored by:   Dell EMC Isilon

HardenedBSD/hardenedbsd 54e5804sys/dev/pms/RefTisa/tisa/sassata/sas/ini itdio.c

MFC r345009:

Fix a scribbler in the PMS driver.

The ESGL bit was left uninitialized when executing the REPORT LUNS
ioctl. This could allow a zeroed data buffer to be treated as a
scatter/gather list. The firmware would eventually walk past the end
of the data buffer, potentially find what looked like a valid
address/length pair, and write the result to semi-random memory.

Obtained from:  Dell EMC Isilon
Sponsored by:   Dell EMC Isilon

FreeBSD/src 345507stable 11, stable/11/sys/dev/pms/RefTisa/tisa/sassata/sas/ini itdio.c

MFC r345009:

Fix a scribbler in the PMS driver.

The ESGL bit was left uninitialized when executing the REPORT LUNS
ioctl. This could allow a zeroed data buffer to be treated as a
scatter/gather list. The firmware would eventually walk past the end
of the data buffer, potentially find what looked like a valid
address/length pair, and write the result to semi-random memory.

Obtained from:  Dell EMC Isilon
Sponsored by:   Dell EMC Isilon

FreeBSD/src 345506stable 12, stable/12/sys/dev/pms/RefTisa/tisa/sassata/sas/ini itdio.c

MFC r345009:

Fix a scribbler in the PMS driver.

The ESGL bit was left uninitialized when executing the REPORT LUNS
ioctl. This could allow a zeroed data buffer to be treated as a
scatter/gather list. The firmware would eventually walk past the end
of the data buffer, potentially find what looked like a valid
address/length pair, and write the result to semi-random memory.

Obtained from:  Dell EMC Isilon
Sponsored by:   Dell EMC Isilon

HardenedBSD/hardenedbsd af3cdb5cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall tst.args.c, contrib/netbsd-tests/lib/libpthread t_cond.c

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

* freebsd/12-stable/master:
  MFC 345379:  Bump the IMAGE_SIZE for arm64 SoC images to prevent failures due  to full 
filesystem.  This makes the size of the arm64 SoC images  consistent with armv6 and armv7.
  MFC r344823: Show wiring state of map entries in procstat -v.
  MFC r344935: Have pthread_cond_destroy() return EBUSY if the condvar has waiters.
  MFC r345355: Ensure that we use a 64-bit value for the last mmap() argument.

LLVM/llvm 356924llvm/trunk/utils/release merge-request.sh

merge-request.sh: Update 8.0 metabug for 8.0.1

FreeBSD/ports 496840head/net-im/mtxclient/files patch-tests_utils.cpp

Fix build of net-im/mtxclient by patching out one more "json.hpp".

Pointy hat: adridg@

Reported by:    antoine

DragonFlyBSD/dports 71ba8fdlang/go Makefile.DragonFly

Tweak lang/go version 1.12,1

LLVM/llvm 356923clang-tools-extra/trunk/docs ReleaseNotes.rst

Attempt to fix sphinx bot after r356897

LLVM/llvm 356922llvm/trunk/lib/Target/AMDGPU SIWholeQuadMode.cpp

AMDGPU: Preserve LiveIntervals in WQM

This seems to already be done, but wasn't marked.

OpenBSD/src my9rpmqlib/libssl ssl_rsa.c

   Rework ssl_ctx_use_certificate_chain_bio() to use the CERT_PKEY chain.

   This means that any additional CA certificates end up on the per
   certificate chain, rather than the single/shared extra_certs.

   Also simplify this code and in particular, avoid setting the return value
   to indicate success until we've actually succeeded.

   ok beck@ tb@
VersionDeltaFile
1.31+26-46lib/libssl/ssl_rsa.c
+26-461 files

DragonFlyBSD/dports bd308a6security/cyrus-sasl2 Makefile.common

Tweak security/cyrus-sasl2 version 2.1.27

LLVM/llvm 356921pstl/trunk/test utils.h

[pstl] Make sure unit tests exit with a non-zero error code when they fail

The previous test system would only print errors to stderr, however CMake
(and lit) detect failure via the program returning a non-zero error code.
So all the tests would always pretend they passed.
DeltaFile
+15-16pstl/trunk/test/utils.h
+15-161 files

FreeBSD/src 345505head/sys/netinet sctp_ss_functions.c

Initialize scheduler specific data for the FCFS scheduler.
This is joint work with rrs@. The issue was reported by using
syzkaller.

MFC after:             1 week

LLVM/llvm 356920cfe/trunk CMakeLists.txt

[clang] Remove cmake warning message (NFC)

Recognize an empty string for CLANG_DEFAULT_UNWINDLIB as a valid option.

OpenBSD/src 3aNu04Ulib/libssl ssl_lib.c ssl_locl.h

   Remove ssl_get_server_send_cert() which is now unused.

   ok beck@ tb@
VersionDeltaFile
1.202+1-12lib/libssl/ssl_lib.c
1.241+1-2lib/libssl/ssl_locl.h
+2-142 files

LLVM/llvm 356919llvm/trunk/test/tools/llvm-objcopy/ELF preserve-segment-contents.test preserve-segment-contents-ehdr-phdrs.test, llvm/trunk/tools/llvm-objcopy/ELF Object.cpp Object.h

[llvm-objcopy]Preserve data in segments not covered by sections

llvm-objcopy previously knew nothing about data in segments that wasn't
covered by section headers, meaning that it wrote zeroes instead of what
was there. As it is possible for this data to be useful to the loader,
this patch causes llvm-objcopy to start preserving this data. Data in
sections that are explicitly removed continues to be written as zeroes.

This fixes https://bugs.llvm.org/show_bug.cgi?id=41005.

Reviewed by: jakehehrlich, rupprecht

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

LLVM/llvm 356918libcxx/trunk/include optional, libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor ctor.fail.cpp

Cleaup of requirements for optional. While researching LWG3196, I realized that optional 
did not reject 'const in_place_t' like it should. Added a test as well, and a check for 
arrays (which were already disallowed, but now we get a better error message). Should not 
affect anyone's code.