HardenedBSD/src c7ce6b0contrib/libstdc++ configure, lib/clang/liblldb LLDBWrapLua.cpp

Merge branch 'hardened/current/master' into hardened/current/uninit-autoinit
DeltaFile
+0-111,817contrib/libstdc++/configure
+72,183-0lib/clang/liblldb/LLDBWrapLua.cpp
+71,590-432tools/tools/locale/etc/final-maps/widths.txt
+31,726-39,305share/ctypedef/ja_JP.eucJP.src
+59,521-0sys/contrib/dev/iwm/iwm-9000-34.fw.uu
+59,517-0sys/contrib/dev/iwm/iwm-9260-34.fw.uu
+294,537-151,55460,534 files not shown
+10,288,584-10,879,88160,540 files

HardenedBSD/src f7bfc06cddl/contrib/opensolaris/lib/libzfs/common libzfs_dataset.c, tests/sys/netpfil/pf table.sh

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

* freebsd/12-stable/master:
  ZFS: fix spurious EBUSY after zfs receive to an existing dataset
  MFC r368277:
DeltaFile
+39-0tests/sys/netpfil/pf/table.sh
+14-2cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
+53-22 files

HardenedBSD/src 7a8f0f2cddl/contrib/opensolaris/lib/libzfs/common libzfs_dataset.c

ZFS: fix spurious EBUSY after zfs receive to an existing dataset

If you do a "zfs send -p <src> | zfs receive -F <dst>" to an existing but
empty dataset, the receive will complete successfully but spuriously fail
with exit status 1 and the message "cannot mount 'pool/dataset': mountpoint
or dataset is busy".

The root cause is a merge error made in r344569 and MFCed in r345578, which
merged changes a10d50f999 and e63ac16d25 from ZoL.  The merge:
* failed to flip a == to an != like the upstream change did, and
* Left out one chunk

Direct commit to stable/12 because head has moved on to OpenZFS.

PR:             251694
Reviewed by:    bapt
Sponsored by:   Axcient
DeltaFile
+14-2cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
+14-21 files

HardenedBSD/src e74048acddl/contrib/opensolaris/lib/libzfs/common libzfs_dataset.c

ZFS: fix spurious EBUSY after zfs receive to an existing dataset

If you do a "zfs send -p <src> | zfs receive -F <dst>" to an existing but
empty dataset, the receive will complete successfully but spuriously fail
with exit status 1 and the message "cannot mount 'pool/dataset': mountpoint
or dataset is busy".

The root cause is a merge error made in r344569 and MFCed in r345578, which
merged changes a10d50f999 and e63ac16d25 from ZoL.  The merge:
* failed to flip a == to an != like the upstream change did, and
* Left out one chunk

Direct commit to stable/12 because head has moved on to OpenZFS.

PR:             251694
Reviewed by:    bapt
Sponsored by:   Axcient
DeltaFile
+14-2cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
+14-21 files

HardenedBSD/src f86c9ebcontrib/llvm-project/llvm/lib/Analysis/models/inliner saved_model.pbtxt, contrib/sqlite3 sqlite3.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi

Conflicts:
        Makefile.inc1 (unresolved)
        share/man/man5/src.conf.5 (unresolved)
        share/mk/src.opts.mk (unresolved)
        share/mk/sys.mk (unresolved)
DeltaFile
+95,073-589share/man/man5/src.conf.5
+35,376-0sys/contrib/openzfs/include/sys/u8_textprep_data.h
+32,634-0contrib/llvm-project/llvm/lib/Analysis/models/inliner/saved_model.pbtxt
+27,826-0sys/contrib/openzfs/module/zstd/lib/zstd.c
+9,980-9,250contrib/sqlite3/sqlite3.c
+10,609-0sys/contrib/openzfs/module/zfs/arc.c
+211,498-9,83918,438 files not shown
+1,674,079-664,95318,444 files

HardenedBSD/src 0e3bd8acontrib/llvm-project/llvm/lib/Analysis/models/inliner saved_model.pbtxt, contrib/llvm-project/llvm/lib/Target/Hexagon HexagonDepIICScalar.td

MFH

