100 Commits
Author SHA1 Message Date
Martin Matuska 61c70dc16a libarchive: merge from vendor branch
libarchive 3.8.10

ChangeLog:
https://github.com/libarchive/libarchive/compare/v3.8.9...v3.8.10

Obtained from:	libarchive
Vendor commit:	0c48412be2d94afe1859a807ea7896a18d8900bd
MFC after:	3 days
2026-10-26 22:47:32 +01:00
Martin Matuska a8dfdb79eb Update vendor/libarchive to 3.8.10
ChangeLog:
https://github.com/libarchive/libarchive/compare/v3.8.9...v3.8.10

Obtained from:		libarchive
Libarcive commit:	0c48412be2d94afe1859a807ea7896a18d8900bd
2026-10-26 14:25:48 +01:00
Martin Matuska 0dac2c5327 Revert "zpool: Add zpool status -vv error ranges"
This reverts commit e903655c50.

The commit comes from the OpenZFS merge.

OpenZFS introduced in d2f5cb3a5 two new libraries: libbtree and
librange_tree. We don't have these in our build.

To keep diffs as minimal as possible and avoid future breakages we
should import these for the FreeBSD build with bells and whistles.

After this issue is resolved, e903655c5 can be re-committed.
2026-09-29 12:20:21 +02:00
Martin Matuska 6aef93facf Revert "zfs: add btree.c to libzfs"
This reverts commit b4fdb5c236.
2026-09-29 12:15:31 +02:00
Martin Matuska b4fdb5c236 zfs: add btree.c to libzfs
Fixes breakage from 34f9f5680 (openzfs/zfs@1f380a4f3)
2026-09-29 12:12:14 +02:00
Martin Matuska 34f9f5680c zfs: merge openzfs/zfs@1f380a4f3
Notable upstream pull request merges:
 #17864 e903655c5 zpool: Add zpool status -vv error ranges
 #18820 -multiple zdb: account pending DDT-log frees in leak detection
 #18884 -multiple zio_crypt: establish platform interface; rework common
                  code to use it
 #19010 -multiple zfs_namecheck: reject '.' and '..' before a snapshot or
                  bookmark
 #19031 994fb1703 Fix metaslab count assertion in metaslab_group_alloc()
                  for small vdevs
 #19093 f5b2fc8e2 zfs_ctldir: make .zfs/snapshot/<name> btime the snapshot
                  creation time
 #19097 2dece2a34 zstream: report invalid record context without assertions
 #19102 78f49e1dd vdev_disk: simplify alignment checks for linear ABDs
 #19108 -multiple Fix permanent errors misfiled into the scrub error log
 #19110 fa4bc4dec spa_errlog: don't let one unresolvable entry hide the
                  whole error log
 #19116 b6dde8a17 zio_crypt: free the key unwrap uios when decryption fails
 #19122 -multiple Fix dd_lock contention on space accounting
 #19126 c792317f2 Avoid dp_lock in the dirty space accounting
 #19131 7fd87803e Make the spa_config_lock reader fast path lockless
 #19137 a83d96835 libzfs: do not iterate snapshots for a mountpoint
                  changelist
 #19152 ccce78729 ZIO: Order a batch arrival against the hold it releases
 #19155 9d7260c9b Propagate vdev state change on probe failure
 #19157 946be3a33 FreeBSD: remove legacy ioctl support
 #19165 1d9c32c16 zpool: accept more redundant special and dedup vdevs
 #19167 638abd22a zfs_domount: fix vfs_t double-free on root setup failure

Obtained from:	OpenZFS
OpenZFS commit:	1f380a4f34
2026-09-29 09:25:39 +02:00
Martin Matuska 2f10ffc003 zfs: merge openzfs/zfs@02b5baf13
Notable upstream pull request merges:

 #18808 6d4ff3b4f Pool split leaks DTL spacemap objects
 #18844 0833cfd64 Decline Direct I/O reads on a file handle after a benign
                  verify failure
 #18853 39764eb06 Fix double free when cloning a block with a pending free
 #18901 51fe1fb84 dmu_send: a meta-dnode range does not start where an
                  object does
 #18903 904d4327f dmu_objset_open_impl: unregister prop callbacks on error
 #18906 e45640415 zdb: add detailed diagnostics for MOS leaks and spacemap
                  refs
 #18909 1b7143557 Keep a grown vdev from adopting an older pool's labels
 #18912 -multiple Defer destruction of a snapshot that a mount is holding
                  open
 #18921 33ae06bb6 ZIO: Batch vdev children completions
 #18940 7853c27eb ZIO: Batch lightweight ZIOs
 #18967 -multiple Speed up pool rewind and allow it to tolerate minor damage
 #18968 b0fff48dc arc: harness buf_hdr's anon state invariant checks
 #18969 b0da5c4ce dsl_crypt: validate every key change-key will rewrap
 #18974 b19fa7c97 log_spacemap: make zfs_log_sm_blksz tunable
 #18982 c878ee452 zstream: track and limit memory use
 #18991 a1261384a zstream: self-tuning queues
 #18992 fd639b075 zcp: support bookmarks in zfs.sync.destroy
 #18993 0498c554d vdev_disk_open: fix ENOENT retry & cleanup error handling
 #19003 5280a08f6 Write uberblocks only to vdevs used by the txg
 #19008 c47591d5d arc: apply arc_min tunables set before arc_init() has run
 #19016 cd578e518 dnode: fix heap-use-after-free in dnode_rele_and_unlock()
 #19017 b824f3116 zstd: declare __asan_*_memory_region() for user space
                  builds
 #19029 6860d1c2f DDT: Use proper size when calling kmem_free on
                  ddt_prune_entry_t
 #19041 aa26ca67b Do not complete a device removal that hit IO errors
 #19042 8e5bb1d4b Wait for the initialize and trim threads to exit
 #19051 ba524e0d7 zpool: things get messy with 0 columns
 #19053 69ef525a4 dsl_deadlist_space_range: use correct tree when summing
                  up space
 #19059 0ee8ea01b FreeBSD: use sys/abi_compat.h for time32_t
 #19062 e08bc2973 Skip interior dnode slots when receiving DRR_FREEOBJECTS
 #19066 92a3904af Wait for the txg that finished a scan to sync
 #19071 db07a5e0a dbuf: account dirty data for embedded writes
 #19072 1a8e51491 Fix self-deadlock when cloning a range within the same
                  file
 #19075 75bd31c28 L2ARC: do not feed a device while its rebuild is pending
 #19083 56e8d234b Stop the TRIM and initialize threads when a vdev goes
                  offline
 #19090 ab994acdd dmu: remove dmu_prealloc()
 #19092 61fbdf1a2 zfs: spa_sync_upgrades() should only take lock when needed

Obtained from:	OpenZFS
OpenZFS commit:	02b5baf13c
2026-09-14 14:37:46 +02:00
Martin Matuska 22649d4dba zfs: merge openzfs/zfs@84aa7e7e0
Notable upstream pull request merges:

 #16761 eb1738bcb FreeBSD: Enable Direct IO by default
 #16747 -multiple On-demand log-spacemap flush
 #18474 0d0eae2ab implement thorough scrub support (zpool scrub -t)
 #18562 6721ab981 Calling thread IO
 #18657 7ed1268d3 Fix race between device removal completion and pool export
 #18707 0d1f3b1c6 RAIDZ: Fix parity regeneration/check condition
 #18713 -multiple libzfs: fix key unload failure when unmounting an
                  encryption root
 #18714 d902eec64 Disconnect metaslab tracing from default builds
 #18716 e78fa488a zstream: multithreading
 #18718 6acb99cb1 Do not return ESTALE for open-unlinked files
 #18720 f607ef7e7 Fix insufficient locking in dedup verify
 #18722 -multiple snapdir: misc cleanups
 #18724 9bf75b4b1 Fix reads for blocks freed after being cloned
 #18725 9b7642df9 Harden recv record validation
 #18732 37f066e3c FreeBSD: Wire sha512 offload to the build
 #18736 -multiple Remove idmap/userns concept from core & FreeBSD platform
                  code
 #18742 d63f14057 libzutil: keep valid spare and l2cache paths on import
 #18749 f217627d4 Fix receive of split large blocks with a short trailing
                  chunk
 #18754 83bf40784 Use a single creation time for a recursive snapshot
 #18755 ebd9e2765 zstream: add "drop records" chain module
 #18763 7d565cdfa zfs bookmark: add recursive (-r) bookmark creation
 #18765 50557cc80 zpool initialize: add -z to write zeroes
 #18766 0467ba01c Add SECURITY.md policy filE
 #18773 ffde77051 Fix deduce_nblkptr for large dnodes on receive
 #18784 -multiple libzfs: clarify the raw incremental "IV set guid mismatch"
                  error
 #18793 9a02e53ad libzfs: don't abort receiving a raw encrypted send that
                  carries holds
 #18795 30426217b Rate limit Direct I/O verify zevents
 #18798 73b202451 Bound explicit user prefetch to a fraction of the ARC
 #18801 2a5331f8e Fix dmu_zfetch_prime() assuming a stream was created
 #18802 fb5fdefd8 libzfs: fallback VDEV_UPATH to VDEV_PATH for non-DM
                  devices
 #18809 bd2d87399 zdb: output refcounts from verify_spacemap_refcounts()
 #18811 5d530b8be ABD: Validate borrowed buffer length
 #18812 5d687a975 dbuf: use dirty record size for overridden writes
 #18819 -multiple ddt: fix refcount bypass and gang member leak for dedup
                  gang blocks
 #18821 87e2e4047 BRT: Implement partial bv_entcount writing
 #18822 -multiple dnode_sync: Relax constraint on indirect freeing - #18822
 #18827 d98fa72ca L2ARC: bound the rebuild by the write hand on a first
                  sweep
 #18831 90cdd9aef Batch object reallocation syncs in zfs receive
 #18833 466d90e15 zed: let autoexpand see capacity changes on partitioned
                  disks
 #18835 1ac3f2786 mmp: skip non-writeable vdevs during activity check
 #18838 a04c40138 DDT: Fix several bugs in pruning
 #18841 0bb41751f zpool export: return EBUSY when zvol minors are in use
 #18848 3020c18ca dmu_recv: Avoid potential null deref
 #18855 8cdd9b2b7 mmp: do not require writes to mirror legs the config
                  marks absent
 #18858 596c7a0ec Reduce dp_lock scope for MOS writes
 #18859 3ebf3ffc4 Predict and throttle buffers dirtied by the sync context
 #18860 -multiple Further parallelize block cloning
 #18865 412b17a29 Fix DMU bonus hold leak on I/O error
 #18867 b5bb1f816 Add missing checks to zfs_clone_range_replay()
 #18868 3df5b2e7f libzfs: String trimming should not operate out of bounds
 #18869 be62c5385 libzfs: Do not call munmap() when mmap() fails
 #18871 74e76f2d8 libzfs: don't truncate a resolved vdev path in
                  zpool_vdev_name()
 #18874 7312322b5 nvpair: Fix operator precedence
 #18883 3bd8cefdc libzfs: don't read a dataset handle after closing it in
                  resume send
 #18886 b4f70cb9e Fix negative time overflows in DDT pruning
 #18888 674b1ae5c DDT: Make ddt_zap_walk() use cursor _by_dnode functions
 #18889 fd1ae59c7 DDT: Skip DDT log lookups in ddt_prune_walk()
 #18892 -multiple zhack: add "mmp reclaim" to recover a pool stranded by MMP
 #18897 216de07d8 arc: fix race between arc_release() and arc_read_done()
 #18899 28afe8b08 CodeQL: Flag implicit compare-then-assign in branch
                  conditions
 #18917 0a79c039f arc: save on buf_hash_find() call at arc_read_done()
 #18920 7026d3335 Fix race condition in raidz expansion startup
 #18927 be55e01bc FreeBSD: Do not leak TSD zfs_geom_probe_vdev_key on errors
 #18928 5bd7d4466 scan: count skipped blocks as examined
 #18937 a5d678864 Allow pool import with corrupted spare/l2arc configs
 #18960 -multiple vdev_open: use calling credential to check for device
                  access
 #18961 acbcdd92c dmu_recv_begin_check: dsl_dataset_rele() should be called
                  on ds
 #18962 df3ff37fc dmu_redact_snap: Do proper cleanup on ENAMETOOLONG
 #18964 84aa7e7e0 libspl: consult ZFS_HOSTID on FreeBSD as well

Obtained from:	OpenZFS
OpenZFS commit:	84aa7e7e09
2026-08-24 21:54:22 +02:00
Martin Matuska 185becb1e1 libarchive: merge from vendor branch
libarchive 3.8.9

ChangeLog:
https://github.com/libarchive/libarchive/compare/v3.8.7...v3.8.9

Obtained from:	libarchive
Vendor commit:	27cbc7827172698143e440801fc0ba39ccb4f1f5
MFC after:	2 weeks
2026-07-30 12:11:06 +02:00
Martin Matuska 6d46c752af Update vendor/libarchive to 3.8.9
ChangeLog:
https://github.com/libarchive/libarchive/compare/v3.8.8...v3.8.9

