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 351381head/sys/gdb gdb_main.c

Fix i386 build after r351368

Reported by:    cy
Submitted by:   cy

HardenedBSD/hardenedbsd 06cdabeshare/man/man7 arch.7, share/man/man9 sysctl.9

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

* freebsd/12-stable/master:
  arch.7: add default tool chain table
  MFC 350666: Tidy up the list of auth and encryption algorithms for IPsec stats.
  MFC 348970,348974: Make the warning intervals for deprecated crypto algorithms tunable.

DragonFlyBSD/src 7880dcfusr.bin/dsynth build.c

dsynth - Fix waitpid() bug, revamp phase poll loop

* Fix an issue where the wrong wait*() status is processed as
  the error code.  This could occur especially on slow machines.

* Be sure to clean out any log data on the pty while and after
  processing the wait*() on the primary pid as there might be
  some as-yet unprocessed data.

* Use non-blocking mode on the masterpty to ensure that we
  don't accidently block on it.
+114-311 files

LLVM/llvm 369621lldb/trunk/tools/debugserver/source/MacOSX/DarwinLog DarwinLogCollector.cpp

[debugserver] Switch back to std::once_flag

We cannot use llvm::once_flag in debugserver because doesn't link
against llvm.

LLVM/llvm 369620llvm/trunk/utils/lit/lit TestRunner.py, llvm/trunk/utils/lit/tests shtest-env.py

[lit] Diagnose insufficient args to internal env

Without this patch, failing to provide a subcommand to lit's internal
`env` results in either a python `IndexError` or an attempt to execute
the final `env` argument, such as `FOO=1`, as a command.  This patch
diagnoses those cases with a more helpful message.

Reviewed By: stella.stamenova

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

LLVM/llvm 369619cfe/trunk/include/clang/Sema Sema.h, cfe/trunk/lib/Sema SemaOpenMP.cpp

[OpenMP] Permit map with DSA on combined directive

For `map`, the following restriction changed in OpenMP 5.0:

* OpenMP 4.5 [, Restrictions]: "A list item cannot appear in
  both a map clause and a data-sharing attribute clause on the same

* OpenMP 5.0 [, Restrictions]: "A list item cannot appear in
  both a map clause and a data-sharing attribute clause on the same
  construct unless the construct is a combined construct."

This patch removes this restriction in the case of combined constructs
and OpenMP 5.0, and it updates Sema not to capture a scalar by copy in
the target region when `firstprivate` and `map` appear for that scalar
on a combined target construct.

This patch also adds a fixme to a test that now reveals that a
diagnostic about loop iteration variables is dropped in the case of
OpenMP 5.0.  That bug exists regardless of this patch's changes.

Reviewed By: ABataev, jdoerfert, hfinkel, kkwli0

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

FreeBSD/ports 509577head/net/hostapd distinfo Makefile

Update 2.8 --> 2.9

FreeBSD/ports 509576head/security/wpa_supplicant distinfo Makefile

Update 2.8 --> 2.9

FreeBSD/src 351380head/sys/contrib/ipfilter/netinet fil.c

Specifying array sizes for fully initialized tables at compile time is

MFC after:      1 week

NetBSD/pkgsrc-wip 64647b9apache-commons-beanutils TODO

TODO: apache-commons-beanutils add CVE-2019-10086

FreeBSD/src 351379head/usr.bin/w w.c

Change w(1) to compute FROM (host) field size dynamically

It's nice to be able to display a full IPv6 host address if
needed, but it's also nice to display more than 3 characters of a command
line. Compute the needed size for the FROM column in an earlier pass,
and determine the maximum, then print what fits for the command.

Reviewed by:    marcel@ (markm@ previous revision)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D21211
+80-651 files

LLVM/llvm 369618lldb/trunk/include/lldb/Target Process.h, lldb/trunk/tools/debugserver/source/MacOSX/DarwinLog DarwinLogCollector.cpp

[lldb] Replace std::once_flag with llvm::once_flag.

