HardenedBSD/hardenedbsd a906febsys/vm vm_unix.c

HBSD: Resolve merge conflict

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+0-5sys/vm/vm_unix.c
+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

Conflicts:
        sys/vm/vm_unix.c (unresolved)

LLVM/llvm 361346llvm/trunk/lib/Target/PowerPC PPCInstrVSX.td PPCISelDAGToDAG.cpp, llvm/trunk/test/CodeGen/PowerPC build-vector-tests.ll unaligned-addressing-mode.ll

[PowerPC] [ISEL] select x-form instruction for unaligned offset
Differential Revision: https://reviews.llvm.org/D62173

FreeBSD/ports 502244head/biology/hhsuite Makefile, head/biology/hhsuite/files patch-src_CMakeLists.txt

biology/hhsuite: Fix build on platforms where SIMD instruction set doesn't exist or isn't 
detected.

It forces it to default to SSE2 on amd64/i386 and relaxes the SIMD requirement on all 
other platforms.

Reported by:    fallout

FreeBSD/src 348079head/sys/powerpc/booke pmap.c

powerpc/booke: Use wrtee instead of msr to restore EE bit

The MSR[EE] bit does not require synchronization when changing.  This is a
trivial micro-optimization, removing the trailing isync from mtmsr().

MFC after:      1 week

FreeBSD/ports 502243head/sysutils/lsof Makefile, head/sysutils/lsof/files patch-dialects-freebsd-dlsof.h

sysutils/lsof: fix build on -CURRENT.

sys/_lock.h is no longer implicitly included in such a way that the #ifdef
_KERNEL #error in lockmgr.h is bypassed after r347984. Fix lsof to explicitly
include _lock.h with _KERNEL defined on 13.

Submitted by:   cem
Reported by:    pkg-fallout
Differential Revision:  https://reviews.freebsd.org/D20341

FreeBSD/ports 502242head/net/py-h11 distinfo Makefile

net/py-h11: Update version 0.8.1=>0.9.0

FreeBSD/ports 502241head/devel/py-opengrok-tools distinfo Makefile

devel/py-opengrok-tools: update to 1.2.8

FreeBSD/doc 53047head/en_US.ISO8859-1/articles/contributors contrib.additional.xml

Adding a Brazilian Contributor that helped in the Handbook Translation that i missed to 
add in my previous commit.

FreeBSD/ports 502240head/devel/ncurses distinfo Makefile

devel/ncurses: update to new snapshot

FreeBSD/ports 502239head/databases/memcached distinfo Makefile

databases/memcached: update to 1.5.15

LLVM/llvm 361345lld/trunk/docs ld.lld.1

[docs] Fix troff macro (.F1 -> .Fl) in ld.lld.1

FreeBSD/src 348078head/usr.sbin/pmc cmd_pmc_filter.cc

pmc: Fix stack std::string lifetime

It's invalid to reference a C++ string's c_str() buffer after the object
goes out of scope.  Adjust the scope of the string to match the use in
write(2) to fix the misuse.

CID:           1393383
Reported by:    Coverity

FreeBSD/src 348077head/lib/libc/sys Makefile.inc

Link fhlinkat(2) man page

Reviewed by:    kib
MFC after:      3 days
MFC-With:       r341689
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D20339

FreeBSD/ports 502238head/x11 Makefile py-pyscreenshot, head/x11/py-pyscreenshot Makefile pkg-descr

x11/py-pyscreenshot: create port

Pyscreenshot tries to allow to take screenshots without installing 3rd party
libraries.

WWW: https://github.com/ponty/pyscreenshot

LLVM/llvm 361344clang-tools-extra/trunk/clang-tidy/tool run-clang-tidy.py

[clang-tidy] remove default header-filter for run-clang-tidy

Summary:
run-clang-tidy.py was enforcing '-header-filter' parameter with an
unfortunate default value when none was given. Thus, leading to
overwritten clang-tidy configuration (e.g. from .clang-tidy).

This change removes the default value for '-header-filter' resulting in
the default behaviour of clang-tidy itself.

Fixes PR#41426

Reviewed By: hintonda

Patch by Torbjörn Klatt!

Tags: #clang-tools-extra, #clang

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

HardenedBSD/hardenedbsd 907add1lib/libmd sha.3 mdX.3, libexec/bootpd/bootpgw bootpgw.c

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

* origin/hardened/current/master:
  Do not call hw_mds_recalculate() from initializecpu().
  This revision began as a simple change to eliminate an uninitialized warning found by 