Obtained from:		libarchive
Libarcive commit:	27cbc7827172698143e440801fc0ba39ccb4f1f5
2026-07-30 10:08:17 +02:00
Martin Matuska 77a6696abb Update vendor/libarchive to 3.8.8
New features in 3.8.8:
 #2685 add support for reading encrypted zipx formats
       (bzip2, lzma, ppmd, xz, zstd)

Bugfixes between 3.8.7 and 3.8.8:

Core:
 #2905 Fix NULL pointer increment in archive_acl_from_text_nl
 #2927 archive_match: Prevent call stack overflow
 #2928 pathmatch: Treat anchors not special without flags
 #2942 fix `archive_entry_set_mode` & `archive_entry_set_perm`
 #2957 Fix a double-free in the link resolver
 #2971 Fix mem leaks found with ASAN-enabled test suites
 #2988 Fix buffer overrun and wrong output for NULL-name ACL entries
 #2998, §3009: archive_read: FATAL should be sticky for all API calls
 #3010 Date parsing: reject dates with numbers of more than 4 digits
 #3011 acl: parser out-of-bounds read
 #3012 pathmatch: heap buffer over-read
 #3036 cmdline: Use free+strdup instead of realloc+strcpy
 #3019 sparse: UAF in sparse_reset
 #3037 strmode: Remove strcpy usage
 #3040 Fix a number of unchecked memory allocations
 #3064 Fix libattr version returned in archive_version_details,
       as well as a leak
 #3083 Fix integer overflow in __archive_read_filter_ahead
 #3114 Fix OOB in `archive_read_open_filenames_w` on some systems
 #3146 read_disk: Check if off_t can overflow size_t
 #XXXX read: Fix memory corruption on filtered multi-volume archives

Filters:
 #2526 compress: Fix SIGSEGV when appended before open
 #3033 filter: Remove unneeded strcpy calls
 #3050 bzip2: Support large in-memory archives
 #3054 filter: Fix mismatched filter function dispatch table entry in
       archive_write_add_filter.c
 #3073 zstd: Fix 32 bit platform endless loop and OOB access during bidding
 #3085 gzip: Support more large in-memory archives
 #3093 lz4: Improve truncated input stream detection
 #3100 lz4: Check `XXH32_init` result
 #3103 uu: Extend range checks to avoid 32 bit OOB
 #3115 gzip: Fix OOB in writer with huge filename
 #3132 lz4: Fix double-free on reallocation failure

7-ZIP reader and writer:
 #2923 sanity-check FilesInfo NumFiles before allocating entries
 #2929 Verify that Codec ID fits into 63 bit
 #2980 Sanity-check the number of files
 #2985 Harden SFX parser
 #3002 Clean up the failure path in `setup_decode_folder`
 #3006 Fix 32 bit heap overflow
 #3062 writer: free file->utf16name on symlink UTF-8 conversion failure
 #3067 Set error message in case of error
 #3074 Support streamable reading again
 #3099 Extend support for filtered input
 #3102 fix a number of issues in zstd detection
 #3119 Fix range check in get_pe_sfx_offset

CAB reader:
 #2979 reader: Fix use of uninitialized values from Huffman table
 #3000 Harden the handling of invalid headers
 #3144 Improve truncation detection
 #3145 Properly limit maximum name length
 #3153 Fix multi volume parser

CPIO reader and writer:
 #2984 reader: Validate pathname in record_hardlink
 #3043 reject oversized pathnames before read-ahead
 #3055 Fix UAF in error path
 #3095 Improve afio header detection
 #3158 Fix writer OOB read with very long filenames
 #3168 fix OOB read from int pathlength truncation in newc/binary writers

iso9660 reader and writer:
 #2968 Fix `..` (dot dot) path normalization
 #2974 Fix OOB during Joliet ID generation
 #2978 Fix infinite loop in Joliet ID generation
 #2983 Fix joliet pathname overflow
 #3017 Fix NULL deref and Joliet ID overflow
 #3021 fix infinite loop on self-referencing CE entry
 #3029 Fix memory leaks on error paths
 #3045 bound duplicate identifier extension placement
 #3117 Fix null dereference in set_directory_record_rr

mtree reader and writer:
 #2930 Fix time value parser truncation
 #2982 Fix hex parser
 #3007 Escape standard pathname matching characters
 #3008 Do not append '/' when basename is '.'
 #3018 NULL pointer deref during archive close
 #3032 Port iso9660 fix for `..` (dot dot) path normalization
 #3057 Fix null dereference for some corner cases

RAR reader:
 #3015 avoid reading NEWSUB extended data during header parsing
 #3047 skip NEWSUB payloads without size cap
 #3048 reset low-distance state for new LZ tables
 #3087 Simplify FILE_ATTRIBUTE_DIRECTORY check
 #3105 Add missing bound check for staticdata

RARv5 reader:
 #3004 FAIL if the decode table is > 2^16
 #3081 Avoid dangling pointers in init_unpack
 #3091 skip unconsumed block bytes before ARCHIVE_RETRY
 #3121 fix signed integer underflow in bytes_remaining

TAR reader and writer:
 #2991 Harden timestamp parsing
 #3038 Improve string safety in list_item_verbose
 #3052 Fix OOB with empty wide character directory names

WARC reader and writer:
 #3061 writer: free hdr on _popul_ehdr overflow in _warc_header

XAR reader and writer:
 #3013 Fix two UB (#3013)
 #3028 Free XAR xattr fstype metadata during cleanup
 #3030 Avoid integer overflows in number parsers
 #3032 Port iso9660 fix for `..` (dot dot) path normalization
 #3041 Fix writer OOB accesses with fflags
 #3060 fix fflags_text leak in file_free

ZIP reader and writer:
 #2981 Limit the LZMA initialization to 64MiB memory (#2981)
 #2993 Don't try to write overlong pathnames (#2993)
 #2996 Reject empty pathnames in ZIP writer (#2996)

Obtained from:	libarchive
Vendor commit:	7219b0134d771dc4b51bf86b4d01761b87398b1b
2026-07-07 12:58:25 +02:00
Martin Matuska d0b3ecdc27 zfs: merge openzfs/zfs@37af89948
Notable upstream pull request merges:
 #18509 f16b3744d zstream: refactor common functions
 #18573 -multiple Persist z_seq across znode eviction
 s18611 eb0c674c2 zfs_ioctl: fix EBUSY race between quota queries and mount
 #18637 77e64d86e Fix self-deadlock when setting the "allocating"/"path"
                  vdev property
 #18645 e3082b923 freebsd: set mnt_time on the rootfs at mountroot time
 #18652 50d012b2a zbookmark_compare: handle "marker" bookmarks with negative
                  levels
 #18664 520eeeaa6 Improve performance of "zpool offline" for log devices
 #18668 6b8f79877 Avoid more abd_t allocations in RAIDZ/dRAID
 #18669 99ab859c3 Optimize metaslab_set_selected_txg()
 #18673 97b9ba7a9 delegate: add 'send:encrypted' permission
 #18687 2ea519c2a Avoid lookup overhead for nonexistent xattr directories
 #18688 87593ea2b Fix handling of _PC_HAS_HIDDENSYSTEM for FreeBSD
 #18693 0483a8e0c Clean up embedded slog metaslab across txgs
 #18695 41311c665 RAIDZ: Optimize single data column writes
 #18706 37af89948 ddt_log: Fix refcount tagging for begin/commit

Obtained from:	OpenZFS
OpenZFS commit: 37af899488
2026-06-27 10:51:33 +02:00
Martin Matuska b1b4871f37 zfs: fix sysctl_os.c
Correctly declare vfs.zfs.metaslab.condense_pct

The following sysctls have moved to metaslab.c:
vfs.zfs.metaslab.df_alloc_threshold
vfs.zfs.metaslab.df_free_pct
vfs.zfs.metaslab.sm_blksz_no_log
vfs.zfs.metaslab.sm_blksz_with_log

Reported by:	[email protected]
2026-06-07 21:18:22 +02:00
Martin Matuska d949721745 zfs: merge openzfs/zfs@a170134fe
Notable upstream pull request merges:
 #18372 eaaea55b6 Consistently encode DRR_BEGIN packed nvlist payloads with
                  NV_ENCODE_XDR
 #18410 891e379d0 Fix failfast default and usage
 #18470 a2d053329 zdb: Add some more file layout output, triggered by -v
 #18472 d50f5b6d0 dsl_dir: avoid dd_lock during snapshots_changed updates
 #18493 d65015938 Vdev allocation bias/class change
 #18497 8fdc86675 zfs: annotate nested dd_lock in reservation sync
                  accounting
 #18494 956deba27 zdb: detect BRT and DDT leaks during block traversal
 #18499 c7cfe0805 zarcstat: detect attached L2ARC device with no data
 #18503 439b802e7 sa: fix sa_add_projid lock ordering
 #18508 968f4db03 zpool-attach.8: add EXAMPLES section
 #18513 45dddc452 zfs.4: Fix documentation of zfs_arc_dnode_reduce_percent
 #18516 8ff64005a zap: split implementation out into more files
 #18520 181e1b522 Fix double free for blocks cloned after DDT prune
 #18535 -multiple zstream: fix crashes when refcount tracking enabled
 #18536 -multiple refcount tag fixups
 #18541 a65ed7afd zpool/zfs: accept --help and -? after a subcommand
 #18544 6fb72fda0 zio_ddt_write: compute have_dvas after taking dde_io_lock
 #18546 -multiple zap: internal locking uplift
 #18550 40a87651d zap_impl: use flex array field for mzap_phys_t.mz_chunks
 #18551 -multiple zap: make the _by_dnode() op variants be the primary
                  implementation
 #18570 112b0131b zpl_xattr: stop heap-allocating prefixed xattr names
 #18578 4bc8c39b6 zed: Prefer dRAID distributed spares to regular ones
 #18596 e30ab5fa4 FreeBSD: Make it possible to build openzfs.ko with
                  sanitizers
 #18597 472ddca11 zed: Prefer spares with matching rotational and size
 #18599 c90dc2808 enforce exact decompressed length for lz4, gzip, and zstd
 #18603 -multiple zap: add zap_cursor_init_by_dnode; cursor unit tests;
                  mock dnode refcounts
 #18604 59dc88602 nvpair: Check for un-terminated strings in packed nvlist
 #18606 ef6f26145 When reading a vdev label skip libzfs_core_init()
 #18613 0aa4088dc sharenfs: Check for invalid characters
 #18615 80fb85b80 Fix the integer type in zfs_ioc_userspace_many()
 #18616 e199f6d98 Fix uninitialized variable warning in vdev_prop_get()
 #18617 7de42602c Extend dataset zfs_ioc_set_prop() secpolicy
 #18622 5fea0c838 Parallelize metaslab_sync_done() calls
 #18623 cab50d5ad Add additional verification of size fields and strings
 #18630 -multiple zap: misc function removal / uplift / tests
 #18633 a8ef128da Fix uninitialized variable warning in zil_parse()

Obtained from:	OpenZFS
OpenZFS commit:	a170134feb
2026-06-06 22:48:32 +02:00
Martin Matuska efa8679e7f zfs: merge openzfs/zfs@a12c6ed62
Notable upstream pull request merges:
 #18473 b8d959640 Fix rare cksum errors after rebuild
 #18477 e78a51dd6 Fix off-by-one in PREVIOUSLY_REDACTED handler that drops
                  last block
 #18482 d5099c330 Initialize vr_last_txg for rebuild
 #18483 872f01019 Zstd: rework ZSTD_isError symbol renaming
 #18489 366b1f9a3 Fix long POSIX_FADV_DONTNEED for single block files

Obtained from:	OpenZFS
OpenZFS commit:	a12c6ed62f
2026-05-07 01:07:56 +02:00
Martin Matuska f9590540c5 zfs: merge openzfs/zfs@84ffe564d
Notable upstream pull request merges:
 #18387 656285140 Handle raidz errors <= nparity rather than ignoring
 #18401 1cebe8a38 libzfs: report invalid permission name in zfs allow
 #18430 513710ed2 Fix "panic: cache_vop_rename: lingering negative entry"
 #18440 37e3a260f dmu_direct: avoid UAF in dmu_write_direct_done()
 #18445 2eee4ac1e Fix: draid autopkgtests fail on s390x architecture
 #18448 8da472973 key lookup failure should always return EACCES
 #18456 4a58ab8ce zfs.4: document five missing module parameters

Obtained from:	OpenZFS
OpenZFS commit:	84ffe564df
2026-05-02 09:18:34 +02:00
Martin Matuska d8fbbd371c zfs: merge openzfs/zfs@1644e2ffd
Notable upstream pull request merges:
 #18148 d1b0a6982 draid: add failure domains support
 #18167 f203fedde Add zoned_uid property with additive least privilege
                  authorization
 #18191 -multiple FreeBSD: Fix a couple of races involving zvol creation
                  and teardown
 #18213 33ed68fc2 zpool create: report which device caused failure
 #18235 931deb290 Prevent range tree corruption race by updating
                  dnode_sync()
 #18282 b44a3ecf4 zpool: Change zpool offline spares policy
 #18310 -multiple Fix s_active leak in zfsvfs_hold() when z_unmounted is
                  true
 #18351 ce837a28e Bridge speculative and prescient prefetchers
 #18380 fc659bd6d draid: fix import failure after disks replacements
 #18385 16858492e FreeBSD: Implement relatime property
 #18390 a22b3f670 abd: Fix stats asymmetry in case of Direct I/O
 #18399 7b1682a82 Add support for POSIX_FADV_DONTNEED
 #18403 5cb95ad89 fix memleak in spa_errlog.c
 #18405 0752cf067 draid: allow seq resilver reads from degraded vdevs
 #18407 e635d27eb Add ability to set user properties while changing
                  encryption key
 #18414 2abf469be draid: fix cksum errors after rebuild with degraded disks
 #18415 -multiple Fix snapshot automount deadlock during concurrent zfs recv
 #18421 1644e2ffd Fix read corruption after block clone after truncate