The former seems like it's not working on some platforms.
All the other uses use `llvm::`, so, let's change for consistency.

Reviewers: jasonmolenda, friss

Subscribers: lldb-commits

Tags: #lldb

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

LLVM/llvm 369617lldb/trunk/source/DataFormatters FormatManager.cpp

[FormatManage] Fix the format info order

The format info entries need to match the order of the enum entries.
This should fix the two failing data-formatter tests.

LLVM/llvm 369616cfe/trunk/include/clang/StaticAnalyzer/Core AnalyzerOptions.def, cfe/trunk/test/Analysis return-value-guaranteed.cpp track-control-dependency-conditions.cpp

[analyzer] Enable control dependency condition tracking by default

This patch concludes my GSoC'19 project by enabling track-conditions by default.

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

FreeBSD/src 351378vendor/wpa 2.9

Tag wpa_supplicant/hostapd 2.9.
+0-01 files

FreeBSD/src 351377vendor/wpa/dist/src/ap wpa_auth_kay.c, vendor/wpa/dist/src/common dpp.c

Import wpa_supplicant/hostapd 2.9

LLVM/llvm 369615cfe/trunk/lib/StaticAnalyzer/Checkers CastValueChecker.cpp, cfe/trunk/test/Analysis cast-value-notes.cpp cast-value-logic.cpp

[analyzer] CastValueChecker: Model isa(), isa_and_nonnull()

Summary: -

Reviewed By: NoQ

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

LLVM/llvm 369614lldb/trunk/source/DataFormatters FormatManager.cpp

[FormatManager] Add static_assert to keep formats in sync.

This adds a static assert that ensures that there's a format info entry
for every format enum value. This should prevent others from making the
same mistake I made and Jason kindly fixed in r369611. (Thanks!)

FreeBSD/src 351376head/sys/dev/nvme nvme.c

Remove stray line that was duplicated.

Noticed by: rpokala@

FreeBSD/src 351375head RELNOTES

Document Intel RST support just added
+8-01 files

FreeBSD/ports 509575head/www/tomcat85 Makefile, head/www/tomcat85/files tomcat85.in

* Support Java 9+ by not setting java.endorsed.dirs for those versions

PR:            239892
Submitted by:   vvd at unislabs.com (maintainer)

LLVM/llvm 369613cfe/trunk/lib/StaticAnalyzer/Core BugReporterVisitors.cpp, cfe/trunk/test/Analysis track-control-dependency-conditions.cpp

[analyzer] Don't track the condition of foreach loops

As discussed on the mailing list, notes originating from the tracking of foreach
loop conditions are always meaningless.

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

FreeBSD/ports 509574head/www/tomcat9 distinfo Makefile, head/www/tomcat9/files tomcat9.in

* Update to 9.0.24
* Support Java 9+ by not setting java.endorsed.dirs for those versions

PR:            239892
Submitted by:   vvd at unislabs.com (maintainer)

FreeBSD/ports 509573head/java/netty Makefile

Pet portlint

LLVM/llvm 369612llvm/trunk/lib/Target/X86 X86OptimizeLEAs.cpp X86.h

[X86] Making X86OptimizeLEAs pass public. NFC

Reviewers: wxiao3, LuoYuanke, andrew.w.kaylor, craig.topper, annita.zhang, liutianle, 
pengfei, xiangzhangllvm, RKSimon, spatel, andreadb

Reviewed By: RKSimon

Subscribers: andreadb, hiraditya, llvm-commits

Tags: #llvm

Patch by Gen Pei (gpei)

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

FreeBSD/ports 509572head/java/netty Makefile distinfo

Update to netty 4.1.39

PR:            219218

LLVM/llvm 369611lldb/trunk/source/DataFormatters FormatManager.cpp

The g_format_infos table needs to be updated in concert with the
enum Format entries; else we can crash in a place like
FormatManager::GetFormatAsCString().  We should add  bounds checks
to prevent this more reliably, but for tonight I'm just adding this
entry to keep an address-sanitizer test run working.