Sponsored by:   Rubicon Communications, LLC (netgate.com)
DeltaFile
+35,376-0sys/contrib/openzfs/include/sys/u8_textprep_data.h
+32,634-0contrib/llvm-project/llvm/lib/Analysis/models/inliner/saved_model.pbtxt
+27,826-0sys/contrib/openzfs/module/zstd/lib/zstd.c
+9,980-9,250contrib/sqlite3/sqlite3.c
+10,565-0sys/contrib/openzfs/module/zfs/arc.c
+6,876-3,589contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+123,257-12,83911,178 files not shown
+1,373,540-560,26311,184 files

HardenedBSD/src e251528 (r364886)contrib/llvm-project/llvm/lib/Analysis/models/inliner saved_model.pbtxt, contrib/llvm-project/llvm/lib/Target/Hexagon HexagonDepIICScalar.td

MFH

Sponsored by:   Rubicon Communications, LLC (netgate.com)
DeltaFile
+35,376-0sys/contrib/openzfs/include/sys/u8_textprep_data.h
+32,634-0contrib/llvm-project/llvm/lib/Analysis/models/inliner/saved_model.pbtxt
+27,826-0sys/contrib/openzfs/module/zstd/lib/zstd.c
+9,980-9,250contrib/sqlite3/sqlite3.c
+10,565-0sys/contrib/openzfs/module/zfs/arc.c
+6,876-3,589contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+123,257-12,83911,178 files not shown
+1,373,540-560,26311,184 files

HardenedBSD/src ff81541sys/cddl/contrib/opensolaris/uts/common/fs/zfs spa.c, sys/contrib/openzfs/cmd/zpool zpool_main.c

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

Conflicts:
        cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c (deleted)
        share/mk/bsd.libnames.mk (unresolved)
        share/mk/src.libnames.mk (unresolved)
DeltaFile
+35,376-0sys/contrib/openzfs/include/sys/u8_textprep_data.h
+27,826-0sys/contrib/openzfs/module/zstd/lib/zstd.c
+10,565-0sys/contrib/openzfs/module/zfs/arc.c
+10,326-0sys/contrib/openzfs/cmd/zpool/zpool_main.c
+9,754-0sys/contrib/openzfs/module/zfs/spa.c
+0-8,972sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
+93,847-8,9724,169 files not shown
+773,355-276,7044,175 files

HardenedBSD/src 9e5787d (r364746)cddl/contrib/opensolaris/cmd/zfs zfs_main.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c

Merge OpenZFS support in to HEAD.

The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.

I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.

Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for

    [19 lines not shown]
DeltaFile
+0-8,972sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
+0-8,569sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
+0-7,692sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
+0-7,592cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
+0-7,135cddl/contrib/opensolaris/cmd/ztest/ztest.c
+0-6,742cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+0-46,702491 files not shown
+2,718-276,663497 files

HardenedBSD/src 1477dd8cddl/contrib/opensolaris/cmd/zfs zfs_main.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c

Merge OpenZFS support in to HEAD.

The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.

I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.

Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for

    [19 lines not shown]
DeltaFile
+0-8,972sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
+0-8,569sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
+0-7,692sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
+0-7,592cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
+0-7,135cddl/contrib/opensolaris/cmd/ztest/ztest.c
+0-6,742cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+0-46,702491 files not shown
+2,718-276,663497 files

HardenedBSD/src 8a3880dcddl/contrib/opensolaris/cmd/zpool zpool_main.c, contrib/sqlite3 sqlite3.c

Merge remote-tracking branch 'upstream/stable/12' into hardened/12-stable/master

Conflicts:
        sys/vm/vm_unix.c (unresolved)
DeltaFile
+8,664-5,275contrib/sqlite3/sqlite3.c
+1,015-0contrib/unbound/services/rpz.c
+409-375contrib/unbound/Makefile.in
+750-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/mmp.c
+518-207cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+502-137sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
+11,858-5,994225 files not shown
+19,917-8,556231 files

HardenedBSD/src 1dcba10cddl/contrib/opensolaris/cmd/zdb zdb.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c zpool.8

MFC r354941,r354948: 10601 10757 Pool allocation classes

MFV r354382,r354385: 10601 10757 Pool allocation classes

illumos/illumos-gate at 663207adb1669640c01c5ec6949ce78fd806efae
https://github.com/illumos/illumos-gate/commit/663207adb1669640c01c5ec6949ce78fd806efae