Coverity. However, upon closer inspection the implementation of fsck_ffs's fsck_readdir() 
and dircheck() functions is both nearly impossible to follow and fails to check / fix 
directories in several cases. So, this revision is an entire rewrite of these two 
functions to clarify what they are doing and also to get something that works properly.
  Add admonitions against using MD5 and SHA1 to the API man pages
  Add missing errors section to md[2-5], ripemd160, sha*, and skein* manpages
  Fix typo in r348068
  sys/lockmgr.h: Update #error to point at correct _lock.h
  bootpd: avoid the same error indication for different issues
  ZFS: Make deadman tunables no longer read-only
  mqueuefs: Do not allow manipulation of the pseudo-dirents "." and ".."
  bootpd: Add an option to skip modifications to the ARP table.
  Correct the way remaining battery life is calculated
  Include ktr.h in more compilation units
  Add very basic afinet socket tests which I started to write in order to then try to 
reproduce a kernel panic, which turned out to be a race condition and hard to test from 
here.
  Massively blow up the locking-related KASSERTs used to make sure that we end up in a 
consistent locking state at the end of udp_output() in order to be able to see what the 

    [7 lines not shown]

NetBSD/pkgsrc-wip 52b96aaavra PLIST Makefile, avra/patches patch-Makefile

avra: Import avra-1.4.1 as devel/avra

AVRA is an assembler for Atmel AVR microcontrollers, and it is almost
compatible with Atmel's own assembler AVRASM32. The programming principles
andc onceptions are based on the ANSI programming language "C".

LLVM/llvm 361343cfe/trunk/docs doxygen.cfg.in, llvm/trunk/docs doxygen.cfg.in

[Docs] Increase Doxygen cache size

Summary:
When building Doxygen docs for llvm and clang, it helpfully prints a warning at
the end noting that the `LOOKUP_CACHE_SIZE` value was too small to keep all
symbols in memory.

By increasing to the size it recommends, Doxygen builds have greatly improved
performance. On my machine, time to run `doxygen-llvm` changes from 34 minutes
to 22 minutes, which is a decent amount of time saved by changing a single
number.

Reviewed By: hintonda

Patch by J. Ryan Stinnett!

Tags: #clang, #llvm

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

LLVM/llvm 361342llvm/trunk/lib/Target/X86 X86IndirectBranchTracking.cpp, llvm/trunk/test/CodeGen/X86 indirect-branch-tracking-r2.ll

[X86] [CET] Deal with return-twice function such as vfork, setjmp when
CET-IBT enabled

Return-twice functions will indirectly jump after the caller's position.
So when CET-IBT is enable, we should make sure these is endbr*
instructions follow these Return-twice function caller. Like GCC does.

Patch by Xiang Zhang (xiangzhangllvm)

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

LLVM/llvm 361341llvm/trunk/docs CodeGenerator.rst

[Docs] fix formatting for bullet list; NFC

LLVM/llvm 361340cfe/trunk/test/Analysis/plugins/CheckerDependencyHandling CMakeLists.txt, cfe/trunk/test/Analysis/plugins/CheckerOptionHandling CMakeLists.txt

[Analysis] Link library dependencies to Analysis plugins

These are needed to avoid undefined symbols which aren't satisfied
by Clang itself.

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

NetBSD/pkgsrc-wip 21bcc6drecidivm distinfo Makefile, recidivm/patches patch-Makefile

recidivm: Update devel/recidivm to 0.2

Changes:
  * Capture stdin by default when stdio is not a tty.
    (This should make the -c option redundant for most practical purposes.)
  * Error out when target program fails regardless of memory limit.
  * Print the help message (-h) on stdout, not stderr.
  * Print signal names (e.g. “SIGABRT”) instead of numbers with descriptions
    (e.g. “signal 6 (Aborted)”).
  * Close unneeded file descriptors.
  * Unlink the temporary file as early as possible.
  * Improve the build system:
    + Set default PREFIX and DESTDIR.
    + Add “test-installed” target.
    + Add checks against BSD make.
      (Only GNU make is supported.)
* Improve documentation.

HardenedBSD/hardenedbsd 3257606lib/libmd sha.3 mdX.3, libexec/bootpd/bootpgw bootpgw.c

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

* freebsd/current/master:
  Do not call hw_mds_recalculate() from initializecpu().
  This revision began as a simple change to eliminate an uninitialized warning found by 