HardenedBSD/hardenedbsd 2775d30share/man/man4 dtrace_lockstat.4, sys/dev/nvme nvme_pci.c nvme_ctrlr.c

Merge branch 'freebsd/current/master' into hardened/current/master

* freebsd/current/master:
  Add hold events for lockmgr probes, missed in r351361.
  Add lockmgr(9) probes to the lockstat DTrace provider.
  nullfs: lock the vnode with LK_SHARED in null_vptocnp
  Fix inverted predicates for sx lock hold events in lockstat(1).
  Document RST support in nvme(4) and ahci(4).
  Create a AHCI attachment for nvme.
  Separate the pci attachment from the rest of nvme
  ping: add -H option for enabling reverse DNS lookup
  Improve NVMe hot unplug handling.
  Remove manual wire_count adjustments from the unmapped mbuf code.
  Fix _pthread_cancel_enter() and _pthread_cancel_leave() jmptable entries.
  Modify pipe_poll() to properly check for pending direct writes.
  makefs: Verify that the BPB media descriptor and FAT ID match
  makefs: share denode.h between kernel msdosfs and makefs

DragonFlyBSD/src 8ec23causr.bin/dsynth dsynth.1 dsynth.c

dsynth - Add manual page, change configuration directory, more

* Change the configuration location from /usr/local/etc/synth.ini
  to /etc/dsynth/dsynth.ini and (as an alternate)

* Add 'dsynth debug <port>' directive.  This will build all
  dependencies and then build the specified port and freeze
  its worker slot with mounts still intact.

* Add the 'dsynth init' directive.  This will initialize the
  /etc/dsynth directory and default configuration files.
  This directive will refuse to do anything if /etc/dsynth
  or /usr/local/etc/dsynth already exists.

* Allow 'Number_of_builders' and/or 'Max_jobs_per_builder' to
  be specified as 0.  If 0, these parameters will be

* Add the dsynth(1) manual page.

* Include a procfs (/proc) mount in the worker chroot.

* Change a 'cpdup' to a 'cp' to improve portability.  Also change
  how the Template is generated a bit.

LLVM/llvm 369610llvm/trunk/lib/CodeGen TargetLoweringObjectFileImpl.cpp, llvm/trunk/test/CodeGen/X86 coff-fp-section-name.ll

[COFF] Fix section name for constants larger than 64 bits on Windows

APIntToHexString returns wrong value ("0000000000000000ffffffffffffffff")
for integer larger than 64 bits, and thus
TargetLoweringObjectFileCOFF::getSectionForConstant returns same section name
for all numbers larger than 64 bits. This patch tries to fix it.

Differential Revision: https://reviews.llvm.org/D66458
Patch by Senran Zhang

LLVM/llvm 369609cfe/trunk/lib/StaticAnalyzer/Checkers CastValueChecker.cpp

[analyzer] CastValueChecker: Try to fix the buildbots

FreeBSD/src 351374head RELNOTES

Add a couple of lines noting that r351372 maps ENOTTY->EINVAL for other cases.
+3-11 files

FreeBSD/src 351373head RELNOTES

Document r351361.
+5-01 files

FreeBSD/src 351372head/sys/kern vfs_vnops.c


Without this patch, when an application performed lseek(SEEK_DATA/SEEK_HOLE)
on a file in a file system that does not have its own VOP_IOCTL(), the
lseek(2) fails with errno ENOTTY. This didn't seem appropriate, since
ENOTTY is not listed as an error return by either the lseek(2) man page
nor the POSIX draft for lseek(2).
This was discussed on freebsd-current@ here:

This trivial patch maps ENOTTY to EINVAL for lseek(SEEK_DATA/SEEK_HOLE).

Reviewed by:    markj
Relnotes:       yes
Differential Revision:  https://reviews.freebsd.org/D21300

OpenBSD/src iMW13GYsys/arch/i386/isa clock.c

   unused variable, after previous commit
+1-21 files

FreeBSD/doc 53316head/share/security/advisories FreeBSD-SA-19:23.midi.asc