10601 Pool allocation classes
https://www.illumos.org/issues/10601
  illumos port of ZoL Pool allocation classes. Includes at least these two
  commits:
  441709695 Pool allocation classes misplacing small file blocks
  cc99f275a Pool allocation classes

10757 Add -gLp to zpool subcommands for alt vdev names
https://www.illumos.org/issues/10757
  Port from ZoL of
  d2f3e292d Add -gLp to zpool subcommands for alt vdev names
  Note that a subsequent ZoL commit changed -p to -P

    [43 lines not shown]
DeltaFile
+502-137sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
+385-171cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+259-155cddl/contrib/opensolaris/cmd/zdb/zdb.c
+211-108sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
+173-18cddl/contrib/opensolaris/cmd/ztest/ztest.c
+170-21cddl/contrib/opensolaris/cmd/zpool/zpool.8
+1,700-61038 files not shown
+2,616-86244 files

HardenedBSD/src 0c54d9a (r361391)cddl/contrib/opensolaris/cmd/zdb zdb.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c zpool.8

MFC r354941,r354948: 10601 10757 Pool allocation classes

MFV r354382,r354385: 10601 10757 Pool allocation classes

illumos/illumos-gate at 663207adb1669640c01c5ec6949ce78fd806efae
https://github.com/illumos/illumos-gate/commit/663207adb1669640c01c5ec6949ce78fd806efae

10601 Pool allocation classes
https://www.illumos.org/issues/10601
  illumos port of ZoL Pool allocation classes. Includes at least these two
  commits:
  441709695 Pool allocation classes misplacing small file blocks
  cc99f275a Pool allocation classes

10757 Add -gLp to zpool subcommands for alt vdev names
https://www.illumos.org/issues/10757
  Port from ZoL of
  d2f3e292d Add -gLp to zpool subcommands for alt vdev names
  Note that a subsequent ZoL commit changed -p to -P

    [43 lines not shown]
DeltaFile
+502-137sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
+385-171cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+259-155cddl/contrib/opensolaris/cmd/zdb/zdb.c
+211-108sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
+170-21cddl/contrib/opensolaris/cmd/zpool/zpool.8
+173-18cddl/contrib/opensolaris/cmd/ztest/ztest.c
+1,700-61038 files not shown
+2,616-86244 files

HardenedBSD/src 31d34d2cddl/contrib/opensolaris/cmd/zdb zdb.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c

MFC r354804,r354806,r354807,r354885: 10499 Multi-modifier protection (MMP)

MFV r354378,r354379,r354386: 10499 Multi-modifier protection (MMP)

10499 Multi-modifier protection (MMP)
illumos/illumos-gate at e0f1c0afa46cc84d4b1e40124032a9a87310386e
https://github.com/illumos/illumos-gate/commit/e0f1c0afa46cc84d4b1e40124032a9a87310386e
https://www.illumos.org/issues/10499
  Port the following ZFS commits from ZoL to illumos.
  379ca9cf2 Multi-modifier protection (MMP)
  bbffb59ef Fix multihost stale cache file import
  0d398b256 Do not initiate MMP writes while pool is suspended

10701 Correct lock ASSERTs in vdev_label_read/write
illumos/illumos-gate at 58447f688d5e308373ab16a3b129bc0ba0fbc154
https://github.com/illumos/illumos-gate/commit/58447f688d5e308373ab16a3b129bc0ba0fbc154
https://www.illumos.org/issues/10701
  Port of ZoL commit:
  0091d66f4e Correct lock ASSERTs in vdev_label_read/write

    [23 lines not shown]
DeltaFile
+750-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/mmp.c
+343-14sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
+84-110cddl/contrib/opensolaris/cmd/zdb/zdb.c
+133-36cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+147-10cddl/contrib/opensolaris/cmd/ztest/ztest.c
+62-18cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c
+1,519-18835 files not shown
+2,077-28741 files

HardenedBSD/src ed4f046 (r361383)cddl/contrib/opensolaris/cmd/zdb zdb.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c

MFC r354804,r354806,r354807,r354885: 10499 Multi-modifier protection (MMP)

MFV r354378,r354379,r354386: 10499 Multi-modifier protection (MMP)

