LLVM/project 0914d20libc/include CMakeLists.txt, libc/include/llvm-libc-types loff_t.h CMakeLists.txt

[libc] Add loff_t type (#204641)

Added loff_t type definition. This is a Linux extension required for
large file offsets.

* llvm-libc-types/loff_t.h: Include linux/loff_t.h on Linux.
* llvm-libc-types/linux/loff_t.h: Added Linux definition using
__kernel_loff_t.
* llvm-libc-types/CMakeLists.txt: Include linux subdirectory and add
dependency for loff_t.
* llvm-libc-types/linux/CMakeLists.txt: Registered loff_t.
* sys/types.yaml: Added loff_t to sys/types.
* libc/include/CMakeLists.txt: Added dependency to sys_types target.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+21-0libc/include/llvm-libc-types/linux/loff_t.h
+21-0libc/include/llvm-libc-types/loff_t.h
+8-0libc/include/llvm-libc-types/CMakeLists.txt
+5-0libc/include/llvm-libc-types/linux/CMakeLists.txt
+1-0libc/include/CMakeLists.txt
+1-0libc/include/sys/types.yaml
+57-06 files

LLVM/project 5274b7fclang/lib/Analysis/LifetimeSafety FactsGenerator.cpp, clang/test/Sema/LifetimeSafety safety.cpp

[LifetimeSafety] Model pointer-to-data-member access in the fact generator (#204612)

VisitBinaryOperator had no case for `obj.*pm` (BO_PtrMemD) /
`objptr->*pm` (BO_PtrMemI), so a borrow of the accessed member
(`&(obj.*pm)`) dropped the object's loan to an empty origin and a
use-after-scope was missed. Flow the object operand's origin into the
result, mirroring a member access: for `.*` the object is the LHS, for
`->*` it is the LHS pointer's pointee.

Assisted-by: Claude Opus 4.8

Co-authored-by: Gabor Horvath <gaborh at apple.com>
DeltaFile
+60-0clang/test/Sema/LifetimeSafety/safety.cpp
+21-0clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+81-02 files

FreeNAS/freenas 22dedd8src/middlewared/middlewared/etc_files/local/ssh sshd_config.mako config.py, src/middlewared/middlewared/plugins ssh.py

NAS-141449 / 27.0.0-BETA.1 / Convert SSH plugin to typesafe pattern (#19163)

## Context
Migrates the `ssh` plugin from the legacy dict-based
`SystemServiceService` to the typesafe pattern, matching the `ups`/`ftp`
shape.

## Solution
Split the single `ssh.py` into a package: a lean `SSHService` (`generic
= True`) in `__init__.py` delegating to `SSHServicePart` in `config.py`,
with the host-key helpers moved to plain functions in `keys.py`.
`config`/`update` now return the `SSHEntry` Pydantic model in-process,
so every internal consumer was updated: the `sshd_config` mako and the
SSH `config.py` renderer `.model_dump()` the model at the top, and the
in-process callers (`keychain`, `failover` nftables, the `service_`
start/reload hooks, and the plugin's own `setup()`) were switched from
string `middleware.call('ssh.…')` to typed `call2`/`call_sync2`. The
only remaining string call is `etc.py`'s dynamic `CtxMethod` dispatch,
which has no static method handle. Registered the service in `main.py`
and added the package to the mypy workflow.
DeltaFile
+0-186src/middlewared/middlewared/plugins/ssh.py
+83-0src/middlewared/middlewared/plugins/ssh/__init__.py
+80-0src/middlewared/middlewared/plugins/ssh/keys.py
+66-0src/middlewared/middlewared/plugins/ssh/config.py
+19-22src/middlewared/middlewared/etc_files/local/ssh/sshd_config.mako
+9-15src/middlewared/middlewared/etc_files/local/ssh/config.py
+257-2236 files not shown
+273-23312 files

LLVM/project 08097dbclang/test/CIR/CodeGenCUDA rdc-linkage.cu

fix tests: (undef -> poison)
DeltaFile
+2-2clang/test/CIR/CodeGenCUDA/rdc-linkage.cu
+2-21 files

LLVM/project 46411a4clang/lib/Analysis/LifetimeSafety LiveOrigins.cpp FactsGenerator.cpp, clang/test/Sema/LifetimeSafety invalidations.cpp

make liveness more precise
DeltaFile
+23-6clang/test/Sema/LifetimeSafety/invalidations.cpp
+14-3clang/lib/Analysis/LifetimeSafety/LiveOrigins.cpp
+6-0clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+43-93 files

FreeBSD/src ed4f5e5sys/dev/hwpmc hwpmc_ibs.h

hwpmc_ibs: Add more IBS register definitions

Small change to add additional IBS register definitions for the new pmc
tools.  Most of the definitions are for Zen 4 and above where we get
detailed information regarding the source of a completed memory
operation.

Reviewed by:    mhorne
Sponsored by:   Netflix
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2292
DeltaFile
+33-1sys/dev/hwpmc/hwpmc_ibs.h
+33-11 files

FreeBSD/src cf469absys/dev/hwpmc hwpmc_amd.c

hwpmc_amd: Avoid using PMCs if in use by firmware

Some firmwares use the PMCs to monitor OS performance.  We can't be
certain that the BIOS would detect any change to the counters if we
reprogram them.  In cases where the firmware is using the PMCs to
control power management this could have dangerous side effects or
unexpected performance effects.

During initialization, detect if any of the counters are enabled and
fail if so.

Reported by:    Sandipan Das
Reviewed by:    mhorne
MFC after:      1 week
Sponsored by:   Netflix
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2277
DeltaFile
+77-33sys/dev/hwpmc/hwpmc_amd.c
+77-331 files

FreeNAS/freenas 68e904dsrc/middlewared/middlewared/etc_files pam_keyring.py

Fix
DeltaFile
+2-3src/middlewared/middlewared/etc_files/pam_keyring.py
+2-31 files

LLVM/project 7591910libc/src/__support/OSUtil/linux/syscall_wrappers ioctl.h CMakeLists.txt, libc/src/sys/ioctl/linux ioctl.cpp

Recommit "[libc] Introduce the ioctl syscall wrapper and port all callers (#204640)" (#205317)

This patch reapplies #204640 (reverted in #205277), due to (-Werror)
build failure with gcc. Gcc warned about passing an uninitialized
structure through a `const void *` argument. This isn't a problem
because the ioctls in question write to that argument. The
fix/workaround is to provide a `void *` overload.

The original commit message was:

This patch adds an ioctl syscall wrapper in linux_syscalls namespace and
migrates all direct SYS_ioctl calls to use it.

To handle the polymorphic nature of ioctl arguments (where some commands
expect pointers, some expect scalar integers like queue_selector, and
some expect no argument at all), I use a helper struct IoctlArg with
implicit constructors. This avoids template bloat and overload
ambiguities (particularly around literal 0) while keeping call sites
clean.

Assisted by Gemini.
DeltaFile
+52-0libc/src/__support/OSUtil/linux/syscall_wrappers/ioctl.h
+7-14libc/src/termios/linux/CMakeLists.txt
+6-9libc/src/sys/ioctl/linux/ioctl.cpp
+5-8libc/src/unistd/linux/isatty.cpp
+13-0libc/src/__support/OSUtil/linux/syscall_wrappers/CMakeLists.txt
+5-7libc/src/termios/linux/tcsetattr.cpp
+88-388 files not shown
+117-7614 files

FreeBSD/ports d176216cad/abc distinfo Makefile

cad/abc: Update g20260605 => g20260618

Approved by:            db@, yuri@ (Mentors, implicit)
DeltaFile
+3-3cad/abc/distinfo
+2-2cad/abc/Makefile
+5-52 files

LLVM/project a053571llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 copyable-phi-scheduled-non-copyable.ll

[SLP]Fix dominance crash for scheduled copyable PHI-operand bundles

Extend the copyable/non-copyable PHI conflict bail-out in
tryScheduleBundle to the scheduled path, not just the non-schedulable
one.

Fixes #205327

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/205372
DeltaFile
+47-0llvm/test/Transforms/SLPVectorizer/X86/copyable-phi-scheduled-non-copyable.ll
+21-12llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+68-122 files

LLVM/project 650a059clang/test/CIR/CodeGenOpenACC private-clause-pointer-array-recipes-CtorDtor.cpp combined.cpp

[CIR] Add cir.builtin_int_cast operation to replace uses of builtin.unrealized_conversion_cast (#201592)

This patch adds a new operation builtin_int_cast to handle casting
between CIR integer types and builtin integer types. This will replace
the current use of the builtin.unrealized_conversion_cast since this
operation is only intended to be used temporarily when doing
transformations.

Assisted-by: Cursor/Claude Opus 4.8 High
DeltaFile
+108-108clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-CtorDtor.cpp
+91-91clang/test/CIR/CodeGenOpenACC/combined.cpp
+79-79clang/test/CIR/CodeGenOpenACC/combined-copy.c
+79-79clang/test/CIR/CodeGenOpenACC/compute-copy.c
+69-69clang/test/CIR/CodeGenOpenACC/parallel.c
+66-66clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-NoOps.cpp
+492-49268 files not shown
+2,430-2,13974 files

FreeBSD/ports c94779egames/libretro-shaders-slang pkg-plist distinfo

games/libretro-shaders-slang: Update g20260507 => g20260621

Commitlog:
https://github.com/libretro/slang-shaders/compare/cef2de61...cb8e534

PR:             296227
Approved by:    osa, vvd (Mentors, implicit)
DeltaFile
+14-5games/libretro-shaders-slang/pkg-plist
+3-3games/libretro-shaders-slang/distinfo
+2-2games/libretro-shaders-slang/Makefile
+19-103 files

FreeBSD/src e61edb9sys/cam/ctl scsi_ctl.c

ctl: Use CAM_PRIORITY_NORMAL for queued CCBs

Previously this was using CAM_PRIORITY_NONE which tripped over the
assertion added in b4b166b8c46b8.

PR:             293076
Reported by:    Ken J. Thomson <thomsonk at yandex.com>
Reviewed by:    imp
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56995

(cherry picked from commit 887841731be60a958e471b9fd79261169b67b7ad)
DeltaFile
+5-3sys/cam/ctl/scsi_ctl.c
+5-31 files

FreeBSD/src 7e04dc8usr.sbin/ctld ctld.cc

ctld: Simplify pidfile rename handling in conf::apply

Explicitly copy the pidfile path from the initial configuration file
to the kernel-derived configuration to avoid having to check if the
old path is empty as a special case in conf::apply().

Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56533

(cherry picked from commit 9306d0449ba6fffadf08d5ab61aea596369e03f4)
DeltaFile
+10-15usr.sbin/ctld/ctld.cc
+10-151 files

FreeBSD/src c1a05ddusr.sbin/ctld ctld.cc ctld.hh

ctld: Add a dedicated conf method for shutting down

Currently the main loop creates an empty config and applies it to
force a shutdown of all of the existing configuration.  While this is
functional and does avoid duplicating some code, it is also a bit
clunky and requires a special hack in the pidfile path handling
in the conf::apply method.

Instead, use a dedicated conf::shutdown method which tears down the
CTL ports and LUNs and closes the sockets.

Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56532

(cherry picked from commit f1c5de5fab9d5cada11935418db11e19ebff7e34)
DeltaFile
+40-16usr.sbin/ctld/ctld.cc
+1-0usr.sbin/ctld/ctld.hh
+41-162 files

FreeBSD/src 415d241usr.sbin/ctld ctld.cc

ctld: Remove redundant call to conf::isns_schedule_update

This is already called at the end of conf::apply.

Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56530

(cherry picked from commit 4f90de0933218fd257300c6341abf157387f7641)
DeltaFile
+0-2usr.sbin/ctld/ctld.cc
+0-21 files

FreeBSD/src a9269dcsys/amd64/amd64 machdep.c

amd64: Don't set an initial FPU state save size

This used to be needed to initialize the pcb pointer when the pcb was
allocated on the kstack.

Reviewed by:    kib
Sponsored by:   AFRL, DARPA
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/23

(cherry picked from commit 860aaecf1bb659d8cc6023aaa2d27273823faa75)
DeltaFile
+0-1sys/amd64/amd64/machdep.c
+0-11 files

FreeBSD/src f62f0a1sys/arm64/arm64 swtch.S

arm64: Adjust the kernel stack pointer at the end of fork_trampoline

All other paths that return from the kernel to userspace pop the user
trapframe off of the kernel stack pointer before returning to
userspace in restore_registers.  fork_trampoline was missing this, so
all of the user faults after fork pushed another trapframe leaving a
trapframe's worth of wasted space on the kstack.

This would be fatal after a future change to remove duplicate
initialization of td_frame in cpu_fork() as without this fix each time
a thread was recycled it would "lose" another trapframe's worth of
space.

Reviewed by:    kib, andrew
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/23

(cherry picked from commit a1e07f21dc7458d85bd0d04c294f0389d4591666)
DeltaFile
+2-0sys/arm64/arm64/swtch.S
+2-01 files

FreeBSD/src 615a9c4sys/arm64/iommu smmu.c

arm64/iommu: Add a missing close parenthesis

Fixes:          6dc813301a17 ("sys: Use is_pci_device instead of direct comparisons to devclasses")
Sponsored by:   Chelsio Communications
(cherry picked from commit 8de34a84224b9a353bc0a9d6d3f95540b0e72707)
DeltaFile
+1-1sys/arm64/iommu/smmu.c
+1-11 files

FreeBSD/src cb2d864usr.sbin/ctld ctld.cc ctld.hh

ctld: Only check physical port linking in a single configuration context

Commit 969876fcee57 moved struct pport from being per-configuration to
being a "global" object shared across multiple configurations.  As a
result, the check for duplicate ports actually spanned across
configurations, such that reloading a configuration would now think
that existing physical ports were already linked.

The linking field in pport added in the C++-ification (commit
6acc7afa34aa) faithfully replicated this bug (albeit simpler as I had
noticed that the TAILQ links weren't used after the earlier commit).

To restore the desired behavior, remove the linking field from struct
pport entirely and use a local unordered_map in conf::add_pports which
tracks if a given pport is claimed by more than one target.

PR:             293076
Reported by:    Ken J. Thomson <thomsonk at yandex.com>
Fixes:          969876fcee57 ("ctld: parse config file independently of getting kernel info")

    [3 lines not shown]
DeltaFile
+7-5usr.sbin/ctld/ctld.cc
+0-4usr.sbin/ctld/ctld.hh
+7-92 files

FreeBSD/src 9de8461usr.sbin/ctld ctld.cc kernel.cc

ctld: Refactor ioctl port handling

- Normalize ioctl port names when the port name is first added to
  the configuration.  This can catch potential duplicate port names
  sooner and helps with other parts of this change.

- When recognizing existing ioctl ports, always expand the name to
  include the physical and virtual port numbers.  This permits binding
  ioctl/0/0 or ioctl/1/0 to a target, for example.

- When adding physical ports to a target, first check for an existing
  kernel port to reuse.  This handles both ioctl and non-ioctl ports
  and removes the need for the conf::add_port method for ioctl ports
  to check in kports.

- If an existing kport isn't found when adding physical ports, check
  to see if the port name is an ioctl port.  If so, call conf::add_port
  to add an ioctl port.  This add_port method overload is now simpler
  as it always creates a new port.

    [11 lines not shown]
DeltaFile
+49-31usr.sbin/ctld/ctld.cc
+4-1usr.sbin/ctld/kernel.cc
+1-1usr.sbin/ctld/ctld.hh
+54-333 files

FreeBSD/src d0f6c4busr.sbin/ctld kernel.cc

ctld: Don't ignore pp/vp values of kernel ports with pp == 0 but vp != 0

Fixes:          c6f1e9b8a412 ("ctld: Simplify XML parsing memory management")
Sponsored by:   Chelsio Communications
(cherry picked from commit 7a436d378951bedbdaa71d45bf236fb001323549)
DeltaFile
+1-1usr.sbin/ctld/kernel.cc
+1-11 files

FreeBSD/src d344b9asys/arm64/arm64 swtch.S

arm64 locore: Fix a comment typo: Of -> If

Reviewed by:    kib, andrew
Sponsored by:   AFRL, DARPA
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/23

(cherry picked from commit fce595344c51850a7113430c77e70c8777383a98)
DeltaFile
+1-1sys/arm64/arm64/swtch.S
+1-11 files

FreeBSD/src a2b0b41sys/amd64/amd64 trap.c

amd64: Drop segment descriptor details from trap messsages

Segment descriptor contents are fixed on amd64 and not very interesting
compared to the other values that are displayed.

While here, include both the thread and process details of the current
thread and drop redundant output of the trap number.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D56989

(cherry picked from commit 00b96a777845d9b558b2303cbef03ba5197b593a)
DeltaFile
+3-13sys/amd64/amd64/trap.c
+3-131 files

FreeBSD/src cafe7b0usr.sbin/ctld ctld.hh

ctld: Mark a few more isns_* methods in the conf class private

These are only invoked from other methods in the conf class.

Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56531

(cherry picked from commit 63d7b7fad2dd2343854c60f0da4ac46ef5b0d8b1)
DeltaFile
+3-3usr.sbin/ctld/ctld.hh
+3-31 files

FreeBSD/src c9c0474sys/arm64/include pcpu.h

arm64: Remove unneeded declaration from <machine/pcpu.h>

Reviewed by:    kib, andrew
Sponsored by:   AFRL, DARPA
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/23

(cherry picked from commit d01e5afbbf9bc879e570f59dddc147c0efa8b990)
DeltaFile
+0-1sys/arm64/include/pcpu.h
+0-11 files

FreeBSD/src e71677csys/dev/sound/pcm ac97.c

sys: Use is_pci_device instead of checking device or devclass names

Reviewed by:    bz, imp
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56998

(cherry picked from commit be4f245e1e4fe60d43aaff5b11b45f2a9a66a51c)
DeltaFile
+1-1sys/dev/sound/pcm/ac97.c
+1-11 files

FreeBSD/src 02d7be3sys/dev/vnic thunder_bgx_fdt.c

vnic: Add missing #include

Reported by:    bz, olivier
Fixes:          6dc813301a17 ("sys: Use is_pci_device instead of direct comparisons to devclasses")
Sponsored by:   Chelsio Communications
(cherry picked from commit 8c9dc47b5fcaf58a89b1511118b78a65737b20cc)
DeltaFile
+1-0sys/dev/vnic/thunder_bgx_fdt.c
+1-01 files

LLVM/project 7054171clang/test/C/C23 n3037.c

Additional test coverage for WG14 N3037 (#202674)

There was a request for additional test coverage in:
https://github.com/llvm/llvm-project/pull/201650#discussion_r3376475306
DeltaFile
+18-0clang/test/C/C23/n3037.c
+18-01 files