Add a workaround for the midi issue.

Reviewed by:    so

FreeBSD/ports 509571head/games/java-games-suite Makefile

- pet portlint
- define arch

LLVM/llvm 369608llvm/trunk/utils/gn/secondary/clang/lib/StaticAnalyzer/Core BUILD.gn

gn build: Merge r369605

FreeBSD/src 351371projects/nfsv42/sys/fs/nfsserver nfs_nfsdserv.c

Allow a NFSv4.2 Data server to handle Seek.

The NFSv4.2 RFC allows a NFSv4.2 Data server to handle Seek, so this change
allows that.

LLVM/llvm 369607cfe/trunk/lib/StaticAnalyzer/Checkers DeleteWithNonVirtualDtorChecker.cpp DynamicTypeChecker.cpp, cfe/trunk/lib/StaticAnalyzer/Checkers/UninitializedObject UninitializedObjectChecker.cpp UninitializedPointee.cpp

[analyzer] CastValueChecker: Rewrite dead header hotfix

FreeBSD/src 351370head/sys/gdb gdb_packet.c gdb_main.c

gdb(4): Style

No functional change.

I was surprised to find that no sys/ header already defines the -1 EOF
convention anywhere, so defined one locally.

FreeBSD/src 351369head/sys/amd64/include gdb_machdep.h

gdb(4):amd64: Bump MI GDB_BUFSZ for more efficient transfers

A bigger buffer reduces the RTTs to transfer long messages and is otherwise
relatively harmless, especially on systems with plenty of memory.

FreeBSD/src 351368head/sys/gdb gdb_main.c

gdb(4): Implement qXfer:threads:read

This streams out an XML document over several GDB packets describing all
threads in the system; their ids, name, and any loosely defined "extra info"
we feel like including.  For now, I have included a string version of the run
state, similar to some of the DDB logic to stringify thread state.

The benefit of supporting this in addition to the qfThreadInfo/qsThreadInfo
packing is that in this mode, the host gdb does not ask for every thread's
"qThreadExtraInfo," saving per-thread round-trips on "info threads."

To use this feature, (k)gdb needs to be built with the --with-expat option.
I would encourage enabling this option by default in our GDB port, if it is
not already.

Finally, there is another optional attribute you can specify per-thread
called a "handle."  Handles are arbitrarily long sequences of bytes,
represented in the XML as hexadecimal.  It is unclear to me how or if GDB
actually uses handles for anything.  So I have left them out.
+304-11 files

FreeBSD/src 351367stable 12, stable/12/share/man/man7 arch.7

arch.7: add default tool chain table

MFC r351035: arch.7: add tool chain table
MFC r351036: arch.7: add deprecation notice for GCC 4.2.1
MFC r351037: arch.7: clarify that the table shows the default tool chain
MFC r351063: arch.7: be explicit about the future for unmigrated GCC 4.2.1 archs

HardenedBSD/hardenedbsd 481d8b4share/man/man7 arch.7

arch.7: add default tool chain table

MFC r351035: arch.7: add tool chain table
MFC r351036: arch.7: add deprecation notice for GCC 4.2.1
MFC r351037: arch.7: clarify that the table shows the default tool chain
MFC r351063: arch.7: be explicit about the future for unmigrated GCC 4.2.1 archs
+45-11 files

NetBSD/src MWzICQTsys/dev/usb if_aue.c

   like most things: turn debug off by default, sysctl to enable
+3-31 files

NetBSD/src BG9A8qcsys/dev/usb if_aue.c usbhist.h

   - add a USBHIST_CALLARGSN() that only prints the message if debug level is N

   - switch from printf() to usbhist for debugging
+150-632 files

LLVM/llvm 369606compiler-rt/trunk/lib/gwp_asan stack_trace_compressor_fuzzer.cpp CMakeLists.txt

[GWP-ASan] Remove c++ standard lib dependency.

Remove c++ standard library dependency for now for @phosek. They have a
complicated build system that breaks with the fuzzer target here.

Also added a todo to remedy later.

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