10499 Multi-modifier protection (MMP)
illumos/illumos-gate at e0f1c0afa46cc84d4b1e40124032a9a87310386e
https://github.com/illumos/illumos-gate/commit/e0f1c0afa46cc84d4b1e40124032a9a87310386e
https://www.illumos.org/issues/10499
  Port the following ZFS commits from ZoL to illumos.
  379ca9cf2 Multi-modifier protection (MMP)
  bbffb59ef Fix multihost stale cache file import
  0d398b256 Do not initiate MMP writes while pool is suspended

10701 Correct lock ASSERTs in vdev_label_read/write
illumos/illumos-gate at 58447f688d5e308373ab16a3b129bc0ba0fbc154
https://github.com/illumos/illumos-gate/commit/58447f688d5e308373ab16a3b129bc0ba0fbc154
https://www.illumos.org/issues/10701
  Port of ZoL commit:
  0091d66f4e Correct lock ASSERTs in vdev_label_read/write

    [23 lines not shown]
DeltaFile
+750-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/mmp.c
+343-14sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
+84-110cddl/contrib/opensolaris/cmd/zdb/zdb.c
+133-36cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+147-10cddl/contrib/opensolaris/cmd/ztest/ztest.c
+62-18cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c
+1,519-18835 files not shown
+2,077-28741 files

HardenedBSD/src 369b257contrib/bsnmp/tests catch.hpp, lib/clang/liblldb LLDBWrapLua.cpp

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi

Conflicts:
        share/man/man5/src.conf.5 (unresolved)
DeltaFile
+71,334-0lib/clang/liblldb/LLDBWrapLua.cpp
+17,597-0contrib/bsnmp/tests/catch.hpp
+9,976-0lib/libpmc/pmu-events/arch/x86/cascadelakex/cache.json
+9,909-0lib/libpmc/pmu-events/arch/x86/cascadelakex/memory.json
+8,662-0lib/libpmc/pmu-events/arch/x86/cascadelakex/other.json
+0-4,672secure/lib/libcrypto/amd64/sha256-mb-x86_64.S
+117,478-4,6724,240 files not shown
+355,626-132,0804,246 files

HardenedBSD/src 3ea1ea8cddl/contrib/opensolaris/lib/libzfs/common libzfs_sendrecv.c libzfs_util.c, sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_objset.c dsl_dir.c

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

* freebsd/12-stable/master:
  MFC r359303
DeltaFile
+38-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
+27-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c
+26-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
+24-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
+4-6sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
+5-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c
+124-63 files not shown
+127-129 files

HardenedBSD/src 57ff3d8cddl/contrib/opensolaris/lib/libzfs/common libzfs_sendrecv.c libzfs_util.c, sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_objset.c dsl_dir.c

MFC r359303

MFOpenZFS: ZVOLs should not be allowed to have children

zfs create, receive and rename can bypass this hierarchy rule. Update
both userland and kernel module to prevent this issue and use pyzfs
unit tests to exercise the ioctls directly.

Note: this commit slightly changes zfs_ioc_create() ABI. This allow to
differentiate a generic error (EINVAL) from the specific case where we
tried to create a dataset below a ZVOL (ZFS_ERR_WRONG_PARENT).

Reviewed-by: Paul Dagnelie <pcd at delphix.com>
Reviewed-by: Matt Ahrens <mahrens at delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tom Caputi <tcaputi at datto.com>
Signed-off-by: loli10K <ezomori.nozomu at gmail.com>

Approved by:    mav (mentor)
openzfs/zfs at d8d418ff0cc90776182534bce10b01e9487b63e4
DeltaFile
+39-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
+27-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c
+26-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
+24-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
+5-8sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
+5-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c
+126-83 files not shown
+129-149 files

HardenedBSD/src 2c60ef1cddl/contrib/opensolaris/lib/libzfs/common libzfs_sendrecv.c libzfs_util.c, sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_objset.c dsl_dir.c

MFC r359303

MFOpenZFS: ZVOLs should not be allowed to have children

zfs create, receive and rename can bypass this hierarchy rule. Update
both userland and kernel module to prevent this issue and use pyzfs
unit tests to exercise the ioctls directly.

Note: this commit slightly changes zfs_ioc_create() ABI. This allow to
differentiate a generic error (EINVAL) from the specific case where we
tried to create a dataset below a ZVOL (ZFS_ERR_WRONG_PARENT).

Reviewed-by: Paul Dagnelie <pcd at delphix.com>
Reviewed-by: Matt Ahrens <mahrens at delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tom Caputi <tcaputi at datto.com>
Signed-off-by: loli10K <ezomori.nozomu at gmail.com>