Obtained from:	OpenZFS
OpenZFS commit:	1644e2ffd2
2026-04-19 00:22:45 +02:00
Martin Matuska eb5165bb49 libarchive: merge from vendor branch
libarchive 3.8.7

Important bugfixes:
 #2871 libarchive: fix handling of option failures
 #2897 iso9660: fix undefined behavior
 #2898 RAR: fix LZSS window size mismatch after PPMd block
 #2900 CAB: fix NULL pointer dereference during skip
 #2911 libarchive: do not continue with truncated numbers
 #2919 CAB: Fix Heap OOB Write in CAB LZX decoder
 #2934 iso9660: fix posibble heap buffer overflow on 32-bit systems
 #2939 cpio: Fix -R memory leak
 #2947 libarchive: lzop and grzip filter support

Important bugfixes between 3.8.5 and 3.8.6:
 #2860 bsdunzip: fix ISO week year and Gregorian year confusion
 #2864 7zip: ix SEGV in check_7zip_header_in_sfx via ELF offset validation
 #2875 7zip: fix out-of-bounds access on ELF 64-bit header
 #2877 RAR5 reader: fix infinite loop in rar5 decompression
 #2878 mtree reader: Fix file descriptor leak in mtree parser cleanup
       (CWE-775)
 #2892 RAR5 reader: fix potential memory leak
 #2893 RAR5: fix SIGSEGV when archive_read_support_format_rar5 is called
       twice
 #2895 CAB reader: fix memory leak on repeated calls to
       archive_read_support_format_cab

Obtained from:	libarchive
Vendor commit:	ded82291ab41d5e355831b96b0e1ff49e24d8939
MFC after:	1 week
2026-04-13 15:47:17 +02:00
Martin Matuska f2cd95a372 Update vendor/libarchive to 3.8.7
Important bugfixes between 3.8.6 and 3.8.7:
 #2871 libarchive: fix handling of option failures
 #2897 iso9660: fix undefined behavior
 #2898 RAR: fix LZSS window size mismatch after PPMd block
 #2900 CAB: fix NULL pointer dereference during skip
 #2911 libarchive: do not continue with truncated numbers
 #2919 CAB: Fix Heap OOB Write in CAB LZX decoder
 #2934 iso9660: fix posibble heap buffer overflow on 32-bit systems
 #2939 cpio: Fix -R memory leak
 #2947 libarchive: lzop and grzip filter support

Important bugfixes between 3.8.5 and 3.8.6:
 #2860 bsdunzip: fix ISO week year and Gregorian year confusion
 #2864 7zip: ix SEGV in check_7zip_header_in_sfx via ELF offset validation
 #2875 7zip: fix out-of-bounds access on ELF 64-bit header
 #2877 RAR5 reader: fix infinite loop in rar5 decompression
 #2878 mtree reader: Fix file descriptor leak in mtree parser cleanup
       (CWE-775)
 #2892 RAR5 reader: fix potential memory leak
 #2893 RAR5: fix SIGSEGV when archive_read_support_format_rar5 is called
       twice
 #2895 CAB reader: fix memory leak on repeated calls to
       archive_read_support_format_cab

Obtained from:	libarchive
Vendor commit:	ded82291ab41d5e355831b96b0e1ff49e24d8939
2026-04-13 15:29:20 +02:00
Martin Matuska 80aae8a3f8 zfs: merge openzfs/zfs@3ee08abd2
Notable upstream pull request merges:
 #17000 -multiple cmd/zfs: support creating parents with canmount=no
 #17926 b481a8bbb Make zpool status dedup table support raw bytes -p output
 #18238 -multiple Report space metrics per allocation class
 #18240 5dad9459d Add --no-preserve-encryption flag
 #18257 1eace5906 libzfs: use mount_setattr for selective remount including
                  legacy mounts
 #18259 1e2c94a04 More consistent use of TREE_* macros in AVL comparators
 #18262 c58b8b7dc Fix check for .cfi_negate_ra_state on aarch64
 #18264 f109c7bb9 Add the --file-layout (-f) option to zdb(8)
 #18268 304de7f19 libzfs: handle EDOM error in zpool_create
 #18275 753f1e1e2 zstream: add a drop_record subcommand
 #18276 0f90a797d Fix vdev_rebuild_range() tx commit
 #18277 1e1d64d66 Fix log vdev removal issues
 #18278 06b0abfe6 Fix the send --exclude option to work with encryption
 #18281 e73ada771 libzpool: lift zfs_file ops out to separate source file
 #18284 d97945776 zstream: consolidate shared code
 #18285 -multiple Separate SIMD compile checks for userspace and kernel
 #18288 c5905b2cb Implement lzc_send_progress
 #18289 -multiple L2ARC: Add depth cap and write budget fairness for
                  persistent markers
 #18290 d45c8d648 FreeBSD: Improve dmesg kernel message prefix
 #18294 b403040c4 draid: fix data corruption after disk clear
 #18296 -multiple libzfs: mnttab cleanup
 #18300 d35951b18 zpool clear: remove undocumented rewind flags
 #18301 ae7fcd5f9 fix libzfs diff mem leak in an error path
 #18303 65165df12 zilstat: add man page
 #18314 7f65e04ab libzfs: scrub: only include start and end nv pairs if
                  needed for scrub
 #18315 -multiple Sync ZVOLs block cloning conditions with file systems
 #18330 f80338fac zarcsummary: add man page
 #18337 f259a47c7 zpool-iostat.8: clarify first report shows per-second
                  averages

Obtained from:	OpenZFS
OpenZFS commit:	3ee08abd2f
2026-03-19 21:25:34 +01:00
Martin Matuska 8a62a2a565 zfs: merge openzfs/zfs@f8e5af53e
Notable upstream pull request merges:
 #17358 4975430cf Add vdev property to disable vdev scheduler
 #18031 c77f17b75 Add snapshots_changed_nsecs dataset property
 #18080 dbb3f247e cmd/zfs: clone: accept `-u` to not mount newly created
                  datasets
 #18089 -multiple Zstd: Update bundled library to version 1.5.7
 #18091 2301755df Fix zfs_open() to skip zil_async_to_sync() for the
                  snapshot
 #18093 -multiple L2ARC: Rework write throttling with DWPD rate limiting
                  and parallel writes
 #18095 2dbd6af5e Rename several printf attributes declarations to
                  __printf__
 #18096 8605bdfdd FreeBSD: unbreak compilation on i386
 #18105 794f1587d When receiving a stream with the large block flag,
                  activate feature
 #18115 765929cb4 DDT: Add locking for table ZAP destruction
 #18118 09e4e01e9 Fix history logging for `zpool create -t`
 #18119 2f1f25217 icp: emit .note.GNU-stack section for all ELF targets
 #18131 3fffe4e70 Fix --enable-invariants on FreeBSD
 #18133 d2f5cb3a5 Move range_tree, btree, highbit64 to common code
 #18136 54b141fab FreeBSD: Remove references to DEBUG_VFS_LOCKS
 #18138 cdf89f413 Flush RRD only when TXGs contain data
 #18139 a157ef62a Make sure we can still write data to txg
 #18140 cd895f0e5 remove thread unsafe debug code causing FreeBSD double
                  free panic
 #18144 4f180e095 Fix activating large_microzap on receive
 #18146 35b2d3970 Lock db_mtx around arc_release() in couple places
 #18154 b36472052 nvpair: chase FreeBSD xdrproc_t definition
 #18160 21bbe7cb6 Improve caching for dbuf prefetches
 #18177 -multiple Multihost Improvements
 #18179 2646bd558 Allow rewrite skip cloned and snapshotted blocks
 #18180 aa29455dd Restrict cloning with different properties
 #18184 040ba7a7c libzfs: improve error message for zpool create with
                  ENXIO
 #18188 1412bdc6c zfs_vnops_os.c: Move a vput() to after
                  zfs_setattr_dir()
 #18198 cc184fe98 Fix `send:raw` permission for send `-w -I`
 #18208 ba970eb20 Cleanup allocation class selection
 #18212 0f9564e85 Simplify dnode_level_is_l2cacheable()
 #18214 370570890 Remove parent ZIO from dbuf_prefetch()
 #18218 bfb276e55 freebsd: Fix TIMESPEC_OVERFLOW for PowerPC
 #18222 d06a1d9ac Fix available space accounting for special/dedup
 #18225 d48967728 ICP: AES-GCM VAES-AVX2: fix typos and document
                  source files
 #18226 c8a72a27e ICP: AES-GCM assembly: remove unused Gmul functions
 #18230 -multiple Fix zdb --key crash for unencrypted datasets, and
                  teach tests to understand this better
 #18233 -multiple icp: add SHA-512 implementation using Intel SHA512
                  extension
 #18245 991fc56fa Introduce dedupused/dedupsaved pool properties
 #18251 6a717f31e Improve misleading error messages for
                 ZPOOL_STATUS_CORRUPT_POOL
 #18254 7744f0496 SIMD: libspl: test the correct CPUID bit for AVX512VL
 #18255 6495dafd5 range_tree: use zfs_panic_recover() for
                  partial-overlap remov
 #18256 3408332d7 zhack: Fix importing large allocation profiles on
                  small pools
 #18258 f8457fbdc Fix deadlock on dmu_tx_assign() from vdev_rebuild()
 #18263 f8e5af53e Fix redundant declaration of dsl_pool_t

Obtained from:	OpenZFS
OpenZFS commit:	f8e5af53e9
2026-03-14 13:14:56 +01:00
Martin Matuska 4b047c3af3 libarchive: merge from vendor branch
libarchive 3.8.5

Important bugfixes:
 #2809 bsdtar: fix regression from 3.8.4 zero-length pattern issue bugfix

Obtained from:	libarchive
Vendor commit:  dd897a78c662a2c7a003e7ec158cea7909557bee
MFC after:	1 week
2026-01-05 21:16:19 +01:00
Martin Matuska 01333e8c4d Update vendor/libarchive to 3.8.5
Important bugfixes:
 #2809 bsdtar: fix regression from 3.8.4 zero-length pattern issue bugfix

Obtained from:	libarchive
Vendor commit:	dd897a78c662a2c7a003e7ec158cea7909557bee
2026-01-05 21:10:21 +01:00
Martin Matuska 546d3d08e5 zfs: merge openzfs/zfs@962e68865
Notable upstream pull request merges:
 #16307 1d43387dd zdb: Add -O option for -r to specify object-id
 #17965 a62c62120 ARC: Pre-convert zfs_arc_min_prefetch_ms
 #17970 d393166c5 ARC: Increase parallel eviction batching
 #17981 20f09eae4 ZIO: ZIO_STAGE_DDT_WRITE is a blocking stage
 #17983 ff47dd35e Fix ddtprune causing space leak
 #18015 86b064469 FreeBSD: Fix a potential null dereference
                  in zfs_freebsd_fsync() (already merged)
 #18020 ff47dd35e Ensure 64-bit `off_t` is used in user space
                  instead of `loff_t`
 #18028 09492e0f2 Reduce dataset buffers re-dirtying
 #18033 f72fd378c Defer async destroys on pool import
 #18043 3d76ba273 Improve async destroy processing timing
 #18044 46d6f1fe5 DDT: Move logs searches out of the lock
 #18047 ff5414406 DDT: Switch to using ZAP _by_dnode() interfaces
 #18048 3b1ff816b DDT: Add/use zap_lookup_length_uint64_by_dnode()
 #18055 22e89aca8 DDT: Fix compressed entry buffer size
 #18059 0550abd4b RAIDZ: Remove some excessive logging
 #18060 a83bb15fc Reduce minimal scrub/resilver times
 #18061 962e68865 Use reduced precision for scan times
 #18063 051a8c749 Bypass snprintf() in quota checks if no quotas set
 #18064 7ff329ac2 Fix rangelock test for growing block size

Obtained from:	OpenZFS
OpenZFS commit:	962e68865e
2025-12-19 21:45:10 +01:00
Martin Matuska 2f6c77cd6f zfs: unbreak build after 89f729dcc merge
Link zfsd against spl and pthread
2025-12-08 13:21:26 +01:00
Martin Matuska 8b78d412ae zfs: world changes after 89f729dcc merge
Remove, unbind and obsolete libuutil and libtpool
Update zfs_configh and zfs_gitrev.h
2025-12-07 23:09:12 +01:00
Martin Matuska 66e8575559 zfs: merge openzfs/zfs@89f729dcc
Notable upstream pull request merges:
 #17932 1f3444f2b zpool: fix special vdev -v -o conflict
 #17934 -multiple Remove libuutil
 #17941 88d012a1d Fix snapshot automount expiry cancellation deadlock
 #17942 36e4f1888 Fix taskq NULL pointer dereference on timer race
 #17946 39303feba chksum: run 256K benchmark on demand, preserve
                  chksum_stat_data
 #17948 -multiple Remove libtpool
 #17957 e37937f42 ztest: fix broken random call
 #17960 928eccc5b DDT: Reduce global DDT lock scope during writes
 #17961 48f33c1ef DDT: Make children writes inherit allocator
 #17975 7f7d4934c FreeBSD: Fix uninitialized variable error
 #17980 a5b665df3 DDT: Switch to using wmsums for lookup stats
 #18004 ffaea0831 FreeBSD: Remove HAVE_INLINE_FLSL use