Coverity. However, upon closer inspection the implementation of fsck_ffs's fsck_readdir() 
and dircheck() functions is both nearly impossible to follow and fails to check / fix 
directories in several cases. So, this revision is an entire rewrite of these two 
functions to clarify what they are doing and also to get something that works properly.
  Add admonitions against using MD5 and SHA1 to the API man pages
  Add missing errors section to md[2-5], ripemd160, sha*, and skein* manpages
  Fix typo in r348068
  sys/lockmgr.h: Update #error to point at correct _lock.h
  bootpd: avoid the same error indication for different issues
  ZFS: Make deadman tunables no longer read-only
  mqueuefs: Do not allow manipulation of the pseudo-dirents "." and ".."
  bootpd: Add an option to skip modifications to the ARP table.
  Correct the way remaining battery life is calculated
  Include ktr.h in more compilation units
  Add very basic afinet socket tests which I started to write in order to then try to 
reproduce a kernel panic, which turned out to be a race condition and hard to test from 
here.
  Massively blow up the locking-related KASSERTs used to make sure that we end up in a 
consistent locking state at the end of udp_output() in order to be able to see what the 
values are based on which we once took a decision (note: some values may have changed).

    [6 lines not shown]

LLVM/llvm 361339compiler-rt/trunk/test/fuzzer merge-sigusr.test

[libFuzzer] Sleep after process exits in merge-sigusr.test.

Ensure that log file has been fully updated before trying to read it.

NetBSD/pkgsrc-wip ee0dc4fpipes-c distinfo Makefile, pipes-c/patches patch-tap_tap.c

pipes-c: Update games/pipes-c to 1.2.1

Upstream Changes:
 * Fixes some minor typos.
 * Incorporates some portability fixes from kind contributors on GitHub.
 * Bumps version of TAP used for tests.
 * Slightly less insane compiler warnings

Pkgsrc Changes:
 * Remove upstreamed patch.

LLVM/llvm 361338llvm/trunk/docs CodeGenerator.rst, llvm/trunk/lib/Transforms/InstCombine InstCombineVectorOps.cpp

[InstCombine] fold shuffles of insert_subvectors

This should be a valid exception to the general rule of not creating new shuffle masks in 
IR...
because we already do it. :)
Also, DAG combining/legalization will undo this by widening the shuffle back out if 
needed.

Explanation for how we already do this: SLP or vector source can create chains of 
insert/extract
as shown in 1 of the examples from PR16739:
https://godbolt.org/z/NlK7rA
https://bugs.llvm.org/show_bug.cgi?id=16739

And we expect instcombine or DAGCombine to clean that up by creating relatively simple 
shuffles.

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

NetBSD/pkgsrc-wip 0b57732. Makefile, cJSON Makefile PLIST

cJSON: Import cJSON-1.7.12 as devel/cJSON

cJSON aims to be the dumbest possible parser that you can get your job done
with. It's a single file of C, and a single header file.

FreeBSD/src 348076head/sys/sys lockmgr.h

Revert r348070

Konstantin points out that lockmgr probably requires the whole lock.h anyway.

Requested by:   kib

DragonFlyBSD/dports 7163654print/qpdfview Makefile

Bump print/qpdfview to version 0.4.18.b1_1

LLVM/llvm 361337lldb/trunk/source/Symbol DWARFCallFrameInfo.cpp

[Symbol] Remove dead code

OpenBSD/src CeeEAFSshare/man/man4 drm.4

   sync config lines and mention arch differences
VersionDeltaFile
1.10+23-3share/man/man4/drm.4
+23-31 files

LLVM/llvm 361336compiler-rt/trunk/test/fuzzer merge-sigusr.test

[libFuzzer] Kill by session ID in merge-sigusr.test.

Ensures that parent and all child processes are killed at once.

LLVM/llvm 361335cfe/trunk/docs ClangPlugins.rst, cfe/trunk/include/clang/Lex Pragma.h Preprocessor.h

[PragmaHandler] Expose `#pragma` location

Currently, a pragma AST node's recorded location starts at the
namespace token (such as `omp` in the case of OpenMP) after the
`#pragma` token, and the `#pragma` location isn't available.  However,
the `#pragma` location can be useful when, for example, rewriting a
directive using Clang's Rewrite facility.

This patch makes `#pragma` locations available in any `PragmaHandler`
but it doesn't yet make use of them.

This patch also uses the new `struct PragmaIntroducer` to simplify
`Preprocessor::HandlePragmaDirective`.  It doesn't do the same for
`PPCallbacks::PragmaDirective` because that changes the API documented
in `clang-tools-extra/docs/pp-trace.rst`, and I'm not sure about
backward compatibility guarantees there.

Reviewed By: ABataev, lebedev.ri, aaron.ballman

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

