FreeNAS/freenas 035c56bsrc/middlewared/middlewared/pytest/unit/plugins test_libvirt_device_uniqueness.py, src/middlewared/middlewared/utils/libvirt utils.py

Fix FILESYSTEM duplicate-target check for path variants

(cherry picked from commit 84f1e9d0802bbb4236015b7ac4240916dcf17915)
DeltaFile
+28-0src/middlewared/middlewared/pytest/unit/plugins/test_libvirt_device_uniqueness.py
+4-1src/middlewared/middlewared/utils/libvirt/utils.py
+32-12 files

FreeNAS/freenas 5307933src/middlewared/middlewared/pytest/unit/plugins test_libvirt_device_uniqueness.py, src/middlewared/middlewared/utils/libvirt utils.py

NAS-141089 / 27.0.0-BETA.1 / Fix FILESYSTEM duplicate-target check for path variants (#18969)

## Problem

The container `FILESYSTEM` device uniqueness check compares the `target`
field as a raw string. As a result, paths that differ only by trivial
formatting differences—such as trailing slashes, duplicate slashes, or
`./` segments—are treated as distinct values.

This allows multiple `FILESYSTEM` devices to be added with effectively
the same mount target (e.g. `/mnt/tank` and `/mnt/tank/`), bypassing
duplicate-target validation in `FilesystemDelegate.validate_middleware`.

## Solution

Canonicalize filesystem targets using `os.path.normpath` before
returning them from `_extract_identity`, ensuring equivalent paths
resolve to the same identity.

Also preserve the existing `str | None` contract by guarding against
missing or empty target values.
DeltaFile
+28-0src/middlewared/middlewared/pytest/unit/plugins/test_libvirt_device_uniqueness.py
+4-1src/middlewared/middlewared/utils/libvirt/utils.py
+32-12 files

FreeNAS/freenas 743221btests/api2/zfs_tier conftest.py test_jobs_extended.py

Fix test framework
DeltaFile
+9-1tests/api2/zfs_tier/conftest.py
+3-5tests/api2/zfs_tier/test_jobs_extended.py
+1-3tests/api2/zfs_tier/test_set_tier_errors.py
+1-3tests/api2/zfs_tier/test_smoke.py
+14-124 files

LLVM/project 213b329llvm/lib/Target/AMDGPU GCNSubtarget.h AMDGPUAsmPrinter.cpp, llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp

[AMDGPU][NFCI] Change MCSubtargetInfo references in AMDGPUBaseInfo.h/.cpp to be const ref instead of pointers (#197038)

Change all `AMDGPU::IsaInfo` functions and `initDefaultAMDKernelCodeT`
to take `const MCSubtargetInfo &` instead of `const MCSubtargetInfo *`.
These functions never accept null, so a reference better expresses the
contract.

Also change `AMDGPUMCKernelCodeT::initDefault` to take a const reference
for consistency, and convert local `MCSubtargetInfo` pointer variables
to references in `AMDGPUMCExpr.cpp` where the pointer is always
dereferenced.

Requested by @arsenm in
https://github.com/llvm/llvm-project/pull/192306#discussion_r2076113671.

Co-authored-by: Claude Opus 4 (1M context) <noreply at anthropic.com>
DeltaFile
+72-72llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+30-30llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
+17-17llvm/lib/Target/AMDGPU/GCNSubtarget.h
+8-8llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+5-6llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+4-5llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
+136-1388 files not shown
+153-15514 files

LLVM/project 94b1d19llvm/lib/Transforms/Utils Local.cpp, llvm/test/DebugInfo/Generic dbg-value-lower-linenos.ll

[Utils] Examine debug info type instead of alloca type to guess the debug behavior of the alloca uses (#177480)

Replace `isArray` and `isStructure` helpers that queried alloca IR type
with a `isCompositeType` helper that checks the debug variable's
source-level type from debug info metadata to decide if this seems
perhaps profitable to convert to this debug info from #debug_declare to
a #debug_value.

This changes behavior: the lowering decision is now based on the
source-level type from debug info rather than the IR alloca type, which
is more semantically correct for debug info processing. This should
have minimal effect on clang, but may change behavior more
significantly on front-ends like rust that have not used semantically
meaningful alloca element types.

Removes all uses of getAllocatedType() from Utils/Local.cpp.

This seemed slightly more semantically correct to me, though it is
slightly challenging to enumerate all of the possible scalar debug

    [7 lines not shown]
DeltaFile
+35-9llvm/lib/Transforms/Utils/Local.cpp
+4-3llvm/test/DebugInfo/Generic/dbg-value-lower-linenos.ll
+2-2llvm/test/Transforms/InstCombine/dbg-simplify-alloca-size.ll
+1-1llvm/test/Transforms/InstCombine/dbg-scalable-store-fixed-frag.ll
+42-154 files

LLVM/project 7d6ed54llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer alternate-non-profitable.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+74-48llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+24-24llvm/test/Transforms/SLPVectorizer/RISCV/buildvector-all-external-scalars.ll
+6-6llvm/test/Transforms/SLPVectorizer/X86/pr48879-sroa.ll
+4-4llvm/test/Transforms/SLPVectorizer/X86/vect_copyable_in_binops.ll
+3-3llvm/test/Transforms/SLPVectorizer/X86/copyable_reorder.ll
+3-3llvm/test/Transforms/SLPVectorizer/alternate-non-profitable.ll
+114-8815 files not shown
+135-10921 files

LLVM/project b7cc800llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize select-cmp-predicated.ll

[VPlan] Simplify select x, (i1 y | z), y -> y | (x && z) (#190196)

Fixes https://github.com/llvm/llvm-project/issues/189553

This adds a canonicalization `select x, (i1 y | z), y -> y | (x && z)`,
[Alive2]( https://alive2.llvm.org/ce/z/qcQRn6). InstCombine already
performs this.

This adds a canonicalization which causes the `lhs | (headermask && rhs)
-> vp.merge rhs, true, lhs, evl` pattern in optimizeMasksToEVL to match,
improving the RISC-V codegen for an anyof select reduction.
DeltaFile
+7-7llvm/test/Transforms/LoopVectorize/select-cmp-predicated.ll
+9-0llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+2-3llvm/test/Transforms/LoopVectorize/RISCV/select-cmp-reduction.ll
+2-2llvm/test/Transforms/LoopVectorize/AArch64/sve-select-cmp.ll
+20-124 files

FreeBSD/src de69cf1sys/netinet tcp_subr.c

tcp: cleanup

No functional change intended.

Reviewed by:            pouria, rrs, Timo Völker
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D55415

(cherry picked from commit c984c7593e11aa95f21f79bb5425a9d5e9181945)
DeltaFile
+12-12sys/netinet/tcp_subr.c
+12-121 files

FreeBSD/src ede0f15sys/netinet tcp_subr.c

tcp: improve validation of received TCP over UDP packets

Reviewed by:            glebius, pouria
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D55410

(cherry picked from commit e1886559ea477add82a0a86cddf728f6778f1603)
DeltaFile
+17-5sys/netinet/tcp_subr.c
+17-51 files

NetBSD/pkgsrc-wip e06b730kdsingleapplication Makefile PLIST

kdsingleapplication: removed; imported into base
DeltaFile
+0-21kdsingleapplication/Makefile
+0-19kdsingleapplication/PLIST
+0-13kdsingleapplication/buildlink3.mk
+0-5kdsingleapplication/distinfo
+0-4kdsingleapplication/DESCR
+0-3kdsingleapplication/COMMIT_MSG
+0-652 files not shown
+1-678 files

FreeBSD/src 9958d0fshare/misc bsd-family-tree

bsd-family-tree: add OpenBSD 7.9
DeltaFile
+2-0share/misc/bsd-family-tree
+2-01 files

LLVM/project 29f345ellvm/lib/Target/AArch64 AArch64ISelLowering.cpp AArch64Arm64ECCallLowering.cpp, llvm/test/CodeGen/AArch64 arm64ec-exit-thunks.ll arm64ec-hybrid-patchable.ll

Revert "[AArch64] Copy x4/x5 vararg payload into the x64 stack in Arm64EC exi…"

This reverts commit e6a12781bcc2d1713f9e5593de36f68cc00aaab6.
DeltaFile
+6-208llvm/test/CodeGen/AArch64/arm64ec-exit-thunks.ll
+4-62llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+9-11llvm/test/CodeGen/AArch64/arm64ec-hybrid-patchable.ll
+1-9llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp
+20-2904 files

OPNSense/core c5f2af1src/www interfaces.php

interfaces: add prefix range option for Kea dynamic PD

This extends the prefix ID selection to be able to reserve a
range of IDs in order to automatically hand them out via Kea.

The accepted value is between 1 and the end of the PD ID range
and also validates against other IDs and their ranges.

This approach differs from the old ISC DHCPv6 in that we can
make room for delegation to avoid later surprises.  It might
force a user to reshuffle his ID range, but Kea wants a IA-NA
subnet that is within the pool reserved here.
DeltaFile
+47-2src/www/interfaces.php
+47-21 files

OPNSense/core 82a340esrc/www interfaces.php

interfaces: fix two PHP warnings
DeltaFile
+2-2src/www/interfaces.php
+2-21 files

FreeNAS/freenas 663f68atests/api2 test_300_nfs.py test_200_ftp.py

Remove tests
DeltaFile
+0-2,127tests/api2/test_300_nfs.py
+0-1,411tests/api2/test_200_ftp.py
+0-701tests/api2/test_011_user.py
+0-616tests/api2/test_container.py
+0-589tests/api2/test_service_announcement.py
+0-565tests/api2/test_audit_websocket.py
+0-6,009258 files not shown
+0-33,234264 files

FreeNAS/freenas 06b78b9tests/api2 test_zfs_tier.py, tests/api2/zfs_tier test_smoke.py test_dataset_validation.py

Expand tests
DeltaFile
+389-0tests/unit/test_zfs_tier_api_models.py
+0-375tests/api2/test_zfs_tier.py
+317-0tests/api2/zfs_tier/test_smoke.py
+313-0tests/unit/test_zfs_tier_helpers.py
+286-0tests/api2/zfs_tier/test_dataset_validation.py
+260-0tests/api2/zfs_tier/test_jobs_extended.py
+1,565-3755 files not shown
+2,443-37511 files

FreeBSD/src eeffed5tests/sys/netinet Makefile

tests/if_carp: Run all tests with execenv=jail

Otherwise failures can occur when running tests in parallel since some
tests reuse jail names.

MFC after:      1 week
DeltaFile
+2-0tests/sys/netinet/Makefile
+2-01 files

FreeBSD/ports e156f11multimedia/totem distinfo Makefile, multimedia/totem/files patch-mr373

multimedia/totem: port plugins to libsoup-2

https://gitlab.gnome.org/GNOME/totem/-/merge_requests/373
as one unified diff, as some affected files do not exist in the tarball

Also pull in some commits for functionality and to allow the unified
diff to apply:
- preferences: Modernise preferences UI
- preferences: Allow to disable hardware acceleration
- plugins: Remove support for configurable plugins
- plugins: Simplify TOTEM_PLUGIN_REGISTER() macro
- preferences: Move the plugins settings
- preferences: Simplify video widget refcounting
- skipto: Remove skipto plugin
- main: Document digits 1 through 9 skipping 10% to 90%
- opensubtitles: Use GResource for loading UI file
- opensubtitles: Move treeview columns creation to GtkBuilder
- opensubtitles: Use GtkComboBoxText instead GtkComboBox
- opensubtitles: Move GtkTreeModelSort to GtkBuilder

    [3 lines not shown]
DeltaFile
+1,022-0multimedia/totem/files/patch-mr373
+27-1multimedia/totem/distinfo
+18-5multimedia/totem/Makefile
+2-3multimedia/totem/pkg-plist
+1,069-94 files

FreeBSD/doc fdab2c3documentation/content/en/articles/x86-assembly _index.po, documentation/content/en/books/developers-handbook partiv.po

x86-assembly: generate/update .po files

Following the move of this chapter to a separate article.

I ran `tools/update_translate_template.sh` and discarded the irrelevant
changes.

Discussed with: ziaee, carlavilla
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56430
DeltaFile
+0-8,119documentation/content/en/books/developers-handbook/x86/_index.po
+8,076-0documentation/content/en/articles/x86-assembly/_index.po
+3-3documentation/content/en/books/developers-handbook/partiv.po
+8,079-8,1223 files

FreeBSD/doc d2fc711documentation/content/en/articles/x86-assembly _index.adoc

x86-assembly: fix broken links

 - For pages on the author's website (no longer active), use archive.org links
 - For the textbook referenced, just give the title
 - Use the 'link' macro everywhere

Reviewed by:    0mp, emaste (previous version)
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D45963
DeltaFile
+7-5documentation/content/en/articles/x86-assembly/_index.adoc
+7-51 files

LLVM/project 581dd5bflang/lib/Optimizer/HLFIR/Transforms InlineHLFIRAssign.cpp, flang/test/Driver mlir-pass-pipeline.f90

[flang] Inline scalar-to-array hlfir.assign at -O0 (#197092)

At `-O0`, Flang can lower trivial scalar-to-array broadcasts such as `c
= a(1) + 1.0` through `_FortranAAssign`. That runtime path can call
`free()`, which is not valid in OpenMP GPU device code.

This patch teaches `InlineHLFIRAssign` to handle trivial scalar RHS
values. At `-O0`, the pipeline runs it in a scalar-RHS-only mode, so
only scalar-to-array broadcasts are inlined. Array-to-array assignments
still fall back to `_FortranAAssign` at `-O0`.

Scalar RHS values are materialized before the generated loop with
`loadTrivialScalar`, preserving intrinsic assignment ordering for cases
like `a = a(1)`. At `O1+`, the full `InlineHLFIRAssign` pass still runs
as before, now also supporting scalar RHS.

The remaining files are test updates from scalar-to-array assignments
now being inlined at `-O0` instead of lowering through
`_FortranAAssign`.

    [5 lines not shown]
DeltaFile
+86-42flang/test/Integration/OpenMP/parallel-private-reduction-worstcase.f90
+52-0flang/test/HLFIR/inline-hlfir-assign.fir
+27-13flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRAssign.cpp
+13-26flang/test/Integration/OpenMP/private-global.f90
+7-2flang/test/Driver/mlir-pass-pipeline.f90
+7-1flang/test/Lower/OpenMP/workdistribute-saxpy-and-scalar-assign.f90
+192-845 files not shown
+216-8711 files

FreeBSD/doc 204da0adocumentation/content/de/articles/x86-assembly _index.adoc, documentation/content/en/articles/x86-assembly _index.adoc

x86-assembly: update the article a bit

Minor tweaks for consistency/readability. Actual content is not touched.

 - Replace references to "chapter" with "article".
 - Add a NOTE of the historical nature of the document.
 - Clarify assemblers available on FreeBSD.
 - List the trademarks used in the article, and reduce the (R) symbol
   usage. Per the Doc Primer, it only needs to be emitted with the first
   usage of the trademark.
 - Add more tags for SEO

Reviewed by:    0mp, emaste (previous version)
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D45962
DeltaFile
+98-116documentation/content/en/articles/x86-assembly/_index.adoc
+1-1documentation/content/de/articles/x86-assembly/_index.adoc
+1-1documentation/content/ru/articles/x86-assembly/_index.adoc
+100-1183 files

FreeBSD/doc 936011ddocumentation/content/de/articles/x86-assembly _index.adoc, documentation/content/de/books/developers-handbook/x86 _index.adoc

dev-handbook: Split x86 assembly chapter into new article

The content of this chapter is niche, and has not been significantly
altered since its initial authorship in 2001. Still, it contains highly
detailed information that is still accurate on a largely
undocumented/esoteric topic. Therefore, it is worth preserving.

Move this to a standalone article. This allows us to continue publishing
it while removing any expectation that the text should evolve or stay
up-to-date.

Discussed with: ziaee, carlavilla
Reviewed by:    emaste (previous version)
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D45961
DeltaFile
+0-4,311documentation/content/en/books/developers-handbook/x86/_index.adoc
+4,303-0documentation/content/en/articles/x86-assembly/_index.adoc
+0-3,894documentation/content/de/books/developers-handbook/x86/_index.adoc
+3,889-0documentation/content/de/articles/x86-assembly/_index.adoc
+0-3,875documentation/content/zh-tw/books/developers-handbook/x86/_index.adoc
+3,870-0documentation/content/zh-tw/articles/x86-assembly/_index.adoc
+12,062-12,08015 files not shown
+15,937-16,05921 files

LLVM/project ed81c50lldb/source/Plugins/Process/Windows/Common NativeProcessWindows.cpp

[lldb][windows] Fix second-chance exception delivery on lldb-server (#197956)

Currently, all tests that wait for the debugger to stop when the process
crashes time out on Windows under `LLDB_USE_LLDB_SERVER=1` because of 2
issues:

1. The `if (!first_chance) SetState(eStateStopped, false)` before the
switch silently advances `m_state` on every second-chance event. The
`default:` branch later calls `SetState(eStateStopped, true)` but this
is never reached because `state == m_state`. The client is waiting for a
reply that is never sent.

2. The `default:` branch's first-chance handling stops all threads and
then returns `SendToApplication`, which tells Windows
`DBG_EXCEPTION_NOT_HANDLED`. This hangs the process, the second-chance
event never arrives. `ProcessWindows` is a no-op on first-chance
non-breakpoint exceptions because of this: it just returns
`ExceptionResult::SendToApplication` with no `StopThread/SetState`.


    [11 lines not shown]
DeltaFile
+4-9lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp
+4-91 files

LLVM/project 6938554llvm/utils/gn/secondary/libcxx/include BUILD.gn

[gn] port 182ae96a82fc (#198533)
DeltaFile
+1-2llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+1-21 files

FreeBSD/src 8e44312lib/libufs libufs.h inode.c

libufs: Avoid using param.h constants in libufs.h

MAXBSIZE is defined in param.h, which defines many other things.  To
avoid forcing all consumers of libufs.h to include param.h, let's
instead redefine it and verify the definition in inode.c.

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56859

(cherry picked from commit 271d25a066b59df1e2bb774990948c985382126a)
DeltaFile
+5-2lib/libufs/libufs.h
+3-0lib/libufs/inode.c
+8-22 files

FreeBSD/src e2053eesbin/fsck_ffs fsck.h gjournal.c

fsck_ffs: Avoid relying on param.h pollution from libufs.h

- gjournal.c needs param.h to get a definition of isclr().
- fsck.h needs signal.h for sig_atomic_t.

Sort includes while here.

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56858

(cherry picked from commit 3cd3900b690d8296094921cec844da3f72d30cbb)
DeltaFile
+6-5sbin/fsck_ffs/fsck.h
+2-2sbin/fsck_ffs/gjournal.c
+8-72 files

FreeBSD/src 951e271lib/libutil quotafile.c

libutil: Include param.h in quotafile.c

Required for MAXPATHLEN.

MFC after:      1 week

(cherry picked from commit 237900f17f091d059a3ead6a5320285654f4bfa0)
DeltaFile
+1-1lib/libutil/quotafile.c
+1-11 files

FreeBSD/src 919d220sys/sys _cpuset.h cpuset.h

cpuset: Move userspace declarations out of _cpuset.h

The _*.h headers are for structure definitions and should avoid
dependencies on other headers.  This convention is violated by using
__BEGIN_DECLS/__END_DECLS.

Move the declarations to cpuset.h, I see no reason they can't be there.

Reviewed by:    olce, brooks, kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56856

(cherry picked from commit 8b4b995effb7911cc13706dc309d5e03c83b9a94)
DeltaFile
+0-7sys/sys/_cpuset.h
+6-1sys/sys/cpuset.h
+6-82 files

FreeBSD/src 3fa3e36sys/kern subr_vmem.c

vmem: Include param.h in the userspace port as well

It is required at least for NBBY.

MFC after:      1 week

(cherry picked from commit fab4acbb7db8ffc7082d1b60b3c8e446a7cfef90)
DeltaFile
+1-1sys/kern/subr_vmem.c
+1-11 files