Obtained from:	OpenZFS
OpenZFS commit:	89f729dcca
2025-12-07 22:38:13 +01:00
Martin Matuska c1e033c33e libarchive: merge from vendor branch
libarchive 3.8.4

Important bugfixes:
     #2787 bsdtar: Fix zero-length pattern issue
     #2797 lib: Fix regression introduced in libarchive 3.8.2
                when walking enterable but unreadable directories

Obtained from:	libarchive
Vendor commit:	d114ceee6de08a7a60ff1209492ba38bf9436f79
MFC after:	1 week
2025-12-01 14:05:35 +01:00
Martin Matuska bf3359d921 Update vendor/libarchive to 3.8.4
Important bugfixes:
 #2787 bsdtar: Fix zero-length pattern issue
 #2797 lib: Fix regression introduced in libarchive 3.8.2
            when walking enterable but unreadable directories

Obtained from:	libarchive
Vendor commit:  d114ceee6de08a7a60ff1209492ba38bf9436f79
2025-12-01 14:01:24 +01:00
Martin Matuska 007679a138 libarchive: merge from vendor branch
libarchive 3.8.3

Important bugfixes:
 #2753 lib: Create temporary files in the target directory
 #2768 lha: Fix for an out-of-bounds buffer overrun when using
       p[H_LEVEL_OFFSET]
 #2769 7-zip: Fix a buffer overrun when reading truncated 7zip headers
 #2771 lz4 and zstd: Support both lz4 and zstd data with leading
       skippable frames

Obtained from:	libarchive
Vendor commit:	1368b08875351df8aa268237b882c8f4ceb0882d
MFC after:	1 week
2025-11-19 14:53:24 +01:00
Martin Matuska f1aa8e6d51 Update vendor/libarchive to 3.8.3
Important bugfixes:
     #2753 lib: Create temporary files in the target directory
     #2768 lha: Fix for an out-of-bounds buffer overrun when using
           p[H_LEVEL_OFFSET]
     #2769 7-zip: Fix a buffer overrun when reading truncated 7zip headers
     #2771 lz4 and zstd: Support both lz4 and zstd data with leading
           skippable frames

Obtained from:	libarchive
Vendor commit:	1368b08875351df8aa268237b882c8f4ceb0882d
2025-11-19 14:21:51 +01:00
Martin Matuska 1b9254f4d4 zfs: unbreak gcc builds after openzfs/zfs@e63d026b9 2025-11-17 22:17:19 +01:00
Martin Matuska fb709935d6 zfs: fix aarch64 build after openzfs/zfs@e63d026b9 2025-11-17 20:15:33 +01:00
Martin Matuska bb8580e7a6 zfs: fix cross-build after openzfs/zfs@e63d026b9d
Workaround multiple cross-build issues in OpenZFS code

TBD: discuss long-term fix with OpenZFS
2025-11-17 17:12:03 +01:00
Martin Matuska 4303bde429 zfs: fix build after openzfs/zfs@e63d026b9
Fix Makefiles
Update zfs_config.h and zfs_gitrev.h
2025-11-17 17:11:56 +01:00
Martin Matuska 8ac904ce09 zfs: merge openzfs/zfs@e63d026b9
Notable upstream pull request merges:
 #17477 02fdd26e5 Add knob to disable slow io notifications
 #17792 d0294aa75 Update dnode_next_offset_level to accept blkid instead
                  of offset
 #17824 8c225ff1b Fix gang write late_arrival bug
 #17861 -multiple Lift userspace definitions out of zfs_context.h
 #17872 dcada084b Pass flags to more DMU write/hold functions
 #17875 ec268cdf9 Fix caching of DDT log and BRT
 #17875 ea125eeb5 BRT: Round bv_entcount up to BRT_BLOCKSIZE
 #17877 6cfc3dba9 Cleanup ZIO_FLAG_IO_RETRY vs TRYHARD usage
 #17885 e63d026b9 cmd/zpool cstyle issues
 #17890 b4f073b5a Add BRT support to zpool prefetch command
 #17903 baefe098e ZIO: Set minimum number of free issue threads to 32
 #17906 6e12f0bd7 spa_misc: add an API for spa_namespace_lock
 #17908 e26b9fc87 FreeBSD: Add support for _PC_CASE_INSENSITIVE
 #17911 -multiple Update library ABI versions for v2.4.0
 #17915 8aaed7dc4 BRT: Fix ranges to blocks conversion math
 #17916 cc5cae547 BRT: Increase block size from 4KB to 8KB
 #17921 72b2a9571 ZAP: Remove dmu_object_info_from_dnode() call

Obtained from:	OpenZFS
OpenZFS commit:	e63d026b91
2025-11-17 17:11:32 +01:00
Martin Matuska e6e941e659 zfs: merge openzfs/zfs@0455150f1
Notable upstream pull request merges:
 #17836 adacf020c Fix return value for setting zvol threading
 #17839 44704616b zpool: fix conflict with -v and -o options
 #17851 3a55e76b8 FreeBSD: zfs_getpages: Don't zero freshly allocated pages
 #17863 0455150f1 FreeBSD zio_crypt.c: initialize uio variables before
                  access

Obtained from:	OpenZFS
OpenZFS commit:	0455150f11
2025-10-25 10:01:38 +02:00
Martin Matuska 401026e482 libarchive: merge from vendor branch
Update vendor/libarchive to 3.8.2

Important bugfixes:
 #2477 tar writer: fix replacing a regular file with a dir for
       ARCHIVE_EXTRACT_SAFE_WRITES
 #2659 lib: improve filter process handling
 #2664 zip writer: fix a memory leak if write callback error early
 #2665 lib: archive_read_data: handle sparse holes at end of file correctly
 #2668 7zip: Fix out of boundary access
 #2670 zip writer: fix writing with ZSTD compression
 #2672 lib: fix error checking in writing files
 #2678 zstd write filter: enable Zstandard's checksum feature
 #2679 lib: handle possible errors from system calls
 #2707 lib: avoid leaking file descriptors into subprocesses
 #2713 RAR5 reader: fix multiple issues in extra field parsing function
 #2716 RAR5 reader: early fail when file declares data for a dir entry
 #2717 bsdtar: Allow filename to have CRLF endings
 #2719 tar reader: fix checking the result of the strftime (CVE-2025-25724)
 #2737 tar reader: fix an infinite loop when parsing V headers
 #2742 lib: parse_date: handle dates in 2038 and beyond if time_t is big
       enough

Obtained from:	libarchive
Vendor commit:	7f53fce04e4e672230f4eb80b219af17975e4f83
Security:	CVE-2025-25724
PR:		290303 (exp-run)
MFC after:	1 week
2025-10-21 17:52:44 +02:00
Martin Matuska 6e6cde8f2b zfs: merge openzfs/zfs@6ae99d269
Notable upstream pull request merges:
 #17750 6e5b836e9 FreeBSD: Correct _PC_MIN_HOLE_SIZE
 #17803 1861a329f zvol: verify IO type is supported
 #17826 51de2d76f Explicit set ashift for non-leaf vdevs
 #17830 f4276479c Suppress some ashift warnings
 #17843 6ae99d269 mmap_seek: print error code and text on failure

Obtained from:	OpenZFS
OpenZFS commit:	6ae99d2692
2025-10-20 12:30:00 +02:00
Martin Matuska 8f38cbcd9c Update vendor/libarchive to 3.8.2
Important bugfixes:
 #2477 tar writer: fix replacing a regular file with a dir for
       ARCHIVE_EXTRACT_SAFE_WRITES
 #2659 lib: improve filter process handling
 #2664 zip writer: fix a memory leak if write callback error early
 #2665 lib: archive_read_data: handle sparse holes at end of file correctly
 #2668 7zip: Fix out of boundary access
 #2670 zip writer: fix writing with ZSTD compression
 #2672 lib: fix error checking in writing files
 #2678 zstd write filter: enable Zstandard's checksum feature
 #2679 lib: handle possible errors from system calls
 #2707 lib: avoid leaking file descriptors into subprocesses
 #2713 RAR5 reader: fix multiple issues in extra field parsing function
 #2716 RAR5 reader: early fail when file declares data for a dir entry
 #2717 bsdtar: Allow filename to have CRLF endings
 #2719 tar reader: fix checking the result of the strftime (CVE-2025-25724)
 #2737 tar reader: fix an infinite loop when parsing V headers
 #2742 lib: parse_date: handle dates in 2038 and beyond if time_t is big
       enough

Obtained from:	libarchive
Vendor commit:	7f53fce04e4e672230f4eb80b219af17975e4f83
Security:	CVE-2025-25724
2025-10-16 19:41:19 +02:00
Martin Matuska 4dc4a512e0 zfs: install missing openzfs-2.4 files in /usr/share/zfs/compatibility.d
MFC after: 3 days
2025-10-05 23:24:39 +02:00
Martin Matuska 36c970ed98 zfs: merge openzfs/zfs@5605a6d79
Notable upstream pull request merges:
 #16025 26b0f561b dnode_next_offset: backtrack if lower level does not match
 #17758 c722bf881 Add interface to interface spa_get_worst_case_min_alloc()
                  function
 #17765 8d4c3ee9e zvol: Fix blk-mq sync
 #17787 8869caae5 zinject: Introduce ready delay fault injection
 #17780 b2196fbed Fix 'zpool add' safety check corner cases
 #17783 5c38029f4 zdb: add ZFS_KEYFORMAT_RAW support for -K option
 #17786 f0a95e897 zpool iostat: refresh pool list every interval
 #17807 -multiple zpool iostat: fix regressions in "all pools" mode
                  after #17786
 #17793 -multiple ddt prune: Add SCL_ZIO deadlock workaround
 #17799 ac2d8c80b Make mount/share errors non-fatal for zfs create/clone

Obtained from:	OpenZFS
OpenZFS commit:	5605a6d79b
2025-10-05 09:04:02 +02:00
Martin Matuska 113e60742e zfs: merge openzfs/zfs@b2196fbed
Notable upstream pull request merges:
 #17705 545d66204 Fix a printf format specifier on FreeBSD/i386
 #17708 3387d3409 Fix atomic-alignment warnings in libspl on FreeBSD/i386
 #17719 f319ff357 vdev_disk_close: take disk write lock before destroying it
 #17732 1d2d81298 Refactor `zhack label repair` and fix `-c` regression on
                  nonzero TXG
 #17764 ea37c30fc zdb: Fix asize overflow in verify_livelist_allocs()

Obtained from:	OpenZFS
OpenZFS commit:	b2196fbedf
2025-09-24 22:54:28 +02:00
Martin Matuska dd32d6b29d zfs: merge openzfs/zfs@3f4312a0a
Notable upstream pull request merges:
 #17227 d64711c20 Detect a slow raidz child during reads
 #17543 -multiple zfs allow send:raw
 #17717 bc0b5318a Prevent scrubbing a read-only pool
 #17722 cb5f9aa58 FreeBSD: Satisfy ASSERT_VOP_IN_SEQC()
 #17729 3f4312a0a Fix two infinite loops if dmu_prefetch_max set to zero
 #17730 37cd30f71 Fix ddle memleak in ddt_log_load
 #17733 bc8bcfc71 Fix type in dbrrd_closest()
 #17735 9b772f328 Fix time database update calculations

Obtained from:	OpenZFS
OpenZFS commit:	3f4312a0a4
2025-09-13 23:09:50 +02:00
Martin Matuska 70999532ee zfs: merge openzfs/zfs@7939bad5e
Notable upstream pull request merges:
 #15869 ee7c36264 Add description of default sorting behavior to zfs_list.8
 #17375 ced72fdd6 tunables: remove legacy FreeBSD aliases
 #17600 1da2c30be Update pam_zfs_key.c default path for FreeBSD
 #17632 b6bd3228b Synchronize the update of feature refcount
 #17645 59f8f5dfe zfs_vnops_os.c: Add support for the _PC_CLONE_BLKSIZE name
 #17665 0d54ae288 zdb: Fix format strings on 32-bit systems
 #17673 976f76534 Update compatibility.d files
 #17699 e3c3e86c0 Fix wrong dedup_table_size for legacy dedup
 #17704 e29bfa5bd Fix warnings about sha2_is_supported on FreeBSD/i386
 #17706 a2424312c Fix the build on 32-bit FreeBSD with GCC

Obtained from:	OpenZFS
OpenZFS commit:	7939bad5e7
2025-09-10 17:28:34 +02:00
Martin Matuska 5e2fc2c3c5 zfs: merge openzfs/zfs@00dfa094a
OpenZFS 2.4.0 rc1