Approved by:    mav (mentor)
openzfs/zfs at d8d418ff0cc90776182534bce10b01e9487b63e4
DeltaFile
+38-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
+27-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c
+26-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
+24-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
+4-6sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
+5-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c
+124-63 files not shown
+127-129 files

HardenedBSD/src aaca66d (r359721)cddl/contrib/opensolaris/lib/libzfs/common libzfs_sendrecv.c libzfs_util.c, sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_objset.c dsl_dir.c

MFC r359303

MFOpenZFS: ZVOLs should not be allowed to have children

zfs create, receive and rename can bypass this hierarchy rule. Update
both userland and kernel module to prevent this issue and use pyzfs
unit tests to exercise the ioctls directly.

Note: this commit slightly changes zfs_ioc_create() ABI. This allow to
differentiate a generic error (EINVAL) from the specific case where we
tried to create a dataset below a ZVOL (ZFS_ERR_WRONG_PARENT).

Reviewed-by: Paul Dagnelie <pcd at delphix.com>
Reviewed-by: Matt Ahrens <mahrens at delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tom Caputi <tcaputi at datto.com>
Signed-off-by: loli10K <ezomori.nozomu at gmail.com>

Approved by:    mav (mentor)
openzfs/zfs at d8d418ff0cc90776182534bce10b01e9487b63e4
DeltaFile
+38-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
+27-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c
+26-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
+24-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
+4-6sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
+5-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c
+124-63 files not shown
+127-129 files

HardenedBSD/src b397907cddl/contrib/opensolaris/lib/libzfs/common libzfs_sendrecv.c, sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_objset.c dsl_dir.c

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

* freebsd/current/master:
  MFOpenZFS: ZVOLs should not be allowed to have children
  Revert https://svnweb.freebsd.org/changeset/base/357829
  Use consistent debug output.
  Don't restore the vnet too early in error cases.
DeltaFile
+25-25sys/netinet/sctp_pcb.c
+38-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
+27-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c
+26-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
+24-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
+9-9sys/netinet/sctputil.c
+149-345 files not shown
+161-4611 files

HardenedBSD/src 6953463 (r359303)cddl/contrib/opensolaris/lib/libzfs/common libzfs_sendrecv.c libzfs_util.c, sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_objset.c dsl_dir.c

MFOpenZFS: ZVOLs should not be allowed to have children

zfs create, receive and rename can bypass this hierarchy rule. Update
both userland and kernel module to prevent this issue and use pyzfs
unit tests to exercise the ioctls directly.

Note: this commit slightly changes zfs_ioc_create() ABI. This allow to
differentiate a generic error (EINVAL) from the specific case where we
tried to create a dataset below a ZVOL (ZFS_ERR_WRONG_PARENT).

Reviewed-by: Paul Dagnelie <pcd at delphix.com>
Reviewed-by: Matt Ahrens <mahrens at delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tom Caputi <tcaputi at datto.com>
Signed-off-by: loli10K <ezomori.nozomu at gmail.com>

Approved by:    mav (mentor)
MFC after:      2 weeks
Sponsored by:   iXsystems, Inc.
openzfs/zfs at d8d418ff0cc90776182534bce10b01e9487b63e4
DeltaFile
+38-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
+27-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c
+26-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
+24-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
+4-6sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
+5-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c
+124-63 files not shown
+127-129 files

HardenedBSD/src 5ea1792cddl/contrib/opensolaris/lib/libzfs/common libzfs_sendrecv.c libzfs_dataset.c, sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_objset.c dsl_dir.c

MFOpenZFS: ZVOLs should not be allowed to have children

zfs create, receive and rename can bypass this hierarchy rule. Update
both userland and kernel module to prevent this issue and use pyzfs
unit tests to exercise the ioctls directly.

Note: this commit slightly changes zfs_ioc_create() ABI. This allow to
differentiate a generic error (EINVAL) from the specific case where we
tried to create a dataset below a ZVOL (ZFS_ERR_WRONG_PARENT).

Reviewed-by: Paul Dagnelie <pcd at delphix.com>
Reviewed-by: Matt Ahrens <mahrens at delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tom Caputi <tcaputi at datto.com>
Signed-off-by: loli10K <ezomori.nozomu at gmail.com>

