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)

HardenedBSD/hardenedbsd 6357299sys/amd64/linux32 Makefile, sys/compat/freebsd32 capabilities.conf

Merge remote-tracking branch 'origin/freebsd/12-stable/master' into 

        sys/i386/ibcs2/ibcs2_proto.h (deleted)
        sys/i386/ibcs2/ibcs2_syscall.h (deleted)
        sys/i386/ibcs2/ibcs2_sysent.c (deleted)

FreeBSD/ports 512537head/math/p5-Math-Int128 Makefile

Remove hardcoding from 2013 and replace it with the modern equivalent.
Found while working on powerpc64.

Tested on: amd64, powerpc64.

Approved by:    portmgr (tier-2 blanket)

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

In case a translation fault on the kernel address space occurs from
within a critical section, we must perform a lock-free check on the
faulting address.

Reported by:    andrew
Reviewed by:    andrew, markj
X-MFC with:     r350579
Differential Revision:  https://reviews.freebsd.org/D21685

FreeBSD/ports 512536head/games Makefile tome4-beta, head/games/tome4 Makefile

add new port: games/tome4-beta

This adds a beta of 1.6 patch for games/tome4

It's a major update. Read more in announcements:

XigmaNAS/svn 6877branches/ xigmanas.files, trunk/build xigmanas.files

add mpsutil and mprutil Utility for managing LSI Fusion-MPT 2/3 controllers

NetBSD/src 9KDlQlldist/pf/usr.sbin/ftp-proxy ftp-proxy.8


XigmaNAS/svn 6876branches/ Makefile, trunk/build/ports/e2fsprogs Makefile

add missing lib

NetBSD/pkgsrc-wip 9cbb10apy-cesium Makefile, py-hydrointerp Makefile

py-xarray: Removed

A newer version has been imported into pkgsrc.

LLVM/llvm 372486lldb/trunk/source/Host/common Socket.cpp, lldb/trunk/tools/lldb-vscode lldb-vscode.cpp

[LLDB] Cast -1 (as invalid socket) to the socket type before comparing

This silences warnings about comparison of integers between unsigned
long long (which is what the Windows SOCKET type is) and signed int
when building in MinGW mode.

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

LLVM/llvm 372485lldb/trunk/source/Plugins/Process/Windows/Common ProcessWindows.cpp NativeProcessWindows.cpp

[LLDB] Use SetErrorStringWithFormatv for cases that use LLVM style format strings

SetErrorStringWithFormat only supports normal printf style format

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

LLVM/llvm 372484lldb/trunk/source/Plugins/Process/Windows/Common NativeProcessWindows.cpp

[LLDB] Use LLVM_FALLTHROUGH instead of a custom comment

This fixes a warning when built with Clang in MinGW mode.

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

LLVM/llvm 372483lldb/trunk/source/Plugins/Process/Windows/Common TargetThreadWindows.cpp RegisterContextWindows.cpp

[LLDB] Check for the GCC/MinGW compatible arch defines for windows, in addition to MSVC 

This matches how it is done in all other similar ifdefs throughout

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

LLVM/llvm 372482lldb/trunk/source/Plugins/Process/Windows/Common NativeRegisterContextWindows.h

[LLDB] Fix compilation for MinGW, remove redundant class name on inline member

This fixes build errors like these:

NativeRegisterContextWindows.h:22:33: error: extra qualification on member 

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

LLVM/llvm 372481llvm/trunk/include/llvm/DebugInfo/CodeView CodeViewRegisters.def

[CodeView] Add pragma push/pop_macro for ARM64_FPSR to enum header

This fixes (one aspect of) compilation of LLDB with MSVC for ARM64.

LLDB source files include intrin.h, and the MSVC intrin.h transitively
includes arm64intr.h, which has an ARM64_FPSR define, which clashes
with the enum declaration.

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

FreeBSD/src 352583head/sys/kern subr_lock.c

lockprof: use CPUFOREACH and drop always false lp_cpu NULL checks

Sponsored by:   The FreeBSD Foundation

FreeBSD/ports 512535head/devel/openmp distinfo Makefile, head/devel/openmp/files patch-bug32279 patch-runtime_cmake_LibompHandleFlags.cmake

devel/openmp: update to 9.0.0

- Connect tests to the framework to help QA remaining patches
- Force rebuild all consumers after https://reviews.llvm.org/D59783

ABI:           https://abi-laboratory.pro/tracker/timeline/llvm_openmp/