Notable upstream pull request merges:
 #17643 94413bc75 zdb: Filter log spacemaps by vdev
 #17655 28ff57505 FreeBSD: satisfy VFS requirements for readdir()
 #17658 -multiple dnode: fix how we track and check dirtyness

As OpenZFS 2.4 got branched, this is the last merge to main
until stable/15 is branched. stable/15 will receive updates
from the vendor/openzfs/zfs-2.4-release branch.

Obtained from:	OpenZFS
OpenZFS commit:	00dfa094ac
OpenZFS tag:	zfs-2.4.0-rc1
2025-08-24 23:40:48 +02:00
Martin Matuska 94ca18c18b zfs: fix build issues from 53a2e2635
Add aesni-gcm-avx2-vaes.S to libicp, libicp_rescue and module build
This was somehow not catched by my make universe
2025-08-20 15:42:33 +02:00
Martin Matuska 53a2e2635a zfs: merge openzfs/zfs@a9410ccbd
Notable upstream pull request merges:
 #17058 -multiple Port AVX2 implementation of aes-gcm from BoringSSL
 #17602 077269bfe Fix Assert in dbuf_undirty, which triggers during
                  usage zap shrink
 #17613 d15143207 ZIL: Make allocations more flexible
 #17618 5061f959d Retire zfs_autoimport_disable kmod option
 #17166 d3c1d27af zdb: better handling for corrupt block pointers
 #17616 1ccae433e Allow vmem_alloc backed multilists
 #17619 e0e60d319 Better pack struct zio_prop
 #17620 152e34822 Silence zstd large allocation warning
 #17622 -multiple ZIL: restore some things lost in "ZIL-crash" review
 #17625 -multiple zvol: cleanup & fixup zvol destruction sequence and
                  locking
 #17631 885d929cf Fix missed assertion update in physical rewrite patch
 #17642 a9410ccbd Make zpool_find_config() report errors
 #17647 30a915efe zfs-send.8: mention combination of -c/-e flags and
                  zstd_compress feature
 #17649 2c877e845 FreeBSD: Set st_rdev to NODEV, not 0, when not a device
                  (already backported)

Obtained from:	OpenZFS
OpenZFS commit:	a9410ccbd9
2025-08-20 11:00:29 +02:00
Martin Matuska 6188ca6a9d zfs: add workaround to unbreak kernel compilation on MacOS
This needs to be resolved later with the correct macros or
a different approach in discussion with Rob Norris (OpenZFS).
2025-08-12 15:21:08 +02:00
Martin Matuska d0abb9a639 zfs: merge openzfs/zfs@1d0b94c4e
Notable upstream pull request merges:
 #17398 -multiple ZIL: "crash" the ZIL if the pool suspends during fallback
 #17585 0c376d0f5 Document the new '-a' zpool option
 #17590 03592417c SIMD: Don't require definition of `HAVE_XSAVE`
 #17591 -multiple Prefer VERIFY0 over comparision with 0 or NULL
 #17596 -multiple zvol: misc cleanups
 #17605 2fd145b57 zvol: cleanup error handling and passthrough

Obtained from:	OpenZFS
OpenZFS commit:	1d0b94c4e7
2025-08-12 15:21:00 +02:00
Martin Matuska df58e8b150 zfs: merge openzfs/zfs@8302b6e32
Notable upstream pull request merges:
 #16853 894edd084 Add TXG timestamp database
 #17004 -multiple Implement dynamic gang header sizes
 #17405 dea0fc969 ZVOL: Return early, if volmode is ZFS_VOLMODE_NONE
                  on FreeBSD side
 #17455 cf146460c Default to zfs_bclone_wait_dirty=1
 #17481 523d9d600 Validate mountpoint on path-based unmount using statx
 #17482 92da9e0e9 ZVOL: Implement zvol_alloc() function on FreeBSD side
 #17489 dee62e074 spa: ZIO_TASKQ_ISSUE: Use symbolic priority
 #17496 bf846dcb7 Release topology restrictions on special/dedup
 #17497 4e92aee23 Relax special_small_blocks restrictions
 #17503 ea38787f2 Revert "Fix incorrect expected error in ztest"
 #17505 be1e991a1 Allow and prefer special vdevs as ZIL
 #17506 ee0cb4cb8 ztest: Fix false positive of ENOSPC handling
 #17507 92d3b4ee2 zio: rename `io_reexecute` as `io_post`;
                  use it for the direct IO checksum error flag
 #17508 6af8db61b metaslab: don't pass whole zio to throttle reserve APIs
 #17518 4c2a7f85d FreeBSD: Add support for _PC_HAS_HIDDENSYSTEM
 #17521 d7ab07dfb ZIL: Force writing of open LWB on suspend
 #17524 b6e8db509 zpool/zfs: Add '-a|--all' option to scrub, trim,
                  initialize
 #17531 c1e51c55f Correct weight recalculation of space-based metaslabs
 #17533 d323fbf49 FreeBSD: zfs_putpages: don't undirty pages until
                  after write completes
 #17536 b21e04e8d Fix zdb pool/ with -k
 #17537 -multiple Userspace tunables
 #17540 2957eabbe Add support for FreeBSD's Solaris style extended
                  attribute interface
 #17547 4bd7a2eaa zdb: fix checksum calculation for decompressed blocks
 #17551 -multiple cleanup: remove var init/update
 #17561 0f8a1105e Skip dbuf_evict_one() from dbuf_evict_notify()
                  for reclaim thread
 #17563 10a78e264 Faster checksum benchmark on system boot
 #17564 00ce064d8 spa: update blkptr diagram to include vdev padding
                  on encrypted blocks
 #17565 -multiple Physical rewrite
 #17566 fc885f308 Don't use wrong weight when passivating group
 #17572 f70c85086 BRT: Fix ZAP entry endianness
 #17575 0b6fd024a ZVOL: Unify zvol minors operations and improve error
                  handling
 #17581 cb5e7e097 range_tree: Provide more debug details upon unexpected
                  add/remove
 #17587 -multiple Fix two issues with dynamic gang headers

Obtained from:	OpenZFS
OpenZFS commit:	8302b6e32b
2025-08-07 09:06:31 +02:00
Martin Matuska 0df1ee7695 zfs: merge openzfs/zfs@69ee01aa4
Notable upstream pull request merges:
 #17463 48ce292ea Clarify and restrict dmu_tx_assign() errors
 #17484 d461a67d0 Ensure that gang_copies is always at least as large
                  as copies
 #17486 0a2163d19 FreeBSD: Ensure that z_pflags is initialized for
                  new znodes
 #17488 ea076d692 vdev_raidz_asize_to_psize: return psize, not asize
 #17490 69ee01aa4 Fix bug caused by rounding in vdev_raidz_asize_to_psize

Obtained from:  OpenZFS
OpenZFS commit: 69ee01aa4b
2025-06-28 02:27:56 +02:00
Martin Matuska 3a8960711f zfs: merge openzfs/zfs@8170eb6eb
Notable upstream pull request merges:
 #17385 e1677d9ee ZVOL: Make zvol_prefetch_bytes module parameter platform-independent
 #17386 e0edfcbd4 ZVOL: Make zvol_volmode module parameter platform-independent
 #17391 108562344 Improve allocation fallback handling
 #17409 68817d28c Include class name into struct metaslab_class
 #17413 af7d60959 zpl: handle suspend from two remaining calls to `txg_wait_synced()`
 #17415 b7f919d22 Relax zfs_vnops_read_chunk_size limitations
 #17423 5e5253be8 FreeBSD: Wire projects support
 #17426 -multiple Channel programs: add zfs.sync.clone()
 #17431 e0ef4d276 Improve block cloning transactions accounting
 #17432 46b82de61 scrub: generate scrub_finish event
 #17435 bcd043023 Allow zero compression if dedup is enabled
 #17438 ba227e2cc Make TX abort after assign safer
 #17441 4ae931aa9 Polish db_rwlock scope
 #17434 66ec7fb26 Reduce zfs_dmu_offset_next_sync penalty
 #17445 238eab7dc FreeBSD: zfs_putpages: don't undirty pages until after write completes
 #17458 bd27b7540 ZIL: Relax parallel write ZIOs processing
 #17469 717213d43 Fix other nonrot bugs

Obtained from:	OpenZFS
OpenZFS commit:	8170eb6ebc
2025-06-22 01:00:36 +02:00
Martin Matuska 331f2c1c46 libarchive: fix duplicate entry in tests Makefile
Reported by:	des
MFC after:	2 weeks (together with 2e113ef82)
2025-06-02 14:56:05 +02:00
Martin Matuska 2e113ef824 libarchive: merge from vendor branch
libarchive 3.8.1

New features:
 #2088 7-zip reader: improve self-extracting archive detection
 #2137 zip writer: added XZ, LZMA, ZSTD and BZIP2 support
 #2403 zip writer: added LZMA + RISCV BCJ filter
 #2601 bsdtar: support --mtime and --clamp-mtime
 #2602 libarchive: mbedtls 3.x compatibility

Security fixes:
 #2422 tar reader: Handle truncation in the middle of a GNU long linkname
       CVE-2024-57970
 #2532 tar reader: fix unchecked return value in list_item_verbose()
       CVE-2025-25724
 #2532 unzip: fix null pointer dereference
       CVE-2025-1632
 #2568 warc: prevent signed integer overflow
 #2584 rar: do not skip past EOF while reading
 #2588 tar: fix overflow in build_ustar_entry
 #2598 rar: fix double free with over 4 billion nodes
 #2599 rar: fix heap-buffer-overflow

Important bugfixes:
 #2399 7-zip reader: add SPARC filter support for non-LZMA compressors
 #2405 tar reader: ignore ustar size when pax size is present
 #2435 tar writer: fix bug when -s/a/b/ used more than once with b flag
 #2459 7-zip reader: add POWERPC filter support for non-LZMA compressors
 #2519 libarchive: handle ARCHIVE_FILTER_LZOP in archive_read_append_filter
 #2539 libarchive: add missing seeker function to archive_read_open_FILE()
 #2544 gzip: allow setting the original filename for gzip compressed files
 #2564 libarchive: improve lseek handling
 #2582 rar: support large headers on 32 bit systems
 #2587 bsdtar: don't hardlink negative inode files together
 #2596 rar: support large headers on 32 bit systems
 #2606 libarchive: support @-prefixed Unix epoch timestamps as date strings
 #2634 tar: Support negative time values with pax
 #2637 tar: Keep block alignment after pax error
 #2642 libarchive: fix FILE_skip regression
 #2643 tar: Handle extra bytes after sparse entries
 #2649 compress: Prevent call stack overflow
 #2651 iso9660: always check archive_string_ensure return value

CVE:		CVE-2024-57970, CVE-2025-1632, CVE-2025-25724
PR:		286944 (exp-run, 3.8.0)
MFC after:	2 weeks
2025-06-01 22:54:46 +02:00
Martin Matuska 76141d3306 Update vendor/libarchive to 3.8.1
Notable bugfixes:
 #2634 tar: Support negative time values with pax
 #2637 tar: Keep block alignment after pax error
 #2642 libarchive: fix FILE_skip regression
 #2643 tar: Handle extra bytes after sparse entries
 #2649 compress: Prevent call stack overflow
 #2651 iso9660: always check archive_string_ensure return value

Obtained from:	libarchive
Vendor commit:	9525f90ca4bd14c7b335e2f8c84a4607b0af6bdf
2025-06-01 22:04:03 +02:00
Martin Matuska 3747329b78 zfs: merge openzfs/zfs@e8e602d98
Notable upstream pull request merges:
 #17381 44e326689 events: include zio type in IO error reports
 #17395 008c9666e Set spa_final_txg in spa_unload()
 #17394 1bd225ed8 abd_os: move headers from libzpool to libspl
 #17399 5764e218b vdev_disk: remove classic IO submission
 #17400 b3b3cd1e4 vdev: skip faulting disks pending removal
 #17406 a38376b37 Rename zvol kernel module parameters sysctls on FreeBSD side
 #17407 2d33c8edb Make rewrite use Uncached I/O