Approved by:    mav (mentor)
MFC after:      2 weeks
Sponsored by:   iXsystems, Inc.
openzfs/zfs at d8d418ff0cc90776182534bce10b01e9487b63e4
DeltaFile
+38-0cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
+27-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c
+26-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
+24-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
+4-6sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
+0-5cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
+119-113 files not shown
+127-129 files

HardenedBSD/src 8cc71a9contrib/llvm-project/llvm/lib/Target/Hexagon HexagonDepInstrInfo.td, contrib/llvm-project/llvm/lib/Target/X86 X86ISelLowering.cpp

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi

Conflicts:
        gnu/lib/libgcc/Makefile (deleted)
        share/man/man5/src.conf.5 (unresolved)
        usr.bin/clang/lld/Makefile (unresolved)
        usr.sbin/rpc.statd/Makefile (unresolved)
DeltaFile
+59,521-0sys/contrib/dev/iwm/iwm-9000-34.fw.uu
+59,517-0sys/contrib/dev/iwm/iwm-9260-34.fw.uu
+45,556-0contrib/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp
+0-42,750contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
+0-37,629contrib/llvm/lib/Target/Hexagon/HexagonDepInstrInfo.td
+37,628-0contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonDepInstrInfo.td
+202,222-80,37929,524 files not shown
+5,482,014-5,100,48629,530 files

HardenedBSD/src 3456b97cddl/contrib/opensolaris/cmd/zdb zdb.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c

Merge remote-tracking branch 'upstream/master' into hardened/current/master
DeltaFile
+0-2,643sys/dev/sio/sio.c
+2,400-0sys/dev/cxgbe/crypto/t4_kern_tls.c
+500-391sys/kern/subr_csan.c
+502-137sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
+385-171cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+259-155cddl/contrib/opensolaris/cmd/zdb/zdb.c
+4,046-3,497215 files not shown
+9,254-5,750221 files

HardenedBSD/src 8f9d694cddl/contrib/opensolaris/cmd/zpool zpool_main.c zpool.8, cddl/contrib/opensolaris/cmd/ztest ztest.c

MFV r354382,r354385: 10601 10757 Pool allocation classes

illumos/illumos-gate at 663207adb1669640c01c5ec6949ce78fd806efae
https://github.com/illumos/illumos-gate/commit/663207adb1669640c01c5ec6949ce78fd806efae

10601 Pool allocation classes
https://www.illumos.org/issues/10601
  illumos port of ZoL Pool allocation classes. Includes at least these two
  commits:
  441709695 Pool allocation classes misplacing small file blocks
  cc99f275a Pool allocation classes

10757 Add -gLp to zpool subcommands for alt vdev names
https://www.illumos.org/issues/10757
  Port from ZoL of
  d2f3e292d Add -gLp to zpool subcommands for alt vdev names
  Note that a subsequent ZoL commit changed -p to -P
  a77f29f93 Change full path subcommand flag from -p to -P


    [28 lines not shown]
DeltaFile
+385-171cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+191-35sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
+173-18cddl/contrib/opensolaris/cmd/ztest/ztest.c
+170-21cddl/contrib/opensolaris/cmd/zpool/zpool.8
+162-11cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c
+80-63sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
+1,161-31928 files not shown
+1,846-41734 files

HardenedBSD/src 489912d (r354941)cddl/contrib/opensolaris/cmd/zpool zpool_main.c zpool.8, cddl/contrib/opensolaris/cmd/ztest ztest.c

MFV r354382,r354385: 10601 10757 Pool allocation classes

illumos/illumos-gate at 663207adb1669640c01c5ec6949ce78fd806efae
https://github.com/illumos/illumos-gate/commit/663207adb1669640c01c5ec6949ce78fd806efae

10601 Pool allocation classes
https://www.illumos.org/issues/10601
  illumos port of ZoL Pool allocation classes. Includes at least these two
  commits:
  441709695 Pool allocation classes misplacing small file blocks
  cc99f275a Pool allocation classes

10757 Add -gLp to zpool subcommands for alt vdev names
https://www.illumos.org/issues/10757
  Port from ZoL of
  d2f3e292d Add -gLp to zpool subcommands for alt vdev names
  Note that a subsequent ZoL commit changed -p to -P
  a77f29f93 Change full path subcommand flag from -p to -P


    [28 lines not shown]