LLVM/llvm 361334cfe/trunk/tools/clang-shlib CMakeLists.txt

Fix target property to make BUILD_SHARED_LIBS work

Public and Private link libraries get merged in the LINK_LIBRARIES property instead of 
being kept separate.

With any luck this will get `BUILD_SHARED_LIBS` working again on Linux.

FreeBSD/ports 502237head/misc/p5-Array-Diff distinfo Makefile

misc/p5-Array-Diff: Update version 0.08=>0.09

LLVM/llvm 361333llvm/trunk/lib/Target/AMDGPU SIInstrInfo.cpp, llvm/trunk/test/CodeGen/AMDGPU collapse-endcf2.mir

AMDGPU: Assume calls read exec

LLVM/llvm 361332llvm/trunk/test/CodeGen/AMDGPU endpgm-dce.mir

AMDGPU: Add some tests for inlineasm behavior

LLVM/llvm 361331llvm/trunk/lib/Target/AMDGPU SIInstructions.td, llvm/trunk/test/CodeGen/AMDGPU tail-duplication-convergent.ll

AMDGPU: Assume call pseudos are convergent

There should probably be nonconvergent versions, but my guess is it
doesn't matter in practice.

LLVM/llvm 361330llvm/trunk/lib/Target/AMDGPU AMDGPUCallingConv.td, llvm/trunk/test/CodeGen/AMDGPU csr-gfx10.ll

AMDGPU: Fix not marking new gfx10 SGPRs as CSRs

LLVM/llvm 361329cfe/trunk/include/clang/AST Expr.h APValue.h, cfe/trunk/lib/AST ExprConstant.cpp

[c++20] P1330R0: permit simple-assignments that change the active member
of a union within constant expression evaluation.

LLVM/llvm 361328cfe/trunk/include/clang/AST APValue.h, cfe/trunk/include/clang/Basic DiagnosticASTKinds.td

Refactor: split Uninitialized state on APValue into an "Absent" state
representing no such object, and an "Indeterminate" state representing
an uninitialized object. The latter is not yet used, but soon will be.

DragonFlyBSD/dports bfe639cgraphics/diffpdf Makefile

Bump graphics/diffpdf to version 2.1.3_6

LLVM/llvm 361327llvm/trunk/lib/Target/WebAssembly WebAssemblyRuntimeLibcallSignatures.cpp, llvm/trunk/test/CodeGen/WebAssembly llround-conv-i32.ll

[WebAssembly] Add the signature for the new llround builtin function

r360889 added new llround builtin functions. This patch adds their
signatures for the WebAssembly backend.

It also adds wasm32 support to utils/update_llc_test_checks.py, since
that's the script other targets are using for their testcases for this
feature.

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

FreeNAS/freenas 5d48be6src/middlewared/middlewared/plugins smart.py

Run manual smartctl tests

This commit adds support in middlewared so a user can trigger manual smartctl tests for 
disks specified.
Ticket: NAS-100104

FreeNAS/freenas fec497fsrc/middlewared/middlewared/utils asyncio_.py

Generic call later method

This commit adds a generic call later method which enabels us to call tasks with a certain 
 in seconds. It is basically a wrapper around asyncio's function helping devs to just call 
this method instead of writing these bits again.

FreeNAS/freenas c831240src/middlewared/middlewared/plugins smart.py

Document manual smartctl functions

This commit documents manual smartctl api calls.

OpenBSD/ports 2ld7Ra1x11/Xdialog Makefile, x11/Xdialog/patches patch-aclocal_m4

   The updated macros included with gettext 0.20 require autoconf >=2.61

HardenedBSD/hardenedbsd 0444f86sys/amd64/amd64 initcpu.c, sys/i386/i386 initcpu.c

Do not call hw_mds_recalculate() from initializecpu().

If MDS mitigation is enabled by the tunable but MDS microcode is not
early-loaded, software mitigation is selected.  This causes
initializecpu() to try to allocate memory which makes boot process
very unhappy.

Create SYSINIT that runs sufficiently late to succeed.

Reported by:    naddy
PR:     237968
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week

FreeBSD/src 348075head/sys/amd64/amd64 initcpu.c, head/sys/i386/i386 initcpu.c

Do not call hw_mds_recalculate() from initializecpu().

If MDS mitigation is enabled by the tunable but MDS microcode is not
early-loaded, software mitigation is selected.  This causes
initializecpu() to try to allocate memory which makes boot process
very unhappy.

Create SYSINIT that runs sufficiently late to succeed.

Reported by:    naddy
PR:     237968
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week