Obtained from:	OpenZFS
OpenZFS commit:	e8e602d987
2025-05-31 15:41:12 +00:00
Martin Matuska b1c1ee4429 zfs: merge openzfs/zfs@3084336ae
Notable upstream pull request merges:
 #14876 b048bfa9c Allow opt-in of zvol blocks in special class
 #16486 b6916f995 ARC: parallel eviction
 #17169 1a8f5ad3b zvol: Enable zvol threading functionality on FreeBSD
 #17209 c17bdc491 More aggressively assert that db_mtx protects db.db_data
 #17218 734eba251 Wire O_DIRECT also to Uncached I/O
 #17246 49fbdd453 Introduce zfs rewrite subcommand
 #17255 b1ccab172 ARC: Avoid overflows in arc_evict_adj()
 #17280 848794503 zcp: get_prop: fix encryptionroot and encryption
 #17301 086105f4c Cause zpool scan resume commands to get logged in history
 #17306 246e5883b zfs_valstr: update zio_flag strings for
                  ZIO_FLAG_PREALLOCATED
 #17309 78628a5c1 FreeBSD: Use new SYSCTL_SIZEOF()
 #17314 89a8a9158 ARC: Notify dbuf cache about target size reduction
 #17319 8b9c4e643 spa: clear checkpoint information during retry
 #17339 d5616ad34 Increase meta-dnode redundancy in "some" mode
 #17340 ea74cdedd Fix 2 bugs in non-raw send with encryption
 #17342 e55225be3 Add explicit DMU_DIRECTIO checks
 #17343 d8a33bc0a icp: Use explicit_memset() exclusively in gcm_clear_ctx()
 #17344 -multiple libzfs_core: add ZFS_IOC_TRACE envvar to enable ioctl
                  tracing
 #17348 f0baaa329 arcstat: prevent ZeroDivisionError when L2ARC becomes
                  empty
 #17353 83fa80a55 dmu_objset_hold_flags() should call
                  dsl_dataset_rele_flags() on error
 #17355 -multiple Allow txg_wait_synced_flags() and dmu_tx_assign()
                  to return when the pool suspends
 #17361 5c30b2438 Fix null dereference in spa_vdev_remove_cancel_sync()
 #17363 ddf28f27c Fix off-by-one bug in range tree code
 #17367 06fa8f3f6 zfs_cmd: reorganise zfs_cmd_t to match original size
 #17368 2a91d577b Expose dataset encryption status via fast stat path
 #17372 c464f1d01 Only interrupt active disk I/Os in failmode=continue
 #17373 9d76950d6 ZIL: Improve write log size accounting
 #17377 -multiple tunables: general code cleanup
 #17379 fa697b94e FreeBSD: Add posix_fadvise(POSIX_FADV_WILLNEED) support
 #17384 3dfa98d01 ZVOL: Make zvol_inhibit_dev module parameter
                  platform-independent

Obtained from:	OpenZFS
OpenZFS commit: 3084336ae4
2025-05-30 11:17:41 +02:00
Martin Matuska b0ea71a855 Update vendor/libarchive to 3.8.0
New features:
 #2088 7-zip reader: improve self-extracting archive detection
 #2137 zip writer: added XZ, LZMA, ZSTD and BZIP2 support
 #2403 zip writer: added LZMA + RISCV BCJ filter
 #2601 bsdtar: support --mtime and --clamp-mtime
 #2602 libarchive: mbedtls 3.x compatibility

Security fixes:
 #2422 tar reader: Handle truncation in the middle of a GNU long linkname
       CVE-2024-57970
 #2532 tar reader: fix unchecked return value in list_item_verbose()
       CVE-2025-25724
 #2532 unzip: fix null pointer dereference
       CVE-2025-1632
 #2568 warc: prevent signed integer overflow
 #2584 rar: do not skip past EOF while reading
 #2588 tar: fix overflow in build_ustar_entry
 #2598 rar: fix double free with over 4 billion nodes
 #2599 rar: fix heap-buffer-overflow

Important bugfixes:
  #2399 7-zip reader: add SPARC filter support for non-LZMA compressors
  #2405 tar reader: ignore ustar size when pax size is present
  #2435 tar writer: fix bug when -s/a/b/ used more than once with b flag
  #2459 7-zip reader: add POWERPC filter support for non-LZMA compressors
  #2519 libarchive: handle ARCHIVE_FILTER_LZOP in archive_read_append_filter
  #2539 libarchive: add missing seeker function to archive_read_open_FILE()
  #2544 gzip: allow setting the original filename for gzip compressed files
  #2564 libarchive: improve lseek handling
  #2582 rar: support large headers on 32 bit systems
  #2587 bsdtar: don't hardlink negative inode files together
  #2596 rar: support large headers on 32 bit systems
  #2606 libarchive: support @-prefixed Unix epoch timestamps as date strings

Obtained from:	libarchive
Vendor commit:	70ff28fcf04ec129a1d064f96e49aa57fcc90e37
CVE:		CVE-2024-57970, CVE-2025-1632, CVE-2025-25724
2025-05-20 12:47:29 +02:00
Martin Matuska 071ab5a1f3 zfs: merge openzfs/zfs@246e5883b
Notable upstream pull request merges:
 #17111 246e5883b Implement allocation size ranges and use for gang leaves
 #17123 5f5321eff Handle interaction between gang blocks, copies, and FDT
 #17130 -multiple Implement default user/group/project quotas
 #17164 301da593a Fix lock reversal on device removal cancel
 #17183 367d34b3a Fix dspace underflow bug
 #17187 30cc2331f zed: Ensure spare activation after kernel-initiated device
                  removal
 #17191 11ca12dbd simd_powerpc.h: enable FPU on FreeBSD
 #17192 5b29e70ae Remove mg_allocators
 #17204 a497c5fc8 Improve L2 caching control for prefetched indirects
 #17205 b14b3e398 Fix FDT rollback to not overwrite unnecessary fields
 #17206 7be9fa259 Fix nonrot property being incorrectly unset
 #17208 09fc7bb47 Fix memory leaks in pool properties handling

 #17213 78a7c78bd Added fix for zpool get state segfaults with two or more
                  vdevs
 #17228 131df3bbf vdev_to_nvlist_iter: ignore draid parameters when matching
                  names
 #17231 f40ab9e39 Fix double spares for failed vdev
 #17264 27f3d9494 Sort the blocking snapshots lis
 #17269 f86d9af16 Fix race between resilver wait and offline/detach
 #17273 c8fa39b46 cred: properly pass and test creds on other threads
 #17284 a7de203c8 txg: generalise txg_wait_synced_sig() to
                  txg_wait_synced_flags()

Obtained from:	OpenZFS
OpenZFS commit:	246e5883bb
2025-05-05 00:05:28 +02:00
Martin Matuska 641794f94f zfs: update zfs_config.h and zfs_gitref.h to catch up with 61145dc2b 2025-03-27 09:14:14 +01:00
Martin Matuska 61145dc2b9 zfs: merge openzfs/zfs@4abc21b28
Notable upstream pull request merges:
 #17015 201d26294 Add receive:append permission for limited receive
 #17020 94a3fabcb Unified allocation throttling
 #17038 1b495eeab FDT dedup log sync  -- remove incremental
 #17073 9250403ba Make ganging redundancy respect redundant_metadata
                  property
 #17077 0433523ca Verify every block pointer is either embedded, hole,
                  or has a valid DVA
 #17101 83fa051ce spl_vfs: fix vrele task runner signature mismatch
 #17113 09f4dd06c Prefer embedded blocks to dedup
 #17120 0ea44e576 Fix deduplication of overridden blocks
 #17124 62a9d372f zed: Print return code on failed zpool_prepare_disk
 #17126 3cd9934a4 Some arc_release() cleanup
 #17136 d033f2676 Always perform bounds-checking in metaslab_free_concrete
 #17142 45e9b54e9 kstat: allow multi-level module names
 #17145 676b7ef10 Fix deadlock on I/O errors during device removal
 #17180 4abc21b28 Block remap for cloned blocks on device removal

Obtained from:	OpenZFS
OpenZFS commit:	4abc21b28c
2025-03-27 09:01:36 +01:00
Martin Matuska d2a8fad357 zfs: merge openzfs/zfs@fe674998b
Notable upstream pull request merges:
 #17042 ece35e0e6 zpool: allow relative vdev paths
 #17046 c43df8bbb vdev_file: unify FreeBSD and Linux implementations
 #17064 ee8803adc vdev_file: make FLUSH and TRIM asynchronous
 #17066 ecc44c45c include: move zio_priority_t into zfs.h
 #17071 ab3db6d15 arc: avoid possible deadlock in arc_read
 #17079 682c5f6a0 Fix wrong free function in arc_hdr_decrypt
 #17080 701093c44 Don't try to get mg of hole vdev in removal
 #17081 d7d274471 Better fill empty metaslabs
 #17088 a5fb5c55b spa: fix signature mismatch for spa_boot_init as
                  eventhandler required
 #17089 7f05fface gcm_avx_init: zero the ghash state after hashing the IV
 #17122 fe674998b Check portable objset MAC even if local is zeroed

Obtained from:	OpenZFS
OpenZFS commit:	fe674998bb
2025-03-09 12:52:57 +01:00
Martin Matuska b59a0cde6a zfs: merge openzfs/zfs@6a2f7b384
Notable upstream pull request merges:
 #16857 387ed5ca4 Add recursive dataset mounting and unmounting support
                  to pam_zfs_key
 #16929 c2458ba92 optimize recv_fix_encryption_hierarchy()
 #16980 12f0baf34 Make the vfs.zfs.vdev.raidz_impl sysctl cross-platform
 #16986 40496514b Expand fragmentation table to reflect larger possibile
                  allocation sizes
 #17003 88020b993 Add kstats tracking gang allocations
 #17013 21205f648 Avoid ARC buffer transfrom operations in prefetch
 #17016 390f6c119 zio: lock parent zios when updating wait counts on
                  reexecute
 #17029 b8c73ab78 zio: do no-op injections just before handing off to vdevs
 #17037 6a2f7b384 Fix metaslab group fragmentation math
 #17040 b901d4a0b Update the dataset name in handle after zfs_rename

Obtained from:	OpenZFS
OpenZFS commit:	6a2f7b3844
2025-02-20 17:40:55 +01:00
Martin Matuska c6767dc1f2 zfs: merge openzfs/zfs@34205715e
Notable upstream pull request merges:
 #16938 2aa3fbe76 zinject: count matches and injections for each handler
 #16947 -multiple zinject: add "probe" device injection type
 #16976 34205715e FreeBSD: Add setting of the VFCF_FILEREV flag

Obtained from:	OpenZFS
OpenZFS commit:	34205715e1
2025-01-27 08:22:28 +01:00
Martin Matuska 9d6043f980 zfs: merge openzfs/zfs@fae4c664a
Notable upstream pull request merges:
 #16942 fae4c664a FreeBSD: Use ashift in vdev_check_boot_reserve()

Obtained from:	OpenZFS
OpenZFS commit: fae4c664a4
2025-01-11 10:45:30 +01:00
Martin Matuska 6bfe9a1393 zfs: update configs after merging openzfs/zfs@b8e09c700 2025-01-11 10:38:14 +01:00
Martin Matuska dd21556857 zfs: merge openzfs/zfs@b8e09c700
Notable upstream pull request merges:
 #16851 19a04e5ad BRT: Check bv_mos_entries in brt_entry_lookup()
 #16854 6c9b4f18d Fix DR_OVERRIDDEN use-after-free race in dbuf_sync_leaf
 #16855 fbea92432 flush: don't report flush error when disabling flush
                  support
 #16862 ecc0970e3 backtrace: fix off-by-one on string output
 #16864 939e0237c Too many vdev probe errors should suspend pool
 #16868 ff6266ee9 Fix use-afer-free regression in RAIDZ expansion
 #16871 acda137d8 simd_stat: fix undefined CONFIG_KERNEL_MODE_NEON error
                  on armel
 #16877 219a89cbb Skip iterating over snapshots for share properties
 #16881 ab7cbbe78 zprop: fix value help for ZPOOL_PROP_CAPACITY
 #16883 f00a57a78 zfs_main: fix alignment on props usage output
 #16887 -multiple userprops: make clearing pool & vdev userprops work
                  the same
 #16888 c37a2ddaa microzap: set hard upper limit of 1M
 #16890 1acd24696 Fix readonly check for vdev user properties
 #16901 9dd5fe109 zvol: implement platform-independent part of block cloning
 #16909 54126fdb5 set zfs_arc_shrinker_limit to 0 by default
 #16912 25238baad Add missing zfs_exit() when snapdir is disabled
 #16918 478b09577 zfs_vnops_os.c: fallocate is valid but not supported
                  on FreeBSD
 #16921 c02e1cf05 vdev_open: clear async remove flag after reopen
 #16923 dc0324bfa fix: make zfs_strerror really thread-safe and portable

Obtained from:	OpenZFS
OpenZFS commit:	b8e09c7007
2025-01-11 10:13:41 +01:00
Martin Matuska 17aab35a77 zfs: merge openzfs/zfs@e0039c705
Notable upstream pull request merges:
 #16215 44446dccd During pool export flush the ARC asynchronously
 #16301 4b4e346b9 Add ability to scrub from last scrubbed txg
 #16755 0ffa6f346 zdb: show dedup table and log attributes
 #16801 1cd2419ec Fix race in libzfs_run_process_impl
 #16814 a01504b35 Improve speculative prefetcher for block cloning
 #16819 a44eaf169 Optimize RAIDZ expansion
 #16825 e8b333e4d Fix false assertion in dmu_tx_dirty_buf() on cloning
 #16829 6e3c109bc Fix regression in dmu_buf_will_fill()
 #16832 2507db612 zdb_il: use flex array member to access ZIL records
 #16834 0e020bf3e FreeBSD: Remove an incorrect assertion in zfs_getpages()
 #16836 c33a55b0c Allow dsl_deadlist_open() return errors