FreeBSD/ports 512534head/security/clamsmtp Makefile distinfo

security/clamsmtp: Unbreak by switching to new master site

PR:            240731
Submitted by:   Yasuhiro KIMURA <yasu at utahime.org>

FreeBSD/ports 512533head/graphics/rapid-photo-downloader Makefile pkg-descr, head/graphics/rapid-photo-downloader/files patch-raphodo_storage.py patch-raphodo_rapid.py

New port: graphics/rapid-photo-downloader

Rapid Photo Downloader imports photos and videos from cameras, phones,
memory cards and other devices at high speed. It can be configured to
rename photos and videos with meaningful filenames you specify. It can
also back up photos and videos as they are downloaded. It downloads
from and backs up to multiple devices simultaneously.

WWW: http://www.damonlynch.net/rapid/

PR:            240601
Submitted by:   m.ne at gmx.net
Reviewed by:    koobs

FreeBSD/ports 512532head/sysutils Makefile p5-File-Rename, head/sysutils/p5-File-Rename Makefile pkg-descr

New port: sysutils/p5-File-Rename

rename renames the filenames supplied according to the rule specified as the
first argument. The perlexpr argument is a Perl expression which is expected
to modify the $_ string in Perl for at least some of the filenames specified.
If a given filename is not modified by the expression, it will not be renamed.
If no filenames are given on the command line, filenames will be read via
standard input.

WWW: https://metacpan.org/release/File-Rename

PR:            240728
Submitted by:   Vidar Karlsen <vidar at karlsen.tech>

NetBSD/pkgsrc 51BZORcdoc CHANGES-pkgsrc-2019Q2

   Pullup tickets up to #6057
+10-11 files

NetBSD/pkgsrc AUEP3Smmisc/fbreader distinfo, misc/fbreader/patches patch-fbreader_src_formats_doc_OleStorage.cpp patch-fbreader_src_formats_doc_OleStorage.cpp

   Pullup ticket #6057 - requested by maya
   misc/fbreader: build fix

   Revisions pulled up:
   - misc/fbreader/distinfo                                        1.13
   - misc/fbreader/patches/patch-fbreader_src_formats_doc_OleStorage.cpp 1.1

      Module Name:      pkgsrc
      Committed By:     maya
      Date:            Mon Sep  9 13:31:53 UTC 2019

      Modified Files:
        pkgsrc/misc/fbreader: distinfo
      Added Files:

      Log Message:
      fbreader: avoid narrowing conversion warning. Taken from gentoo.

      Fixes PR pkg/54107: pkgsrc-2019Q1/misc/fbreader doesn't build with
      newer compiler(s)

NetBSD/src seCSg1Odoc CHANGES-8.2

   Ammend ticket #1380 for additional changes
+2-11 files

NetBSD/src KT2xgd2sys/arch/xen/include/xen-public platform.h

   Apply patch, requested by manu in ticket #1380: add definitions to query
   the ACI RSDP table.
+47-11 files

FreeBSD/ports 512531head/games/tome4 Makefile

clean up games/tome4 port

- reorder sections
- remove LLD_UNSAFE, not needed after openal update
- prepare for a slave port

NetBSD/pkgsrc F3MnGEOdoc CHANGES-2019

   doc: Added py-xarray
+2-11 files

FreeBSD/ports 512530head/audio/grip Makefile

Fix build on GCC-based systems:

  /usr/local/lib/libgraphite2.so.3: undefined reference to 
