LLVM/project c33407b — llvm/lib/Target/AMDGPU AMDGPULowerModuleLDSPass.cpp, llvm/test/CodeGen/AMDGPU lower-module-lds-zero-size-arr.ll lower-module-lds-all-indirect-accesses.ll

[AMDGPU] Enable GEP canonicalization for dynamic LDS table lookups
DeltaFile
+8-4llvm/test/CodeGen/AMDGPU/lower-module-lds-indirect-extern-uses-max-reachable-alignment.ll
+2-1llvm/test/CodeGen/AMDGPU/lower-module-lds-zero-size-arr.ll
+2-1llvm/test/CodeGen/AMDGPU/lower-module-lds-all-indirect-accesses.ll
+0-1llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
+12-74 files

LLVM/project 27c484f — llvm/test/CodeGen/Mips/GlobalISel/instruction-select fcmp.mir, llvm/test/CodeGen/Mips/GlobalISel/legalizer sitofp_and_uitofp.mir rem_and_div_vec_builtin.mir

[MIPS](NFC) Drop `tracksRegLiveness: true` from MIR tests (#241211)

This is on by default and the only MIR option we set in most cases.
DeltaFile
+0-32llvm/test/CodeGen/Mips/GlobalISel/instruction-select/fcmp.mir
+0-28llvm/test/CodeGen/Mips/GlobalISel/legalizer/bitwise.mir
+0-24llvm/test/CodeGen/Mips/GlobalISel/legalizer/store_split_because_of_memsize_or_align.mir
+0-16llvm/test/CodeGen/Mips/GlobalISel/regbankselect/rem_and_div_vec.mir
+0-16llvm/test/CodeGen/Mips/GlobalISel/legalizer/sitofp_and_uitofp.mir
+0-16llvm/test/CodeGen/Mips/GlobalISel/legalizer/rem_and_div_vec_builtin.mir
+0-132218 files not shown
+0-900224 files

FreeBSD/doc 2079ce5 — website/content/en/cgi man.cgi

man.cgi: base pages first applies also to the Ports.quarterly release
DeltaFile
+1-1website/content/en/cgi/man.cgi
+1-11 files

LLVM/project 8a9da80 — mlir/include/mlir/Dialect/ArmSVE/Transforms Passes.td, mlir/lib/Dialect/ArmSVE/Transforms CMakeLists.txt LegalizeVectorStorage.cpp

[mlir][ArmSVE] Scale the scalable dim index in LegalizeTransferRead (#239583)

`LegalizeTransferRead` collapses the trailing memref dims, from the
scalable one onwards, and reads from the collapsed memref. The index of
the scalable dim then indexes the collapsed dim, but it was kept as is,
so

```mlir
%A = vector.transfer_read %M[%i, %j, %k, %c0], %pad {in_bounds = [true, true]} : memref<?x?x?x8xi8>, vector<[4]x8xi8>
```

read from `%k` instead of `%k * 8`:

```mlir
%collapse_shape = memref.collapse_shape %M [[0], [1], [2, 3]] : memref<?x?x?x8xi8> into memref<?x?x?xi8>
%0 = vector.transfer_read %collapse_shape[%i, %j, %k], %pad {in_bounds = [true]} : memref<?x?x?xi8>, vector<[32]xi8>
```

This patch scales that index by the size of the dims collapsed into it.

    [11 lines not shown]
DeltaFile
+15-3mlir/lib/Dialect/ArmSVE/Transforms/LegalizeVectorStorage.cpp
+3-1mlir/test/Dialect/ArmSVE/legalize-transfer-read.mlir
+1-1mlir/include/mlir/Dialect/ArmSVE/Transforms/Passes.td
+1-0mlir/lib/Dialect/ArmSVE/Transforms/CMakeLists.txt
+20-54 files

LLVM/project 64969db — compiler-rt/lib/sanitizer_common sanitizer_quarantine.h, compiler-rt/lib/sanitizer_common/tests sanitizer_mutex_test.cpp

[compiler-rt] mark padding [[maybe_unused]] (#241052)

-Wunused-private-field will soon be able to flag fields in instantiated
class templates. Land this in preparation.

Link: #237374
DeltaFile
+3-3compiler-rt/lib/sanitizer_common/sanitizer_quarantine.h
+1-1compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cpp
+4-42 files

FreeBSD/ports e2e71b0 — devel/okteta distinfo pkg-descr

devel/okteta: Update to 0.26.60 and switch to Qt6/KF6

The structures tool is not ported to Qt6/KF6 yet.

PR:             299313
DeltaFile
+526-517devel/okteta/pkg-plist
+15-16devel/okteta/Makefile
+5-15devel/okteta/pkg-descr
+3-3devel/okteta/distinfo
+549-5514 files

FreeBSD/ports 8575cef — devel Makefile, devel/okteta-qt5 distinfo pkg-descr

devel/okteta-qt5: Add port for Qt5-based Okteta

Okteta is not fully ported to Qt6 yet, therefore keep Qt5 version for a while.
DeltaFile
+899-0devel/okteta-qt5/pkg-plist
+34-0devel/okteta-qt5/Makefile
+28-0devel/okteta-qt5/pkg-descr
+3-0devel/okteta-qt5/distinfo
+1-0devel/Makefile
+965-05 files

FreeBSD/ports ffac093 — devel/kdesdk Makefile

devel/kdesdk: Okteta does not belong to KDE Gear
DeltaFile
+1-4devel/kdesdk/Makefile
+1-41 files

LLVM/project 1dde95c — libcxx/test/libcxx/containers/sequences/vector abi.compile.pass.cpp, libcxx/test/libcxx/containers/sequences/vector.bool abi.compile.pass.cpp

[libcxx] mark intentionally unused fields [[maybe_unused]] (#241054)

-Wunused-private-field will soon be able to flag fields in instantiated
class templates. Land this in preparation.

Link: #237374
DeltaFile
+1-1libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/has_unique_object_representations.compile.pass.cpp
+1-1libcxx/test/libcxx/strings/basic.string/sizeof.compile.pass.cpp
+1-1libcxx/test/libcxx/strings/basic.string/alignof.compile.pass.cpp
+1-1libcxx/test/libcxx/strings/basic.string/abi.compile.pass.cpp
+1-1libcxx/test/libcxx/containers/sequences/vector/abi.compile.pass.cpp
+1-1libcxx/test/libcxx/containers/sequences/vector.bool/abi.compile.pass.cpp
+6-68 files not shown
+14-1414 files

FreeBSD/src e1e4790 — usr.sbin/bhyve rfb.c

bhyve: rfb: do not destroy a mutex that was never initialized

rfb_init()'s error path tests pixfmt_mtx against NULL, which only
compiles where pthread_mutex_t is a pointer, and destroys it.  Every
jump to that label is before the mutex is initialized, so there is
nothing to destroy.  The test and the destroy came in with the
SetPixelFormat support (D46402).

Signed-off-by:  Wanpeng Qian <wanpengqian at gmail.com>

Fixes:          dda0f9837b1c ("bhyve: support noVNC SetPixelFormat request")
Reviewed by:    markj
MFC after:      1 week
Sponsored by:   keelos.dev
Differential Revision:  https://reviews.freebsd.org/D61425
DeltaFile
+0-2usr.sbin/bhyve/rfb.c
+0-21 files

FreeBSD/src b386040 — usr.sbin/bhyve pci_nvme.c

bhyve: nvme: initialize the AEN condition variable

aen_cond is used with pthread_cond_wait() and pthread_cond_signal() but
never initialized.  That works where a zeroed pthread_cond_t is
initialized on first use; elsewhere pthread_cond_wait() fails at once
and aen_thr() spins with aen_mtx held.

Signed-off-by:  Wanpeng Qian <wanpengqian at gmail.com>

Reviewed by:    markj
MFC after:      1 week
Sponsored by:   keelos.dev
Differential Revision:  https://reviews.freebsd.org/D61424
DeltaFile
+1-0usr.sbin/bhyve/pci_nvme.c
+1-01 files

FreeBSD/src da507ac — sys/amd64/amd64 pmap.c, sys/arm64/arm64 pmap.c

pmap: Fix some bugs around accounting of wired mappings

The amd64 and arm64 pmaps failed to decrement the count when tearing
down a 1GB largepage mapping.  The riscv pmap failed to decrement the
count when unwiring a superpage mapping.

Reported by:    alc
Reviewed by:    bnovkov, alc, kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D61414
DeltaFile
+3-0sys/arm64/arm64/pmap.c
+2-0sys/riscv/riscv/pmap.c
+2-0sys/amd64/amd64/pmap.c
+7-03 files

FreeBSD/src e4b9fec — sys/kern link_elf.c

link_elf: validate the section headers in link_elf_load_file()

e_shentsize isn't checked, and e_shstrndx, sh_link and sh_name are used
unchecked.  Do what link_elf_obj.c does.

MFC after:      1 week
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D61389
DeltaFile
+34-0sys/kern/link_elf.c
+34-01 files

FreeBSD/src e0f0834 — sys/kern link_elf.c

link_elf: bounds-check the dynamic section's tables

parse_dynamic() only checks the DT_HASH header.  nbuckets, nchains and
the other DT_* tables come from the module unchecked.  Check them
against the mapping, and reject a size without its table.

Reported by:    llm-postcr
MFC after:      1 week
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D61387
DeltaFile
+77-27sys/kern/link_elf.c
+77-271 files

FreeBSD/src 35d9a9b — sys/kern link_elf.c

link_elf: validate symbol name offsets

st_name isn't checked against the string table size, for any of the
symbol tables used here.  Do what link_elf_obj.c does since 4e2c2842e.

Reported by:    llm-postcr
MFC after:      1 week
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D61388
DeltaFile
+34-0sys/kern/link_elf.c
+34-01 files

FreeBSD/src 57bee49 — sys/kern sysv_msg.c

sysvmsg: Fix sequence number wraparound races

The SysV message queue code has the same problem that we fixed in the
semaphore code in SA-26:54.sysvsem and SA-26:64.sysvsem.  That is,
kern_msgrcv() and kern_msgsnd() are susceptible to TOCTOU races when
they sleep waiting for messages and queue space, respectively.  Unlike
the semaphore code, however, the message queue array is never resized
and there is no notion of message queue sets, so such races do not open
up any memory safety bugs.

Fix the races, following the pattern from the SysV semaphore changes:
use a global sequence number array with wide counters, to avoid changing
the KBI which is embedded in userspace tools.  Fix kern_msgsnd(), which
did not validate the sequence number at all after sleeping.  Use a
msgvalid() helper to factor out some duplicated checks.  Convert a
couple of local flag variables to bools.

Reported by:    Apex Security Research
Reviewed by:    kib

    [3 lines not shown]
DeltaFile
+51-64sys/kern/sysv_msg.c
+51-641 files

FreeBSD/src 7311793 — sys/kern sysv_sem.c

sysvsem: Plug another place where we leak __sem_base to userspace

Leaking this pointer isn't harmful, but other places take care to clear
it, so handle this in SEM_STAT too.

Reviewed by:    imp, kib
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61396
DeltaFile
+2-0sys/kern/sysv_sem.c
+2-01 files

LLVM/project 496f3da — compiler-rt/lib/copyprof copyprof_report_buffer.h copyprof_flags.cpp, compiler-rt/lib/copyprof/tests copyprof_report_buffer_test.cpp copyprof_report_sink_test.cpp

[CopyProf] Asynchronous reporting.
DeltaFile
+257-0compiler-rt/lib/copyprof/copyprof_report_sink.cpp
+148-0compiler-rt/lib/copyprof/tests/copyprof_report_sink_test.cpp
+75-8compiler-rt/lib/copyprof/copyprof_reporting.cpp
+64-0compiler-rt/lib/copyprof/copyprof_flags.cpp
+63-0compiler-rt/lib/copyprof/tests/copyprof_report_buffer_test.cpp
+58-0compiler-rt/lib/copyprof/copyprof_report_buffer.h
+665-813 files not shown
+1,024-1719 files

LLVM/project 0b4bc11 — compiler-rt/include/profile CopyProfData.inc, compiler-rt/lib/copyprof copyprof_file_backend.cpp

[CopyProf] File backend and llvm-profdata support.
DeltaFile
+310-0llvm/lib/ProfileData/CopyProfReader.cpp
+210-0compiler-rt/lib/copyprof/copyprof_file_backend.cpp
+108-0llvm/include/llvm/ProfileData/CopyProfReader.h
+107-0llvm/include/llvm/ProfileData/CopyProfData.inc
+106-0compiler-rt/include/profile/CopyProfData.inc
+61-0compiler-rt/test/copyprof/TestCases/report_to_file_test.cpp
+902-05 files not shown
+985-311 files

LLVM/project 4071377 — compiler-rt/test/copyprof lit.site.cfg.py.in CMakeLists.txt, compiler-rt/test/copyprof/TestCases simple_allocation_test.cpp simple_test.cpp

[CopyProf] End-to-end testing.
DeltaFile
+117-0compiler-rt/test/copyprof/TestCases/simple_test.cpp
+113-0compiler-rt/test/copyprof/TestCases/simple_allocation_test.cpp
+36-0compiler-rt/test/copyprof/lit.cfg.py
+35-0compiler-rt/test/copyprof/CMakeLists.txt
+31-0compiler-rt/test/copyprof/Unit/lit.site.cfg.py.in
+12-0compiler-rt/test/copyprof/lit.site.cfg.py.in
+344-02 files not shown
+349-28 files

LLVM/project 03737c8 — llvm/test/CodeGen/AMDGPU llvm.amdgcn.iglp.opt.exp.two-regions.mir

[AMDGPU] IGLP: fix two-regions test in builds without assertions (#241355)

Remove wrong undef flags and replace -verfiy-mished so that invalid live
ranges aren't "fixed" by it in assertion builds.

Fixes buildbot issue for
https://github.com/llvm/llvm-project/pull/237774

Claude assisted with this patch.
DeltaFile
+24-24llvm/test/CodeGen/AMDGPU/llvm.amdgcn.iglp.opt.exp.two-regions.mir
+24-241 files

FreeBSD/ports 399a717 — devel/py-yattag Makefile, ftp/py-aioftp Makefile

*: drop maintainership of most my py-* ports
DeltaFile
+1-1www/py-multidict/Makefile
+1-1textproc/py-morse3/Makefile
+1-1security/py-trustme/Makefile
+1-1net/py-siosocks/Makefile
+1-1ftp/py-aioftp/Makefile
+1-1devel/py-yattag/Makefile
+6-617 files not shown
+23-2323 files

FreeBSD/ports 1b26ced — games/powder-toy-devel Makefile distinfo

games/powder-toy-devel: update snapshot-397 → snapshot-401
DeltaFile
+3-3games/powder-toy-devel/distinfo
+1-1games/powder-toy-devel/Makefile
+4-42 files

FreeBSD/ports 9733fe1 — devel/osc Makefile distinfo, devel/osc/files patch-tests_test__git_editor.py

devel/osc: update 1.27.3 → 1.28.0
DeltaFile
+0-44devel/osc/files/patch-tests_test__git_editor.py
+3-3devel/osc/distinfo
+1-1devel/osc/Makefile
+4-483 files

FreeBSD/ports 95eba07 — textproc/yelp-tools Makefile

textproc/yelp-tools: add missing run-dependency

```
% yelp-build
Traceback (most recent call last):
  File "/usr/local/bin/yelp-build", line 29, in <module>
    import lxml.etree
ModuleNotFoundError: No module named 'lxml'
```

Approved by:    portmgr blanket
DeltaFile
+2-1textproc/yelp-tools/Makefile
+2-11 files

FreeBSD/ports 049a1ca — games/DDNet Makefile distinfo

games/DDNet: update 20.0 → 20.2.1
DeltaFile
+3-3games/DDNet/distinfo
+1-2games/DDNet/Makefile
+4-52 files

LLVM/project 5b0dc77 — llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 sve-fixed-vector-interleave.ll

[AArch64] Use SVE ldN for fixed length deinterleave (#241218)

When fixed length vectors uses SVE, 64 bit vector type missed the
deinterleave combine to form ldN.
DeltaFile
+64-0llvm/test/CodeGen/AArch64/sve-fixed-vector-interleave.ll
+12-5llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+76-52 files

LLVM/project 44c6d75 — utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[Bazel] Fixes 5ae22e4 (#241387)

This fixes 5ae22e4653a7bd10ac69f4f9a18d68e63c3b1069 (#240796).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=5ae22e4653a7bd10ac69f4f9a18d68e63c3b1069

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+3-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+3-01 files

LLVM/project 1bb4d5f — mlir/test/Dialect/MemRef fold-memref-alias-ops.mlir

[mlir][nfc] Improve consistency in test names (#241374)

Use "masked" for `vector.mask %mask {vector.xfer_op}` and "with_mask"
for `vector.xfer_op %mask`.
DeltaFile
+2-2mlir/test/Dialect/MemRef/fold-memref-alias-ops.mlir
+2-21 files

LLVM/project fea0a27 — llvm/include/llvm/Transforms/IPO Attributor.h

Attributor: Hash all bits of the abstract attribute map keys (#241082)

The AA IDs are adjacent bytes and the positions of a value only differ
in the low bits, which the default hashes mostly ignore, so many AAMap
keys collide. Hash the full key instead.

attributor-light instruction counts (callgrind): -0.6% to -4.3%, full
attributor -0.5% to -1.5%. CTMark (-attributor-enable=light): O3
-0.01%, ThinLTO -0.03%.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+12-1llvm/include/llvm/Transforms/IPO/Attributor.h
+12-11 files