Obtained from:	OpenZFS
OpenZFS commit:	e0039c7057
2024-12-07 14:55:14 +01:00
Martin Matuska 718519f4ef zfs: merge openzfs/zfs@d0a91b9f8
Notable upstream pull request merges:
 #16643 -multiple Change rangelock handling in FreeBSD's zfs_getpages()
 #16697 46c4f2ce0 dsl_dataset: put IO-inducing frees on the pool deadlist
 #16740 -multiple BRT: Rework structures and locks to be per-vdev
 #16743 a60ed3822 L2ARC: Move different stats updates earlier
 #16758 8dc452d90 Fix some nits in zfs_getpages()
 #16759 534688948 Remove hash_elements_max accounting from DBUF and ARC
 #16766 9a81484e3 ZAP: Reduce leaf array and free chunks fragmentation
 #16773 457f8b76e BRT: More optimizations after per-vdev splitting
 #16782 0ca82c568 L2ARC: Stop rebuild before setting spa_final_txg
 #16785 d76d79fd2 zio: Avoid sleeping in the I/O path
 #16791 ae1d11882 BRT: Clear bv_entcount_dirty on destroy
 #16796 b3b0ce64d FreeBSD: Lock vnode in zfs_ioctl()
 #16797 d0a91b9f8 FreeBSD: Reduce copy_file_range() source lock to shared

Obtained from:	OpenZFS
OpenZFS commit:	d0a91b9f88
2024-11-24 10:04:51 +01:00
Martin Matuska 5c65a0a916 zfs: merge openzfs/zfs@1c9a4c8cb
Notable upstream pull request merges:
 #16244 acb6e71ed Added output to `zpool online` and `offline`
 #16684 94a03dd1e Pack dmu_buf_impl_t by 16 bytes
 #16690 6187b1943 On the first vdev open ignore impossible ashift hints
 #16692 673efbbf5 zdb: add extra -T flag to show histograms of BRT refcounts
 #16693 2bf152021 Fix gcc uninitialized warning in FreeBSD zio_crypt.c
 #16694 b16e09619 Reduce dirty records memory usage
 #16701 5945676bc ZFS send should use spill block prefetched from
                  send_reader_thread
 #16734 1c9a4c8cb Fix user properties output for zpool list

Obtained from:	OpenZFS
OpenZFS commit:	1c9a4c8cb4
2024-11-13 13:49:10 +01:00
Martin Matuska 6c40282284 libarchive: backport PR #2386 (fixes output of one test)
MFC after:	6 days
2024-10-21 14:37:09 +02:00
Martin Matuska 87bf66d4a7 zfs: merge openzfs/zfs@b2f6de7b5
Notable upstream pull request merges:
 #16598 b4e4cbeb2 Always validate checksums for Direct I/O reads
 #16603 cefef28e9 vdev_id: multi-lun disks & slot num zero pad
 #16613 ab777f436 Return boolean_t in inline functions of
                  lib/libspl/include/sys/uio.h
 #16616 efeb60b86 FreeBSD: ignore some includes when not building kernel
 #16617 ca0141f32 zpool/zfs: restore -V & --version options
 #16632 7bf525530 zpool/zfs: allow --json wherever -j is allowed
 #16635 7e4be9275 zdb: fix printf format in dump_zap()
 #16640 48dfe3974 Fallback to strerror() when strerror_l() isn't available
 #16650 38a04f0a7 freebsd: Use compiler.h from FreeBSD's base's linuxkpi
 #16664 fba6a9069 zfs_debug: Restore log size limit for userspace
 #16665 fba6a9069 Fix compile-time warnings caused by duplicate struct
                  typedefs
 #16667 b2f6de7b5 zdb: show bp in uberblock dump

Obtained from:	OpenZFS
OpenZFS commit:	b2f6de7b58
2024-10-20 21:26:56 +02:00
Martin Matuska bd66c1b43e libarchive: merge from vendor branch
Libarchive 3.7.7

Security fixes:
 #2158 rpm: calculate huge header sizes correctly
 #2160 util: fix out of boundary access in mktemp functions
 #2168 uu: stop processing if lines are too long
 #2174 lzop: prevent integer overflow
 #2172 rar4: protect copy_from_lzss_window_to_unp() (CVE-2024-20696)
 #2175 unzip: unify EOF handling
 #2179 rar4: fix out of boundary access with large files
 #2203 rar4: fix OOB access with unicode filenames
 #2210 rar4: add boundary checks to rgb filter
 #2248 rar4: fix OOB in delta filter
 #2249 rar4: fix OOB in audio filter
 #2256 fix multiple vulnerabilities identified by SAST
 #2258 cpio: ignore out-of-range gid/uid/size/ino and harden AFIO parsing
 #2265 rar5: clear 'data ready' cache on window buffer reallocs
 #2269 rar4: fix CVE-2024-26256 (CVE-2024-26256)
 #2330 iso: be more cautious about parsing ISO-9660 timestamps
 #2343 tar: clean up linkpath between entries
 #2364 tar: don't crash on truncated tar archives
 #2366 gzip: prevent a hang when processing a malformed gzip inside a gzip
 #2377 tar: fix two leaks in tar header parsing

Important bugfixes:
 #2096 rar5: report encrypted entries
 #2150 xar: fix another infinite loop and expat error handling
 #2173 shar: check strdup return value
 #2161 lha: fix integer truncation on 32-bit systems
 #2338 tar: fix memory leaks when processing symlinks or parsing pax headers
 #2245 7zip: fix issue when skipping first file in 7zip archive that
       is a multiple of 65536 bytes
 #2252 7-zip: read/write symlink paths as UTF-8
 #2259 rar5: don't try to read rediculously long names
 #2290 ar: fix archive entries having no type
 #2360 tar: fix truncation of entry pathnames in specific archives

CVE:		CVE-2024-20696, CVE-2024-26256
PR:		282047 (exp-run)
MFC after:	1 week
2024-10-20 10:24:02 +02:00
Martin Matuska eff4ff4791 Update vendor/libarchive to 3.7.7
Security fixes:
 #2364 tar: don't crash on truncated tar archives
 #2366 gzip: prevent a hang when processing a malformed gzip inside a gzip
 #2377 tar: fix two leaks in tar header parsing

Important bugfixes:
 #2096 rar5: report encrypted entries
 #2252 7-zip: read/write symlink paths as UTF-8
 #2360 tar: fix truncation of entry pathnames in specific archives

Obtained from:	libarchive
Vendor commit:	b439d586f53911c84be5e380445a8a259e19114c
2024-10-13 10:34:52 +02:00
Martin Matuška 7e4be92750 zdb: fix printf format in dump_zap()
When compiling zdb.c on 32-bit platforms, a format conversion error 
is reported for a printf() in dump_zap().  Change %l to macro 
%" PRIu64 " to match the platform size of a 64-bit unsigned integer.

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Martin Matuska <[email protected]>
Closes #16635
2024-10-11 09:55:17 -07:00
Martin Matuska 73c7cb57a4 depend-cleanup.sh: Add a rule to work around zfs arc_os.c dependency changes 2024-10-11 09:23:30 +02:00
Martin Matuska 7a7741af18 zfs: merge openzfs/zfs@b10992582
Notable upstream pull request merges:
 #9416  -multiple zio_compress: introduce max size threshold
 #10018 a10e552b9 Adding Direct IO Support
 #15147 e419a63bf xattr dataset prop: change defaults to sa
 #15454 7e957fde7 send/recv: open up additional stream feature flags
 #15810 0d77e738e Defer resilver only when progress is above a threshold
 #15921 3cf2bfa57 Allocate zap_attribute_t from kmem instead of stack
 #16483 -multiple dmu_objset: replace dnode_hash impl with cityhash4
 #16485 8be2f4c3d zio_resume: log when unsuspending the pool
 #16491 88433e640 sys/types32.h: Remove struct timeval32 from libspl header
 #16496 f245541e2 zfs_file: implement zfs_file_deallocate for FreeBSD 14
 #16511 308f7c2f1 Fix an uninitialized data access
 #16529 29c9e6c32 Fix handling of DNS names with '-' in them for sharenfs
 #16531 ddf5f34f0 Avoid fault diagnosis if multiple vdevs have errors
 #16539 6f50f8e16 zfs_log: add flex array fields to log record structs
 #16546 d40d40913 Evicting too many bytes from MFU metadata
 #16551 3014dcb76 Reduce and handle EAGAIN errors on AIO label reads
 #16554 80645d658 FreeBSD: restore zfs_znode_update_vfs()
 #16565 832f66b21 FreeBSD: Sync taskq_cancel_id() returns with Linux
 #16567 48d1be254 Properly release key in spa_keystore_dsl_key_hold_dd()
 #16569 141368a4b Restrict raidz faulted vdev count
 #16583 c84a37ae9 lua: add flex array field to TString type
 #16584 86737c592 Avoid computing strlen() inside loops
 #16587 d34d4f97a snapdir: add 'disabled' value to make .zfs inaccessible
 #16593 224393a32 feature: large_microzap
 #16597 412105977 Temporarily disable Direct IO by default
 #16605 4ebe674d9 ARC: Cache arc_c value during arc_evict()

Backported pull request merges:
 #16613 ab777f436 Return boolean_t in inline functions of
                  lib/libspl/include/sys/uio.h
 #16616 efeb60b86 FreeBSD: ignore some includes when not building kernel
 #16635 ---TBD--- zdb: fix printf format in dump_zap()

Obtained from:	OpenZFS
OpenZFS commit:	b109925820
OpenZFS tag:	2.3.0-rc1
2024-10-11 08:43:49 +02:00
Martin Matuška efeb60b86a FreeBSD: ignore some includes when not building kernel
The function abd_alloc_from_pages() is used only in kernel.
Excluding sys/vm.h, and vm/vm_page.h includes avoids dependency
problems.

Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Martin Matuska <[email protected]>
Closes #16616
2024-10-09 09:27:46 -07:00
Martin Matuška ab777f436c Return boolean_t in inline functions of lib/libspl/include/sys/uio.h
The inline functions zfs_dio_offset_aligned(), zfs_dio_size_aligned()
and zfs_dio_aligned() are declared as boolean_t but return the bool
type.

This fixes the build of FreeBSD.

Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Martin Matuska <[email protected]>
Closes #16613
2024-10-07 10:31:46 -07:00
Martin Matuska e6330bf497 Update vendor/libarchive to 3.7.6
Security fixes:
 #2330 iso: be more cautious about parsing ISO-9660 timestamps
 #2343 tar: clean up linkpath between entries

Important bugfixes:
 #2338 tar: fix memory leaks when processing symlinks or parsing pax headers

Obtained from:	libarchive
Vendor commit:	f0a0bc6b3046e34c9d6981f8c026da51fea12c89
2024-09-23 11:50:06 +02:00
Martin Matuska 2022efa030 Update vendor/libarchive to 3.7.5
Security fixes:
 #2158 rpm: calculate huge header sizes correctly
 #2160 util: fix out of boundary access in mktemp functions
 #2168 uu: stop processing if lines are too long
 #2174 lzop: prevent integer overflow
 #2172 rar4: protect copy_from_lzss_window_to_unp() (CVE-2024-20696)
 #2175 unzip: unify EOF handling
 #2179 rar4: fix out of boundary access with large files
 #2203 rar4: fix OOB access with unicode filenames
 #2210 rar4: add boundary checks to rgb filter
 #2248 rar4: fix OOB in delta filter
 #2249 rar4: fix OOB in audio filter
 #2256 fix multiple vulnerabilities identified by SAST
 #2258 cpio: ignore out-of-range gid/uid/size/ino and harden AFIO parsing
 #2265 rar5: clear 'data ready' cache on window buffer reallocs
 #2269 rar4: fix CVE-2024-26256 (CVE-2024-26256)

Important bugfixes:
 #2150 xar: fix another infinite loop and expat error handling
 #2173 shar: check strdup return value
 #2161 lha: fix integer truncation on 32-bit systems
 #2245 7zip: fix issue when skipping first file in 7zip archive that
       is a multiple of 65536 bytes
 #2259 rar5: don't try to read rediculously long names
 #2290 ar: fix archive entries having no type

Obtained from:	libarchive
Vendor commit: 	12ecf8418ab3595d66cdea1abadcea8b6a9d288b
CVE:		CVE-2024-20696, CVE-2024-26256
2024-09-14 11:48:57 +02:00
Martin Matuska e2df9bb441 zfs: merge openzfs/zfs@b10992582
Notable upstream pull request merges:
 #15892 -multiple Fast Dedup: Introduce the FDT on-disk format and feature flag
 #15893 -multiple Fast Dedup: “flat” DDT entry format
 #15895 -multiple Fast Dedup: FDT-log feature
 #16239 6be8bf555 zpool: Provide GUID to zpool-reguid(8) with -g
 #16277 -multiple Fast Dedup: prune unique entries
 #16316 5807de90a Fix null ptr deref when renaming a zvol with snaps and snapdev=visible
 #16343 77a797a38 Enable L2 cache of all (MRU+MFU) metadata but MFU data only
 #16446 83f359245 FreeBSD: fix build without kernel option MAC
 #16449 963e6c9f3 Fix incorrect error report on vdev attach/replace
 #16505 b10992582 spa_prop_get: require caller to supply output nvlist

Obtained from:	OpenZFS
OpenZFS commit:	b109925820
2024-09-09 18:13:02 +02:00
Martin Matuska 29dc934914 zfs: merge openzfs/zfs@d2ccc2155
Notable upstream pull request merges:
 #16431 244ea5c48 Add missing kstats to dataset kstats