DeltaFile
+385-171cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+191-35sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
+170-21cddl/contrib/opensolaris/cmd/zpool/zpool.8
+173-18cddl/contrib/opensolaris/cmd/ztest/ztest.c
+162-11cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c
+80-63sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
+1,161-31928 files not shown
+1,846-41734 files

HardenedBSD/src b9a5942sys/cddl/contrib/opensolaris/uts/common/fs/zfs mmp.c, sys/contrib/zstd/lib/compress zstd_compress.c zstd_cwksp.h

Merge remote-tracking branch 'upstream/master' into hardened/current/master
DeltaFile
+1,322-0sys/tools/makesyscalls.lua
+648-449sys/contrib/zstd/lib/compress/zstd_compress.c
+750-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/mmp.c
+384-168sys/contrib/zstd/programs/fileio.c
+535-0sys/contrib/zstd/lib/compress/zstd_cwksp.h
+290-73sys/contrib/zstd/tests/fuzzer.c
+3,929-690195 files not shown
+8,172-2,796201 files

HardenedBSD/src f3b212bcddl/contrib/opensolaris/cmd/zdb zdb.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c

MFV r354378,r354379,r354386: 10499 Multi-modifier protection (MMP)

10499 Multi-modifier protection (MMP)
illumos/illumos-gate at e0f1c0afa46cc84d4b1e40124032a9a87310386e
https://github.com/illumos/illumos-gate/commit/e0f1c0afa46cc84d4b1e40124032a9a87310386e
https://www.illumos.org/issues/10499
  Port the following ZFS commits from ZoL to illumos.
  379ca9cf2 Multi-modifier protection (MMP)
  bbffb59ef Fix multihost stale cache file import
  0d398b256 Do not initiate MMP writes while pool is suspended

10701 Correct lock ASSERTs in vdev_label_read/write
illumos/illumos-gate at 58447f688d5e308373ab16a3b129bc0ba0fbc154
https://github.com/illumos/illumos-gate/commit/58447f688d5e308373ab16a3b129bc0ba0fbc154
https://www.illumos.org/issues/10701
  Port of ZoL commit:
  0091d66f4e Correct lock ASSERTs in vdev_label_read/write
  At a minimum, this fixes a blown assert during an MMP test run when running on
  a DEBUG build.

    [28 lines not shown]
DeltaFile
+750-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/mmp.c
+343-14sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
+84-110cddl/contrib/opensolaris/cmd/zdb/zdb.c
+133-36cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+147-10cddl/contrib/opensolaris/cmd/ztest/ztest.c
+62-18cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c
+1,519-18833 files not shown
+2,088-27439 files

HardenedBSD/src a8c08e0 (r354804)cddl/contrib/opensolaris/cmd/zdb zdb.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c

MFV r354378,r354379,r354386: 10499 Multi-modifier protection (MMP)

10499 Multi-modifier protection (MMP)
illumos/illumos-gate at e0f1c0afa46cc84d4b1e40124032a9a87310386e
https://github.com/illumos/illumos-gate/commit/e0f1c0afa46cc84d4b1e40124032a9a87310386e
https://www.illumos.org/issues/10499
  Port the following ZFS commits from ZoL to illumos.
  379ca9cf2 Multi-modifier protection (MMP)
  bbffb59ef Fix multihost stale cache file import
  0d398b256 Do not initiate MMP writes while pool is suspended

10701 Correct lock ASSERTs in vdev_label_read/write
illumos/illumos-gate at 58447f688d5e308373ab16a3b129bc0ba0fbc154
https://github.com/illumos/illumos-gate/commit/58447f688d5e308373ab16a3b129bc0ba0fbc154
https://www.illumos.org/issues/10701
  Port of ZoL commit:
  0091d66f4e Correct lock ASSERTs in vdev_label_read/write
  At a minimum, this fixes a blown assert during an MMP test run when running on
  a DEBUG build.

    [28 lines not shown]
DeltaFile
+750-0sys/cddl/contrib/opensolaris/uts/common/fs/zfs/mmp.c
+343-14sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
+84-110cddl/contrib/opensolaris/cmd/zdb/zdb.c
+133-36cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+147-10cddl/contrib/opensolaris/cmd/ztest/ztest.c
+62-18cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c
+1,519-18833 files not shown
+2,088-27439 files