`__cxa_throw_bad_array_new_length at CXXABI_1.3.8'

Approved by:    portmgr (tier-2 blanket)

LLVM/llvm 372480llvm/trunk/lib/Transforms/Scalar SROA.cpp, llvm/trunk/test/Transforms/SROA vector-promotion-different-size.ll

SROA: Check Total Bits of vector type

While Promoting alloca instruction of Vector Type, 
Check total size in bits of its slices too.
If they don't match, don't promote the alloca instruction.

Bug : https://bugs.llvm.org/show_bug.cgi?id=42585

NetBSD/pkgsrc 26AAJxmmath Makefile

   math/Makefile: Add py-xarray
+2-11 files

NetBSD/pkgsrc DitfF15math/py-xarray PLIST Makefile

   math/py-xarray: Import version 0.5.1

   xarray (formerly xray) is an open source project and Python package
   that aims to bring the labeled data power of pandas to the physical
   sciences, by providing N-dimensional variants of the core pandas data

   Packaged by K.I.A.Derouiche for pkgsrc-wip, and updated by me.

FreeBSD/ports 512529head/astro/routino Makefile

Fix build on GCC-based installations:

  xmlparse.c:1244: error: #pragma GCC diagnostic not allowed inside functions

Approved by:    portmgr (tier-2 blanket)

FreeBSD/ports 512528head/audio/oss pkg-message Makefile, head/audio/oss/files patch-setup_FreeBSD_sbin_soundon

audio/oss: Improve handling when sound.ko is compiled into the kernel.

Now, soundon checks for its presence and fails with an appropriate error.

While here, add it to pkg-message.

I use this still as I have a Xonar D2X which FreeBSD's drivers don't support,
so I'll take maintainership.

PR:            ports/240200

Linux/linux 104c0d6drivers/mtd/ubi block.c wl.c, fs/jffs2 fs.c gc.c

Merge tag 'upstream-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs

Pull UBI, UBIFS and JFFS2 updates from Richard Weinberger:
   - Be less stupid when placing a fastmap anchor
   - Try harder to get an empty PEB in case of contention
   - Make ubiblock to warn if image is not a multiple of 512

   - Various fixes in error paths

   - Various fixes in error paths"

* tag 'upstream-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs:
  jffs2: Fix memory leak in jffs2_scan_eraseblock() error path
  jffs2: Remove jffs2_gc_fetch_page and jffs2_gc_release_page
  jffs2: Fix possible null-pointer dereferences in jffs2_add_frag_to_fragtree()
  ubi: block: Warn if volume size is not multiple of 512
  ubifs: Fix memory leak bug in alloc_ubifs_info() error path
  ubifs: Fix memory leak in __ubifs_node_verify_hmac error path
  ubifs: Fix memory leak in read_znode() error path
  ubi: ubi_wl_get_peb: Increase the number of attempts while getting PEB
  ubi: Don't do anchor move within fastmap area
  ubifs: Remove redundant assignment to pointer fname

Linux/linux 9dca343arch/um/drivers virtio_uml.c vector_user.c, arch/um/os-Linux signal.c file.c

Merge tag 'for-linus-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml

Pull UML updates from Richard Weinberger:

 - virtio support

 - fixes for our new time travel mode

 - various improvements to make lockdep and kasan work better

 - SPDX header updates

* tag 'for-linus-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml: (25 
  um: irq: Fix LAST_IRQ usage in init_IRQ()
  um: Add SPDX headers for files in arch/um/include
  um: Add SPDX headers for files in arch/um/os-Linux
  um: Add SPDX headers to files in arch/um/kernel/
  um: Add SPDX headers for files in arch/um/drivers
  um: virtio: Implement VHOST_USER_PROTOCOL_F_REPLY_ACK
  um: virtio: Implement VHOST_USER_PROTOCOL_F_SLAVE_REQ
  um: drivers: Add virtio vhost-user driver
  um: Use real DMA barriers
  um: Don't use generic barrier.h
  um: time-travel: Restrict time update in IRQ handler

    [10 lines not shown]

LLVM/llvm 372479llvm/trunk/lib/Transforms/Scalar SROA.cpp

Test mail. NFC.

Testing commit acces. NFC.

FreeBSD/src 352582head/sys/kern imgact_elf.c

Make non-ASLR pie base tunable.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week

Linux/linux 4553d46drivers/mtd cmdlinepart.c, drivers/mtd/devices m25p80.c

Merge tag 'mtd/for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux

Pull MTD updates from Richard Weinberger:
 "MTD core changes:
   - add debugfs nodes for querying the flash name and id
   - mtd parser reorganization

  SPI NOR core changes:
   - always use bounce buffer for register read/writes
   - move m25p80 code in spi-nor.c
   - rework hwcaps selection for the spi-mem case
   - rework the core in order to move the manufacturer specific code out
     of it:
       - regroup flash parameters in 'struct spi_nor_flash_parameter'
       - add default_init() and post_sfdp() hooks to tweak the flash
       - introduce the ->set_4byte(), ->convert_addr() and ->setup()
         methods, to deal with manufacturer specific code
       - rework the SPI NOR lock/unlock logic
   - fix an error code in spi_nor_read_raw()
   - fix a memory leak bug
   - enable the debugfs for the partname and partid
   - add support for few flashes

  SPI NOR controller drivers changes:

    [52 lines not shown]

FreeBSD/src 352581head/sys/amd64/amd64 pmap.c

amd64 pmap: Fix formats for 64bit addresses in ddb and sysctl output.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D21737

FreeBSD/ports 512527head/math/rumur distinfo Makefile

math/rumur: Update 2019.08.18 -> 2019.09.15

Reported by:    portscout

Linux/linux 6cb2e9edrivers/acpi/nfit intel.c, drivers/nvdimm security.c dimm_devs.c

Merge tag 'libnvdimm-for-5.4' of 

Pull libnvdimm updates from Dan Williams:
 "Some reworks to better support nvdimms on powerpc and an nvdimm
  security interface update:

   - Rework the nvdimm core to accommodate architectures with different
     page sizes and ones that can change supported huge page sizes at
     boot time rather than a compile time constant.

   - Introduce a distinct 'frozen' attribute for the nvdimm security
     state since it is independent of the locked state.

   - Miscellaneous fixups"

* tag 'libnvdimm-for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
  libnvdimm: Use PAGE_SIZE instead of SZ_4K for align check
  libnvdimm/label: Remove the dpa align check
  libnvdimm/pfn_dev: Add page size and struct page size to pfn superblock
  libnvdimm/pfn_dev: Add a build check to make sure we notice when struct page size change
  libnvdimm/pmem: Advance namespace seed for specific probe errors
  libnvdimm/region: Rewrite _probe_success() to _advance_seeds()
  libnvdimm/security: Consolidate 'security' operations
  libnvdimm/security: Tighten scope of nvdimm->busy vs security operations

    [4 lines not shown]

FreeBSD/src 352580head/cddl/contrib/opensolaris/lib/libzfs/common libzfs_sendrecv.c

Fix a regression introduced in r344601, and work properly with the
-v and -n options.

PR:            240640
Reported by:    Andriy Gapon <avg at FreeBSD.org>
Reviewed by:    avg
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D21709

Linux/linux 10fd717drivers/scsi/hisi_sas hisi_sas_main.c, drivers/scsi/lpfc lpfc_init.c lpfc_scsi.c

Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull SCSI updates from James Bottomley:
 "This is mostly update of the usual drivers: qla2xxx, ufs, smartpqi,
  lpfc, hisi_sas, qedf, mpt3sas; plus a whole load of minor updates. The
  only core change this time around is the addition of request batching
  for virtio. Since batching requires an additional flag to use, it
  should be invisible to the rest of the drivers"

* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (264 
  scsi: hisi_sas: Fix the conflict between device gone and host reset
  scsi: hisi_sas: Add BIST support for phy loopback
  scsi: hisi_sas: Add hisi_sas_debugfs_alloc() to centralise allocation
  scsi: hisi_sas: Remove some unused function arguments
  scsi: hisi_sas: Remove redundant work declaration
  scsi: hisi_sas: Remove hisi_sas_hw.slot_complete
  scsi: hisi_sas: Assign NCQ tag for all NCQ commands
  scsi: hisi_sas: Update all the registers after suspend and resume
  scsi: hisi_sas: Retry 3 times TMF IO for SAS disks when init device
  scsi: hisi_sas: Remove sleep after issue phy reset if sas_smp_phy_control() fails
  scsi: hisi_sas: Directly return when running I_T_nexus reset if phy disabled
  scsi: hisi_sas: Use true/false as input parameter of sas_phy_reset()
  scsi: hisi_sas: add debugfs auto-trigger for internal abort time out
  scsi: virtio_scsi: unplug LUNs when events missed

    [7 lines not shown]

XigmaNAS/svn 6875trunk/build/ports/options/files net_samba48-options net_samba410-options

update option file

Linux/linux 3e414b5Documentation/admin-guide/device-mapper dm-clone.rst, crypto essiv.c

Merge tag 'for-5.4/dm-changes' of 

Pull device mapper updates from Mike Snitzer:

 - crypto and DM crypt advances that allow the crypto API to reclaim
   implementation details that do not belong in DM crypt. The wrapper
   template for ESSIV generation that was factored out will also be used
   by fscrypt in the future.

 - Add root hash pkcs#7 signature verification to the DM verity target.

 - Add a new "clone" DM target that allows for efficient remote
   replication of a device.

 - Enhance DM bufio's cache to be tailored to each client based on use.
   Clients that make heavy use of the cache get more of it, and those
   that use less have reduced cache usage.

 - Add a new DM_GET_TARGET_VERSION ioctl to allow userspace to query the
   version number of a DM target (even if the associated module isn't
   yet loaded).

 - Fix invalid memory access in DM zoned target.

    [31 lines not shown]

Linux/linux 018c683drivers/infiniband/hw/hns hns_roce_hw_v2.c hns_roce_mr.c, drivers/infiniband/hw/mlx4 qp.c

Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma

Pull RDMA subsystem updates from Jason Gunthorpe:
 "This cycle mainly saw lots of bug fixes and clean up code across the
  core code and several drivers, few new functional changes were made.

   - Many cleanup and bug fixes for hns

   - Various small bug fixes and cleanups in hfi1, mlx5, usnic, qed,
     bnxt_re, efa

   - Share the query_port code between all the iWarp drivers

   - General rework and cleanup of the ODP MR umem code to fit better
     with the mmu notifier get/put scheme

   - Support rdma netlink in non init_net name spaces

   - mlx5 support for XRC devx and DC ODP"

* tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma: (99 commits)
  RDMA: Fix double-free in srq creation error flow
  RDMA/efa: Fix incorrect error print
  IB/mlx5: Free mpi in mp_slave mode
  IB/mlx5: Use the original address for the page during free_pages

    [17 lines not shown]

LLVM/llvm 372478llvm/trunk/include/llvm/ProfileData SampleProf.h SampleProfReader.h, llvm/trunk/lib/ProfileData SampleProfReader.cpp

Recommit [SampleFDO] Expose an interface to return the size of a section
or the size of the profile for profile in ExtBinary format.

Fix a test failure on Mac.

[SampleFDO] Expose an interface to return the size of a section or the
size of the profile for profile in ExtBinary format.

Sometimes we want to limit the size of the profile by stripping some functions
with low sample count or by stripping some function names with small text size
from profile symbol list. That requires the profile reader to have the
interfaces returning the size of a section or the size of total profile. The
patch add those interfaces.

At the same time, add some dump facility to show the size of each section.

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

Linux/linux 84da111drivers/gpu/drm/nouveau nouveau_dmem.c, drivers/gpu/drm/radeon radeon_mn.c

Merge tag 'for-linus-hmm' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma

Pull hmm updates from Jason Gunthorpe:
 "This is more cleanup and consolidation of the hmm APIs and the very
  strongly related mmu_notifier interfaces. Many places across the tree
  using these interfaces are touched in the process. Beyond that a
  cleanup to the page walker API and a few memremap related changes
  round out the series:

   - General improvement of hmm_range_fault() and related APIs, more
     documentation, bug fixes from testing, API simplification &
     consolidation, and unused API removal

   - Simplify the hmm related kconfigs to HMM_MIRROR and DEVICE_PRIVATE,
     and make them internal kconfig selects

   - Hoist a lot of code related to mmu notifier attachment out of
     drivers by using a refcount get/put attachment idiom and remove the
     convoluted mmu_notifier_unregister_no_release() and related APIs.

   - General API improvement for the migrate_vma API and revision of its
     only user in nouveau

   - Annotate mmu_notifiers with lockdep and sleeping region debugging

    [32 lines not shown]

Linux/linux 227c3e9arch/x86/include/asm alternative.h bug.h, include/linux compiler_types.h

Merge tag 'compiler-attributes-for-linus-v5.4' of git://github.com/ojeda/linux

Pull asm inline support from Miguel Ojeda:
 "Make use of gcc 9's "asm inline()" (Rasmus Villemoes):

  gcc 9+ (and gcc 8.3, 7.5) provides a way to override the otherwise
  crude heuristic that gcc uses to estimate the size of the code
  represented by an asm() statement. From the gcc docs

      If you use 'asm inline' instead of just 'asm', then for inlining
      purposes the size of the asm is taken as the minimum size, ignoring
      how many instructions GCC thinks it is.

  For compatibility with older compilers, we obviously want a

      #if [understands asm inline]
      #define asm_inline asm inline
      #define asm_inline asm

  But since we #define the identifier inline to attach some attributes,
  we have to use an alternate spelling of that keyword. gcc provides
  both __inline__ and __inline, and we currently #define both to inline,
  so they all have the same semantics.

    [15 lines not shown]

FreeBSD/ports 512526head/devel/qtcreator pkg-plist Makefile

devel/qtcreator: Fix packaging when using GCC

utils-eventcode-members.html and utils-eventcode.html don't exist when qtcreator is built 
with GCC.

PR:             240298
Approved by:    tcberner (maintainer, mentor)