Obtained from:	OpenZFS
OpenZFS commit: d2ccc21552
2024-08-15 13:30:31 +02:00
Martin Matuska ce4dcb97ca zfs: merge openzfs/zfs@9c56b8ec7
Notable upstream pull request merges:
 #15817 5536c0dee Sync AUX label during pool import
 #15889 c7ada64bb ddt: dedup table quota enforcement
 #15890 62e7d3c89 ddt: add support for prefetching tables into the ARC
 #15894 e26b3771e spa_preferred_class: pass the entire zio
 #15894 d54d0fff3 dnode: allow storage class to be overridden by object type
 #16197 55427add3 Several improvements to ARC shrinking
 #16217 -multiple JSON output for various zfs and zpool subcommands
 #16248 24e6585e7 libzfs.h: Set ZFS_MAXPROPLEN and ZPOOL_MAXPROPLEN
                  to ZAP_MAXVALUELEN
 #16264 9dfc5c4a0 Fix long_free_dirty accounting for small files
 #16268 ed0db1cc8 Make txg_wait_synced conditional in zfsvfs_teardown,
                  for FreeBSD
 #16288 d60debbf5 Fix sa_add_projid to lookup and update SA_ZPL_DXATTR
 #16308 ec580bc52 zfs: add bounds checking to zil_parse
 #16310 c21dc56ea Fix zdb_dump_block for little endian
 #16315 7ddc1f737 zil: add stats for commit failure/fallback
 #16326 b0bf14cdb abd: lift ABD zero scan from zio_compress_data()
                  to abd_cmp_zero()
 #16337 c8184d714 Block cloning conditionally destroy ARC buffer
 #16338 dbe07928b Add support for multiple lines to the sharenfs property
                  for FreeBSD
 #16374 1a3e32e6a Cleanup DB_DNODE() macros usage
 #16374 ed87d456e Skip dnode handles use when not needed
 #16346 fb6d8cf22 Add some missing vdev properties
 #16364 670147be5 zvol: ensure device minors are properly cleaned up
 #16382 dea8fabf7 FreeBSD: Fix RLIMIT_FSIZE handling for block cloning
 #16387 aef452f10 Improve zfs_blkptr_verify()
 #16395 cbcb52243 Fix the names of some FreeBSD sysctls in
                  include/tunables.cfg
 #16401 5b9f3b766 Soften pruning threshold on not evictable metadata
 #16404 cdd53fea1 FreeBSD: Add missing memory reclamation accounting
 #16404 1fdcb653b Once more refactor arc_summary output
 #16419 1f5bf91a8 Fix memory corruption during parallel zpool import
                  with -o cachefile
 #16426 cf6e8b218 zstream: remove duplicate highbit64 definition

Obtained from:	OpenZFS
OpenZFS commit:	9c56b8ec78
2024-08-10 11:43:43 +02:00
Martin Matuska 75e1fea68a zfs: merge openzfs/zfs@1147a2797
Notable upstream pull request merges:
 #16209 --multi-- icp: rip out everything we don't use
 #16230 20c8bdd85 FreeBSD: Update use of UMA-related symbols in
                  arc_available_memory
 #16242 121a2d335 FreeBSD: unregister mountroot eventhandler on unload
 #16258 5de3ac223 vdev_open: clear async fault flag after reopen
 #16270 436731276 zvol: Fix suspend lock leaks
 #16273 c87cb22ba head_errlog: fix use-after-free
 #16284 f72e081fb FreeBSD: Use a statement expression to implement
                  SET_ERROR()
 #16300 a10faf5ce FreeBSD: Use the new freeuio() helper to free dynamically
                  allocated UIOs
 #16302 a7fc4c85e zstd: don't call zstd_mempool_reap if there are no buffers
 #16334 dc91e7452 zdb: dump ZAP_FLAG_UINT64_KEY ZAPs properly

Obtained from:	OpenZFS
OpenZFS commit: 1147a27978
2024-07-18 10:02:12 +02:00
Martin Matuska aca928a50a zfs: merge openzfs/zfs@e2357561b
Notable upstream pull request merges:
 #15940 41ae864b6 Replace P2ALIGN with P2ALIGN_TYPED and delete P2ALIGN
 #16128 5137c132a zpool import output is not formated properly
 #16138 efbef9e6c FreeBSD: Add zfs_link_create() error handling
 #16146 04bae5ec9 Disable high priority ZIO threads on FreeBSD and Linux
 #16151 cc3869153 zfs_ioc_send: use a dedicated taskq thread for send
 #16151 adda768e3 spa: remove spa_taskq_dispatch_sync()
 #16151 515c4dd21 spa: flatten spa_taskq_dispatch_ent()
 #16151 0a543db37 spa_taskq_dispatch_ent: simplify arguments
 #16153 975a13259 Add support for parallel pool exports
 #16153 89acef992 Simplified the scope of the namespace lock
 #16159 136c05321 ZAP: Fix leaf references on zap_expand_leaf() errors
 #16162 af5dbed31 Fix scn_queue races on very old pools
 #16165 3400127a7 Fix ZIL clone records for legacy holes
 #16167 414acbd37 Unbreak FreeBSD cross-build on MacOS broken in 051460b8b
 #16172 eced2e2f1 libzfs: Fix mounting datasets under thread limit pressure
 #16178 b64afa41d Better control the thread pool size when mounting datasets
 #16181 fa99d9cd9 zfs_dbgmsg_print: make FreeBSD and Linux consistent
 #16191 e675852bc dbuf: separate refcount calls for dbuf and dbuf_user
 #16198 a043b60f1 Correct level handling in zstream recompress
 #16204 34906f8bb zap: reuse zap_leaf_t on dbuf reuse after shrink
 #16206 d0aa9dbcc Use memset to zero stack allocations containing unions
 #16207 8865dfbca Fix assertion in Persistent L2ARC
 #16208 08648cf0d Allow block cloning to be interrupted by a signal
 #16210 e2357561b FreeBSD: Add const qualifier to members of struct
        opensolaris_utsname
 #16214 800d59d57 Some improvements to metaslabs eviction
 #16216 02c5aa9b0 Destroy ARC buffer in case of fill error
 #16225 01c8efdd5 Simplify issig()

Obtained from:	OpenZFS
OpenZFS commit:	e2357561b9
2024-05-31 11:26:50 +02:00
Alex Samorukov f13275cf03 export $autoboot var when running from $boottrace_cmd
At the moment, if bootrace profiling is enabled, autoboot is not
exported to the rc scripts. This causes fsck to not check the root
filesystem.  To fix this, pass _boot, rc_fast and autoboot to the
boottrace process to mimic what diretly sourcing the rc.d scripts.

PR: 278993
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1261
2024-05-29 13:29:53 -06:00
Martin Matuška ae22044da9 spl: fix compilation without HAVE_BACKTRACE
The __maybe_unused macro is defined in spl/sys/debug.h

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Martin Matuska <[email protected]>
Closes #16229
2024-05-29 10:51:01 -07:00
Martin Matuška 414acbd37e Unbreak FreeBSD cross-build on MacOS broken in 051460b8b
MacOS used FreeBSD-compatible getprogname() and pthread_getname_np().
But pthread_getthreadid_np() does not exist on MacOS. This implements
libspl_gettid() using pthread_threadid_np() to get the thread id
of the current thread.

Tested with FreeBSD GitHub actions
freebsd-src/.github/workflows/cross-bootstrap-tools.yml

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Rob Norris <[email protected]>
Signed-off-by: Martin Matuska <[email protected]>
Closes #16167
2024-05-09 07:42:51 -07:00
Martin Matuska 3c1be0b261 zfs: unbreak macOS bootstrap
Temporary patch until vendor implements a fix.
2024-05-04 01:58:25 +02:00
Martin Matuska b985c9cafd zfs: merge openzfs/zfs@8f1b7a6fa
Notable upstream pull request merges:
 #15839 c3f2f1aa2 vdev probe to slow disk can stall mmp write checker
 #15888 5044c4e3f Fast Dedup: ZAP Shrinking
 #15996 db499e68f Overflowing refreservation is bad
 #16118 67d13998b Make more taskq parameters writable
 #16128 21bc066ec Fix updating the zvol_htable when renaming a zvol
 #16130 645b83307 Improve write issue taskqs utilization
 #16131 8fd3a5d02 Slightly improve dnode hash
 #16134 a6edc0adb zio: try to execute TYPE_NULL ZIOs on the current task
 #16141 b28461b7c Fix arcstats for FreeBSD after zfetch support

Obtained from:	OpenZFS
OpenZFS commit:	8f1b7a6fa6
2024-05-03 18:05:08 +02:00
Martin Matuska c0b58e65de libarchive: merge bugfixes from vendor branch
#2147 archive_string: clean up strncat_from_utf8_to_utf8 (36047967a)
 #2153 archive_match: check archive_read_support_format_raw()
       return value (0ce1b4c38)
 #2154 archive_match: turn counter into flag (287e05d53)
 #2155 lha: Do not allow negative file sizes (93b11caed)
 #2156 tests: setenv LANG to en_US.UTF-8 in bsdunzip test_I.c (83e8b0ea8)

MFC after:	3 days
2024-04-30 11:55:01 +02:00
Martin Matuska ed3e988642 Update vendor/libarchive to libarchive master 83e8b0ea8
#2147 archive_string: clean up strncat_from_utf8_to_utf8 (36047967a)
 #2153 archive_match: check archive_read_support_format_raw()
       return value (0ce1b4c38)
 #2154 archive_match: turn counter into flag (287e05d53)
 #2155 lha: Do not allow negative file sizes (93b11caed)
 #2156 tests: setenv LANG to en_US.UTF-8 in bsdunzip test_I.c (83e8b0ea8)

Obtained from:		libarchive
Libarchive commit:	83e8b0ea8c3b07e07ac3dee90a8724565f8e53fd
2024-04-30 11:49:58 +02:00
Martin Matuska 13d826ff94 libarchive: merge from vendor branch
Libarchive 3.7.4 + three fixes from master

Security fixes:
 #2135 rar: Fix OOB in rar e8 filter (CVE-2024-26256)
 #2145 zip: Fix out of boundary access
 #2148 rar: Fix OOB in rar delta filter
 #2149 rar: Fix OOB in rar audio filter

Important bugfixes:
 #2131 7zip: Limit amount of properties
 #2110 bsdtar: Fix error handling around strtol() usages
 #2116 passphrase: Never allow empty passwords
 #2124 rar: Fix "File CRC Error" when extracting specific rar4 archives
 #2123 xar: Avoid infinite link loop
 #2150 xar: Fix another infinite loop and expat error handling
 #2108 zip: Update AppleDouble support for directories
 #2071 zstd: Implement core detectiongit

PR:		278588 (exp-run)
MFC after:	1 day
2024-04-29 10:17:53 +02:00
Martin Matuska 51c823ac27 Cherry-pick commits from libarchive to vendor/libarchive
#2148 fix: OOB in rar delta filter (a1cb648d5)
 #2149 fix: OOB in rar audio filter (3006bc5d0)
 #2150 xar: Fix another infinite loop and expat error handling (b910cb70d)

Obtained from:		libarchive
Libarchive commits:	b910cb70d4c1b311c9d85cd536a6c91647c43df7
			a1cb648d52f5b6d3f31184d9b6a7cbca628459b7
			3006bc5d02ad3ae3c4f9274f60c1f9d2d834734b
2024-04-29 09:23:21 +02:00
Martin Matuska d6f77d3cfa Update vendor/libarchive to 3.7.4
Security fixes:
 #2135 rar: Fix OOB in rar e8 filter (CVE-2024-26256)
 #2145 zip: Fix out of boundary access

Important bugfixes:
 #2131 7zip: Limit amount of properties
 #2110 bsdtar: Fix error handling around strtol() usages
 #2116 passphrase: Never allow empty passwords
 #2124 rar: Fix "File CRC Error" when extracting specific rar4 archives
 #2123 xar: Avoid infinite link loop
 #2108 zip: Update AppleDouble support for directories
 #2071 zstd: Implement core detection

Obained from:		libarchive
Libarchive commit:	313aa1fa10b657de791e3202c168a6c833bc3543
2024-04-26 12:11:59 +02:00
Martin Matuska 0d4ad64077 zfs: merge openzfs/zfs@1f940de07
Notable upstream pull request merges:
 #16038 1f940de07 L2ARC: Cleanup buffer re-compression
 #16093 c183d164a Parallel pool import
 #16094 cd3e6b4f4 Add zfetch stats in arcstats
 #16103 35bf25848 Fix: FreeBSD Arm64 does not build currently
 #16104 4036b8d02 Refactor dbuf_read() for safer decryption
 #16110 9f83eec03 Handle FLUSH errors as "expected"
 #16117 c346068e5 zfs get: add '-t fs' and '-t vol' options

Obtained from:  OpenZFS
OpenZFS commit: 1f940de072
2024-04-23 23:59:18 +02:00
Martin Matuska 7d03ec3306 libarchive: add two missing package files to libarchive tests
MFC after:	1 week
2024-04-17 09:58:32 +02:00
Martin Matuska 701d0666c0 libarchive: fix null format string error in tests (unbreaks gcc13 build)
Obtained from:	libarchive (d43c39247)
MFC after:	1 week
2024-04-17 09:37:04 +02:00