LLVM/project 0b44c51llvm/lib/CodeGen/SelectionDAG LegalizeIntegerTypes.cpp, llvm/test/CodeGen/AArch64 sve-vector-interleave-legalize.ll

[SDAG] Handle widened operands for scalable PromoteIntRes_CONCAT_VECTORS (#224274)
DeltaFile
+135-0llvm/test/CodeGen/AArch64/sve-vector-interleave-legalize.ll
+17-27llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+152-272 files

LLVM/project 0de53b0llvm/lib/Target/LoongArch LoongArchMemoryBarrierOpt.cpp, llvm/test/CodeGen/LoongArch memory-barrier-opt.ll

[LoongArch] Drop asm part from memory barrier optimization pass (#223656)

Drop the inline asm part from #218597, which violates inline assembly
semantics.
DeltaFile
+74-724llvm/test/CodeGen/LoongArch/memory-barrier-opt.ll
+4-142llvm/lib/Target/LoongArch/LoongArchMemoryBarrierOpt.cpp
+78-8662 files

FreeNAS/freenas 5c2d636src/middlewared/middlewared/api/base/types string.py, src/middlewared/middlewared/api/v26_0_0 vm.py

Fix VM and container duplicate-UUID check for spelling variants

## Problem
`UUIDv4String` did neither thing its name implies. `uuid.UUID(value, version=4)` overwrites the version and variant bits on a throwaway object rather than asserting them, so a v1, v5, v6, v7 or the nil UUID all passed; and the validator returned the caller's original string, so the braced, `urn:uuid:`, uppercase and unhyphenated spellings of one UUID were each stored verbatim.

That made the create-time uniqueness check compare presentation instead of identity — it is a datastore filter, so SQL `=` against a BINARY-collated column — and two rows spelling one UUID differently both got in. Since the uuid is written to both `<name>` and `<uuid>` of the libvirt domain XML and `defineXML` only happens at start, nothing went wrong until the second VM was started, at which point libvirt refused it while quoting the first VM's uuid. `uuid` is immutable after creation, so that row cannot be repaired in place.

## Solution
- **Real version check.** `uuidv4_validator` now parses without `version=` and rejects anything whose `.version` is not 4. The nil and max UUIDs report `None` there, so they are rejected too, and the "not a valid UUID" and "not version 4" cases now report separately instead of sharing one misleading message.
- **A permissive `UUIDString` for the entry models.** The version was never actually enforced in any shipped release, so non-v4 uuids exist in the field. The entry models are what `query` validates stored rows against, and a row that fails there is dropped from the result rather than reported, so tightening them would make those VMs disappear. Strict type on create, permissive type on read. `v26_0_0/vm.py` needed a `VMCreate.uuid` override added, as it was the one model inheriting the annotation from its entry.
- **Compare uuids by value.** New `same_uuid()` in `middlewared/utils/libvirt/utils.py`, used by both `validate()` methods in place of the datastore filter. This cannot be pushed into SQL — a case-insensitive collation still would not equate the unhyphenated form with the hyphenated one — so it reads the rows and folds over them, which is fine at these tables' size.

Deliberately not included: normalising the stored value. Rewriting it renames a libvirt domain out from under a possibly running guest and invalidates the pid and runtime paths derived from it, and once the comparison is by value a non-canonical row stays self-consistent anyway.
DeltaFile
+75-0src/middlewared/middlewared/pytest/unit/api/base/types/test_uuid_string.py
+16-3src/middlewared/middlewared/api/base/types/string.py
+10-0src/middlewared/middlewared/utils/libvirt/utils.py
+3-5src/middlewared/middlewared/plugins/vm/crud.py
+3-5src/middlewared/middlewared/plugins/container/crud.py
+3-1src/middlewared/middlewared/api/v26_0_0/vm.py
+110-143 files not shown
+116-179 files

LLVM/project fbc2226llvm/include/llvm/CodeGen TargetInstrInfo.h, llvm/lib/CodeGen MachineVerifier.cpp

CodeGen: Pass instruction and operand index to isPCRelRegisterOperandLegal (#219420)

Replace the MachineOperand argument to the
TargetInstrInfo::isPCRelRegisterOperandLegal hook with the containing
instruction and operand index. The M68k implementation only used the
operand
to recover its parent instruction and operand number, so this drops the
dependence on MachineOperand::getParent().

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
DeltaFile
+8-10llvm/lib/Target/M68k/M68kInstrInfo.cpp
+5-3llvm/include/llvm/CodeGen/TargetInstrInfo.h
+2-1llvm/lib/Target/M68k/M68kInstrInfo.h
+1-1llvm/lib/CodeGen/MachineVerifier.cpp
+16-154 files

LLVM/project 04865d4llvm/lib/Target/M68k M68kInstrData.td, llvm/test/CodeGen/M68k inline-asm.ll

[M68k] Add Imm source for MOVE to CCR/SR (#207590)

closes #165077, just adds the imm addressing mode to MOVE to SR/CCR
DeltaFile
+16-0llvm/test/CodeGen/M68k/inline-asm.ll
+2-2llvm/lib/Target/M68k/M68kInstrData.td
+4-0llvm/test/MC/M68k/Data/Classes/MxMoveSR.s
+4-0llvm/test/MC/M68k/Data/Classes/MxMoveCCR.s
+26-24 files

LLVM/project dc1522bflang/test/Semantics/OpenMP requires09.f90 requires08.f90

[flang][OpenMP] Add -fopenmp-version flag to several tests

The default OpenMP version in flang is 3.1. A number of tests use features
added in later versions. They currently pass because the version validity
is not enforced in many cases. Set the OpenMP version explicitly to avoid
failures when the checks become more strict.
DeltaFile
+1-1flang/test/Semantics/OpenMP/requires09.f90
+1-1flang/test/Semantics/OpenMP/requires08.f90
+1-1flang/test/Semantics/OpenMP/requires07.f90
+1-1flang/test/Semantics/OpenMP/requires06.f90
+1-1flang/test/Semantics/OpenMP/requires03.f90
+1-1flang/test/Semantics/OpenMP/requires02.f90
+6-613 files not shown
+19-1919 files

NetBSD/src fw1CY4tsys/external/bsd/drm2/dist/drm/i915/gem i915_gem_pages.c

   i915: Fix null pointer deref in i915_gem_object_get_dma_address.

   Matches the Linux code in the #else this way.

   PR kern/60755: i915drmkms crashes on Intel Bay Trail GPU making the
   machine rebooting
VersionDeltaFile
1.8+4-3sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_pages.c
+4-31 files

LLVM/project e11e18dllvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/AArch64 externally-used-copyables.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+127-71llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+110-19llvm/test/Transforms/SLPVectorizer/AMDGPU/elementwise-fma-operand1.ll
+26-10llvm/test/Transforms/SLPVectorizer/SystemZ/non-power-2-subvector-extract.ll
+7-6llvm/test/Transforms/SLPVectorizer/AArch64/externally-used-copyables.ll
+8-4llvm/test/Transforms/SLPVectorizer/RISCV/strided-loads-with-external-indices.ll
+5-5llvm/test/Transforms/SLPVectorizer/RISCV/non-commutative-second-arg-only-copyable.ll
+283-1153 files not shown
+290-1229 files

LLVM/project 1e469c7llvm/lib/Target/RISCV RISCVInstrInfoXCV.td, llvm/test/MC/RISCV/corev XCVsimd-invalid.s XCVsimd.s

[RISCV] Fix immediate operand ranges for XCVsimd instructions (#224876)

See link:

-
https://docs.openhwgroup.org/projects/cv32e40p-user-manual/en/latest/instruction_set_extensions.html#simd-bit-manipulation-operations
-
https://docs.openhwgroup.org/projects/cv32e40p-user-manual/en/latest/instruction_set_extensions.html#simd-shuffle-and-pack-operations
DeltaFile
+63-64llvm/test/MC/RISCV/corev/XCVsimd.s
+35-36llvm/test/MC/RISCV/corev/XCVsimd-invalid.s
+14-7llvm/lib/Target/RISCV/RISCVInstrInfoXCV.td
+112-1073 files

FreeBSD/ports 6dbbf99net/netatalk4 Makefile pkg-install

net/netatalk4: Remove the pkg-install file

This is no longer needed.  The base distro takes care of installing the
README in the CNID subdirectory.

PR:             298659
Spotted by:     eduardo
DeltaFile
+0-14net/netatalk4/pkg-install
+1-1net/netatalk4/Makefile
+1-152 files

NetBSD/src ZNbkV3Dsys/compat/linux/common linux_inotify.c

   compat_linux inotify(2): Re-check number of entries in loop.

   Might have changed between two calls to inotify_readdir.

   XXX Should maybe not do two calls to inotify_readdir!  Can we hold
   the vnode lock or use a fixed temporary buffer size or something?

   PR kern/60756: compat_linux inotify(2): TOCTOU and locking shenanigans
VersionDeltaFile
1.11+3-3sys/compat/linux/common/linux_inotify.c
+3-31 files

NetBSD/src MIa8XSxsys/compat/linux/common linux_inotify.c

   compat_linux inotify(2): strcpy -> strlcpy

   PR kern/60756: compat_linux inotify(2): TOCTOU and locking shenanigans
VersionDeltaFile
1.10+10-5sys/compat/linux/common/linux_inotify.c
+10-51 files

NetBSD/src E1MS3NRsys/compat/ultrix ultrix_misc.c

   compat_ultrix: Fix shmat/shmdt confusion.

   Also omit needless initializer while here, which was added to pacify
   a gcc12 warning without actually fixing the problem the warning
   should have alerted us to.

   kern/60753: compat_ultrix shmsys(2): busted shmdt
VersionDeltaFile
1.130+4-4sys/compat/ultrix/ultrix_misc.c
+4-41 files

NetBSD/src kJlMLpzsys/rump/kern/lib/libsys_cygwin rump_cygwin_compat.c, sys/rump/kern/lib/libsys_linux linux_rump.c

   rump libsys_*: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.5+4-3sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c
1.4+4-3sys/rump/kern/lib/libsys_cygwin/rump_cygwin_compat.c
1.6+3-2sys/rump/kern/lib/libsys_linux/linux_rump.c
+11-83 files

NetBSD/src 9ynQTGesys/kern sys_epoll.c kern_time.c

   kern: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.5+3-2sys/kern/sys_epoll.c
1.233+3-2sys/kern/kern_time.c
1.554+3-2sys/kern/init_main.c
+9-63 files

NetBSD/src Z0gVN1Hsys/compat/ultrix ultrix_ioctl.c ultrix_pathname.c

   compat_ultrix: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.129+15-3sys/compat/ultrix/ultrix_misc.c
1.41+6-2sys/compat/ultrix/ultrix_pathname.c
1.41+3-2sys/compat/ultrix/ultrix_ioctl.c
+24-73 files

NetBSD/src quMysUpsys/compat/sunos sunos_ioctl.c sunos_misc.c, sys/compat/sunos32 sunos32_ioctl.c sunos32_misc.c

   compat_sunos: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.178+15-2sys/compat/sunos/sunos_misc.c
1.87+13-2sys/compat/sunos32/sunos32_misc.c
1.37+4-2sys/compat/sunos32/sunos32_ioctl.c
1.72+4-2sys/compat/sunos/sunos_ioctl.c
+36-84 files

NetBSD/src onFcDIjsys/compat/freebsd freebsd_misc.c freebsd_ipc.c

   compat_freebsd: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.18+14-2sys/compat/freebsd/freebsd_ipc.c
1.36+4-2sys/compat/freebsd/freebsd_misc.c
+18-42 files

NetBSD/src 2JSh4TUsys/compat/common kern_ipc_10.c, sys/compat/netbsd32 netbsd32_lwp.c netbsd32_fs.c

   compat: Zero out syscall argument packages on stack.

   PR kern/60754: potential syscall argument package stack garbage
VersionDeltaFile
1.238+149-2sys/compat/netbsd32/netbsd32_netbsd.c
1.67+21-2sys/compat/netbsd32/netbsd32_compat_43.c
1.96+14-2sys/compat/netbsd32/netbsd32_fs.c
1.4+14-2sys/compat/netbsd32/netbsd32_compat_10_sysv.c
1.24+13-2sys/compat/netbsd32/netbsd32_lwp.c
1.27+13-2sys/compat/common/kern_ipc_10.c
+224-1223 files not shown
+314-5629 files

NetBSD/src smMmMs3sys/compat/linux/common linux_misc.c linux_file.c, sys/compat/linux32/common linux32_uid16.c linux32_sched.c

   compat_linux, compat_linux32: Always zero syscall args on stack.

   This is an attempt to systematically eliminate a class of stack
   garbage bugs:

   PR kern/60750: compat_linux: stack garbage mistakes
VersionDeltaFile
1.45+24-3sys/compat/linux32/common/linux32_unistd.c
1.33+19-2sys/compat/linux32/common/linux32_socket.c
1.137+19-2sys/compat/linux/common/linux_file.c
1.10+17-3sys/compat/linux32/common/linux32_sched.c
1.3+13-4sys/compat/linux32/common/linux32_uid16.c
1.268+14-2sys/compat/linux/common/linux_misc.c
+106-1630 files not shown
+263-8536 files

NetBSD/src BYa2nPcsys/compat/linux/common linux_sched.c

   compat_linux __prctl(2): Use self, not stack garbage lwpid.

   PR kern/60750: compat_linux: stack garbage mistakes
VersionDeltaFile
1.88+9-4sys/compat/linux/common/linux_sched.c
+9-41 files

NetBSD/src 63NnfzQsys/compat/netbsd32 netbsd32_ipc.c

   compat32 semop: Fix leak on timeout copyin.

   PR kern/60752: compat32: memory leak in netbsd32_do_semop error
   branch
VersionDeltaFile
1.24+9-10sys/compat/netbsd32/netbsd32_ipc.c
+9-101 files

NetBSD/src CffGwpxsys/compat/linux/common linux_uid16.c

   compat_linux setgroups16(2): Fix array copyin sizing.

   PR kern/60750: compat_linux: stack garbage mistakes
VersionDeltaFile
1.5+4-3sys/compat/linux/common/linux_uid16.c
+4-31 files

NetBSD/src 7gTyOICsys/compat/common uipc_syscalls_43.c, sys/compat/netbsd32 netbsd32_compat_43.c

   compat: Fix successive-copyout chained error branches.

   PR kern/60749: compat: successive copyout error branch mistakes
VersionDeltaFile
1.52+4-5sys/compat/common/uipc_syscalls_43.c
1.66+5-3sys/compat/netbsd32/netbsd32_compat_43.c
+9-82 files

NetBSD/src EJAAINKsys/compat/linux/common linux_socket.c

   compat_linux recv(m)msg(2): Fix mistakes in error branches.

   1. If copying out the cmsghdr _succeeds_, we want to copy out the
      cmsg data -- not if copying out the cmsghdr _fails_.

   2. If any part of the BSD cmsg to Linux cmsg conversion or copyout
      _fails_, we must pass the whole mbuf chain to free_control_mbuf to
      close all the file descriptors in it -- otherwise, they would leak
      because the user process has no idea it has been given the fds.

   3. Add missing `if (error)' before `return error' in recvmmsg(2)
      branch for copying in timeout.

   Found while reviewing code nearby:

   PR kern/60748: compat_linux: possible integer truncation/overflow
   issues in socket syscalls
VersionDeltaFile
1.162+9-6sys/compat/linux/common/linux_socket.c
+9-61 files

NetBSD/src y4Jy2ansys/compat/linux/common linux_socket.c

   compat_linux recv(m)msg(2): Tighten arithmetic bounds.

   And avoid overflow test idioms that involve doing the overflow.

   PR kern/60748: compat_linux: possible integer truncation/overflow
   issues in socket syscalls
VersionDeltaFile
1.161+27-7sys/compat/linux/common/linux_socket.c
+27-71 files

FreeBSD/ports acd223fwww/py-grafana-dashboard-manager Makefile

www/py-grafana-dashboard-manager: Fix build
DeltaFile
+1-0www/py-grafana-dashboard-manager/Makefile
+1-01 files

LLVM/project 35a11e0orc-rt/lib/bedrock/sys/posix SocketHandle.cpp PageSize.cpp

[orc-rt] Drop emacs mode lines from .cpp files. (#224928)

These aren't needed for .cpp files where emacs can infer the mode from
the file extension.
DeltaFile
+1-1orc-rt/lib/bedrock/sys/posix/SocketHandle.cpp
+1-1orc-rt/lib/bedrock/sys/posix/PageSize.cpp
+1-1orc-rt/lib/bedrock/sys/posix/Memory.cpp
+1-1orc-rt/lib/bedrock/sys/posix/DynamicLibrary.cpp
+4-44 files

NetBSD/pkgsrc Yu3lnVBdatabases/mongodb4 distinfo Makefile, databases/mongodb4/patches patch-src_third__party_mozjs-60_extract_js_src_wasm_WasmSignalHandlers.cpp

   databases/mongodb4: Fix type error objected to by gcc12 (NetBSD 11)

   Resolves building under NetBSD 11.
   Patch from Paul Ripke, who is running it with unifi.
   Unifi starts for me with on NetBSD 11 (with no previous db).
VersionDeltaFile
1.1+15-0databases/mongodb4/patches/patch-src_third__party_mozjs-60_extract_js_src_wasm_WasmSignalHandlers.cpp
1.30+2-2databases/mongodb4/Makefile
1.11+2-1databases/mongodb4/distinfo
+19-33 files

FreeBSD/ports bf93df2biology/vsearch Makefile pkg-plist, biology/vsearch/files patch-src_vsearch.h patch-src_sintax.cc

biology/vsearch: Update to 2.32.0

Numererous bug fixes, new per-command man pages, and a few other
enhancements.
Changes: https://github.com/torognes/vsearch/releases
Normally I don't upgrade ports so close to the end of a quarter, but
this release has a lot of bug fixes, which I think outweigh the risk
of a regression slipping into the next quarterly branch.

Reported by:    portscout
DeltaFile
+67-0biology/vsearch/pkg-plist
+0-18biology/vsearch/files/patch-src_sintax.cc
+0-18biology/vsearch/files/patch-src_searchcore.cc
+18-0biology/vsearch/files/patch-src_core_searchcore.cpp
+6-7biology/vsearch/Makefile
+0-10biology/vsearch/files/patch-src_vsearch.h
+91-531 files not shown
+94-567 files