LLVM/project 1430a3flldb/source/Commands CommandObjectPlatform.cpp

[lldb] Add missing calls to SetStatus in CommandObjectPlatform (#197548)

Add missing calls to CommandReturnObject::SetStatus in
CommandObjectPlatform. I replaced some calls to AppendMessageWithFormatv
with AppendErrorWithFormatv because the latter implicitly sets the
status.
DeltaFile
+10-5lldb/source/Commands/CommandObjectPlatform.cpp
+10-51 files

LLVM/project 42b4cb6clang/include/clang/Basic DiagnosticDriverKinds.td, flang/lib/Frontend CompilerInvocation.cpp TextDiagnosticBuffer.cpp

[flang] Implement -Wno-<warning> flags for driver diagnostics (#196354)

Utilize clang::ProcessWarningOptions function to process -Wno-...
options.

This has the side effect that without additional changes it would cause
driver warnings to become errors with -Werror. That would be a change
from the existing behavior, so make sure that these warnings remain
unaffected.

Modify the diagnostic emitter to add the disabling option at the end of
the emitted diagnostic.

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

---------

Co-authored-by: Tarun Prabhu <tarun at lanl.gov>
DeltaFile
+38-28flang/lib/Frontend/CompilerInvocation.cpp
+22-1flang/lib/Frontend/TextDiagnosticBuffer.cpp
+5-2clang/include/clang/Basic/DiagnosticDriverKinds.td
+3-3flang/test/Driver/fopenmp-version.F90
+1-1flang/test/Semantics/OpenMP/depend05.f90
+1-1flang/test/Semantics/OpenMP/depend06.f90
+70-3611 files not shown
+81-4717 files

LLVM/project b9bc518lldb/test/API/commands/breakpoint/location-dot TestBreakpointLocationDot.py

[lldb] Use current breakpoint location in TestBreakpointLocationDot.py (NFC) (#197472)

Replaces `FindLocationByID(1)` with `FindLocationByID(loc_id)`. Instead
of hard-coding an ID of 1, the location ID is determined from
`GetStopReasonDataAtIndex`.

Some of these asserts were failing on a windows CI, because the
breakpoint was resolved to **two** locations.
DeltaFile
+24-8lldb/test/API/commands/breakpoint/location-dot/TestBreakpointLocationDot.py
+24-81 files

LLVM/project 26a4ffblldb/include/lldb/Breakpoint BreakpointIDList.h, lldb/source/Breakpoint BreakpointIDList.cpp

[lldb] Update calls to VerifyBreakpointIDs to handle dummy targets (#197088)

Follow up to #194272. In that change, `VerifyBreakpointIDs` had its
signature changed to take an `ExecutionContext` instead of a `Target`.
In updating the call-sites, `m_exe_ctx` was used. However, in some of
those places, the `target` argument reflected the use of a dummy target.
The switch broke situations where a proper target does not exist.

This update changes those calls back to using the `target` variable,
which may be the dummy target.

The `const` change to `ExecutionContext &` parameters is to support the
passing of `&target`.
DeltaFile
+6-6lldb/source/Commands/CommandObjectBreakpoint.cpp
+3-3lldb/source/Commands/CommandObjectBreakpoint.h
+2-2lldb/source/Commands/CommandObjectBreakpointCommand.cpp
+1-1lldb/include/lldb/Breakpoint/BreakpointIDList.h
+1-1lldb/source/Breakpoint/BreakpointIDList.cpp
+13-135 files

LLVM/project 574fd4aclang/include/clang/CIR/Dialect/IR CIROps.td, clang/test/CIR/CodeGen bool-bitfield.cpp

[CIR] Lower bool bit-fields correctly (#197085)

`bool` bit-fields like `bool flag : 1;` trip an assertion in CIR codegen
because `cir.set_bitfield` and `cir.get_bitfield` are constrained to
take and produce `CIR_IntType` values, but CIRGen was passing
`convertType(boolType)` (= `!cir.bool`) as the op's result type. Both
load and store paths fail with:

Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"'
failed
[To = mlir::detail::TypedValue<cir::IntType>, From = mlir::OpResult]

This is the second-largest libcxx-with-CIR blocker behind #197068 — ~119
of 1,494 fails in our May 11 `std/` baseline, mostly in `<format>`
parsing state where bool bit-fields are common.

The fix mirrors classic CodeGen at the bit-field boundary: widen the
bool source to the storage integer type for the op call, and narrow the
integer result back to bool with `int_to_bool` so callers that consume

    [11 lines not shown]
DeltaFile
+131-0clang/test/CIR/CodeGen/bool-bitfield.cpp
+2-2clang/include/clang/CIR/Dialect/IR/CIROps.td
+133-22 files

LLVM/project 9870819clang-tools-extra/clang-doc Representation.cpp Representation.h, clang-tools-extra/clang-doc/tool ClangDocMain.cpp

Restore clang-doc arena allocation (#197595)

This patch restores the commits reverted in
49f8ad172446dd54dd14c2333a7a0f638e37d05a.

It effectively reapplies:

Reapply "[clang-doc][nfc] Default initialize all StringRef members
(#191641)"
Reapply "[clang-doc] Initialize StringRef members in Info types
(#191637)"
Reapply "[clang-doc] Initialize member variable (#191570)" 
Reapply "[clang-doc] Merge data into persistent memory (#190056)" 
Reapply "[clang-doc] Support deep copy between arenas for merging
(#190055)"

This version has been updated to account for the new InfoNode<T>
paradigm and APIs introduced earlier. Its logic is largely unchanged: it
still performs deep copies between the transient and persistent arenas,

    [3 lines not shown]
DeltaFile
+251-29clang-tools-extra/clang-doc/Representation.cpp
+107-0clang-tools-extra/unittests/clang-doc/MergeTest.cpp
+25-25clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
+33-0clang-tools-extra/clang-doc/Representation.h
+6-4clang-tools-extra/clang-doc/Serialize.cpp
+422-585 files

FreeBSD/ports 752a72edevel/jenkins distinfo Makefile

devel/jenkins: Update to 2.564

Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-3devel/jenkins/distinfo
+1-1devel/jenkins/Makefile
+4-42 files

FreeBSD/ports ff6f993mail/mailpit distinfo Makefile, mail/mailpit/files patch-package-lock.json

mail/mailpit: Update to 1.30.0

Security:       6e701ad2-4f61-11f1-af6d-10ffe07f9334
DeltaFile
+19-19mail/mailpit/files/patch-package-lock.json
+7-7mail/mailpit/distinfo
+1-2mail/mailpit/Makefile
+27-283 files

LLVM/project 7f4e7ddllvm/include/llvm/Transforms/IPO Instrumentor.h, llvm/lib/Transforms/IPO Instrumentor.cpp

[Instrumentor] Add support for modules and globals (#197535)

We can emit callbacks when a module is loaded/unloaded and before
globals are initialized and "removed". Both happens in newly introduced constructors and destructors.
DeltaFile
+318-0llvm/lib/Transforms/IPO/Instrumentor.cpp
+96-0llvm/include/llvm/Transforms/IPO/Instrumentor.h
+81-0llvm/test/Instrumentation/Instrumentor/module_and_globals.ll
+70-1llvm/test/Instrumentation/Instrumentor/default_config.json
+11-8llvm/test/Instrumentation/Instrumentor/alloca_and_function.ll
+3-3llvm/test/Instrumentation/Instrumentor/unreachable.ll
+579-126 files

LLVM/project 0b380f9llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp, llvm/test/MC/AMDGPU literals.s

[AMDGPU] Restore lit() to be accepted as 64-bit FP operand

It is worth to note that immediate value comes already truncated
to this point of validation.
DeltaFile
+93-2llvm/test/MC/AMDGPU/literals.s
+2-1llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+95-32 files

LLVM/project a089568libc/utils/hdrgen/hdrgen header.py yaml_to_classes.py, libc/utils/hdrgen/tests/expected_output func_guarding.h type_guarding.h

[libc][hdrgen] Extend guard attribute support for types (#191663)

Closes #187404 
- Add support for an optional guard attribute on types in hdrgen YAML
input.
- Parse and validate guard from YAML in yaml_to_classes.py, ensuring
guard macros have macro_header in the same YAML file.
- Introduce emit_guard a function that extracts the common logic between
guarded types and guarded functions.
- Add  integration tests for both type guarding and function guarding

---------

Co-authored-by: un-pixelated <masterhc321 at gmail.com>
DeltaFile
+37-26libc/utils/hdrgen/hdrgen/header.py
+38-0libc/utils/hdrgen/tests/input/func_guarding.yaml
+34-0libc/utils/hdrgen/tests/expected_output/func_guarding.h
+27-0libc/utils/hdrgen/tests/expected_output/type_guarding.h
+19-0libc/utils/hdrgen/tests/input/type_guarding.yaml
+14-1libc/utils/hdrgen/hdrgen/yaml_to_classes.py
+169-272 files not shown
+187-298 files

LLVM/project d073515clang/include/clang/DependencyScanning DependencyConsumer.h DependencyScanningWorker.h, clang/lib/DependencyScanning DependencyScannerImpl.cpp DependencyScanningWorker.cpp

[clang][deps] Consolidate types into new `DependencyConsumer.h` (#197772)

This PR pulls the `DependencyConsumer` type out of
`DependencyScanningWorker.h` into its own header. Just a cleanup, NFC.
DeltaFile
+47-0clang/include/clang/DependencyScanning/DependencyConsumer.h
+1-26clang/include/clang/DependencyScanning/DependencyScanningWorker.h
+1-0clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+1-0clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+1-0clang/lib/DependencyScanning/ModuleDepCollector.cpp
+1-0clang/include/clang/DependencyScanning/DependencyScanningUtils.h
+52-266 files

LLVM/project 8ef6b39libc/src/__support/math exp.h exp10.h

[libc][math] Fix UBSan errors from left-shifting negative values (#197747)

Replace left-shift operations on potentially negative exponent values
with mathematically equivalent multiplication to avoid undefined
behavior. When computing exponential functions for inputs that produce
results less than 1, the exponent 'hi' can be negative (e.g., -2 for
exp(-1.0) ≈ 0.368). Left-shifting negative values is undefined behavior
in C++.

Fixed in:
- exp.h: 3 instances
- exp2.h: 3 instances
- exp10.h: 3 instances
- expm1.h: 2 instances
- exp_utils.h: 1 instance (hi + 1022 can be negative)

Exposed by 2b2a63819f9f.

Co-Authored-By: Claude Sonnet 4.5 <noreply at anthropic.com>

    [3 lines not shown]
DeltaFile
+3-3libc/src/__support/math/exp.h
+3-3libc/src/__support/math/exp10.h
+3-3libc/src/__support/math/exp2.h
+2-2libc/src/__support/math/expm1.h
+2-1libc/src/__support/math/exp_utils.h
+13-125 files

LLVM/project f1574dbclang/lib/Sema SemaARM.cpp, clang/test/AST ast-dump-aarch64-mte.c

[Clang][AArch64] Add missing lvalue-to-rvalue conversions for MTE built-ins (#197621)

This patch adds missing lvalue-to-rvalue conversions for the second
argument of `__builtin_arm_irg()` and both arguments of
`__builtin_arm_gmi()`.
DeltaFile
+75-0clang/test/AST/ast-dump-aarch64-mte.c
+8-1clang/lib/Sema/SemaARM.cpp
+83-12 files

LLVM/project 1354182clang/include/clang/Analysis/Analyses/LifetimeSafety Origins.h, clang/lib/Analysis/LifetimeSafety Origins.cpp FactsGenerator.cpp

only track origins for accessed fields
DeltaFile
+37-2clang/lib/Analysis/LifetimeSafety/Origins.cpp
+11-0clang/include/clang/Analysis/Analyses/LifetimeSafety/Origins.h
+4-3clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+52-53 files

LLVM/project 3fc0dd5clang/include/clang/Analysis/Analyses/LifetimeSafety Origins.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp Origins.cpp

[LifetimeSafety] Track per-field origins for record types
DeltaFile
+314-4clang/test/Sema/warn-lifetime-safety.cpp
+82-43clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+95-8clang/lib/Analysis/LifetimeSafety/Origins.cpp
+67-24clang/include/clang/Analysis/Analyses/LifetimeSafety/Origins.h
+21-12clang/lib/Analysis/LifetimeSafety/LiveOrigins.cpp
+4-6clang/test/Sema/warn-lifetime-safety-dangling-field.cpp
+583-972 files not shown
+587-988 files

LLVM/project cb2be10clang/include/clang/Analysis/Analyses/LifetimeSafety Origins.h Facts.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp Origins.cpp

[LifetimeSafety][NFC] Refactor OriginList to OriginNode tree
DeltaFile
+129-131clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+42-30clang/include/clang/Analysis/Analyses/LifetimeSafety/Origins.h
+38-30clang/lib/Analysis/LifetimeSafety/Origins.cpp
+5-6clang/include/clang/Analysis/Analyses/LifetimeSafety/Facts.h
+5-5clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
+3-3clang/unittests/Analysis/LifetimeSafetyTest.cpp
+222-2053 files not shown
+231-2149 files

LLVM/project 2327bf9clang/include/clang/Analysis/Analyses/LifetimeSafety Origins.h, clang/lib/Analysis/LifetimeSafety Origins.cpp

merge two pre-scans
DeltaFile
+24-44clang/lib/Analysis/LifetimeSafety/Origins.cpp
+7-8clang/include/clang/Analysis/Analyses/LifetimeSafety/Origins.h
+31-522 files

FreeBSD/src 2ebec3clibexec/nuageinit nuage.lua nuageinit, libexec/nuageinit/tests nuageinit.sh

nuageinit: fix command injection and related issues

- Add shell_escape() helper to safely escape shell arguments
- Apply shell_escape to all user-controlled values in shell commands:
  adduser (usershow, useradd, lock, primary_group, groups)
  addgroup (groupshow, groupadd, members)
  exec_change_password (usermod)
  settimezone (tzsetup root and timezone)
  install_package (pkg package names)
- Escape double quotes in hostname when writing rc.conf.d/hostname
- Add missing 'local' declaration for resolvconf_command in nameservers()
- Escape interface name in resolvconf -a command
- Change open_resolvconf_conf() from 'w' to 'a' mode to prevent
  data loss when nameservers() is called multiple times
- Clean up stale resolvconf.conf at the start of each boot
  (skip on postnet to preserve config written by first call)

Approved by:    re (cperciva)
MFC After: 1 day

    [3 lines not shown]
DeltaFile
+28-15libexec/nuageinit/nuage.lua
+15-2libexec/nuageinit/nuageinit
+3-3libexec/nuageinit/tests/nuageinit.sh
+46-203 files

FreeBSD/src 09a53a5. Makefile.inc1

Make "make update-packages" idempotent

If the user runs "make update-packages" without bumping BRANCH, then it
isn't possible to copy packages from the old location to the new one
(because the two locations are the same).  So just skip that step.

Approved by:    re (cperciva)
Sponsored by:           ConnectWise
PR:                     295085
Reviewed by:            ivy, emaste
Differential Revision:  https://reviews.freebsd.org/D56872

(cherry picked from commit bd1e789b8452a8c2f166a3b4defb95330c71dadd)
(cherry picked from commit 89a0148521aefe0a190d4b62749186c705962d32)
DeltaFile
+3-1Makefile.inc1
+3-11 files

FreeBSD/src 39fcfccsys/kern uipc_usrreq.c, sys/sys ucred.h

Fix LOCAL_PEERCRED in 32-bit compat mode

Previously the cr_pid field would be incorrectly copied to userland, due
to a size mismatch between the structure as defined in 32-bit vs 64-bit
builds.  Fix it by converting the structure before copying it to
userland.

Approved by:    re (cperciva)
PR:             294833
Sponsored by:   ConnectWise
Reviewed by:    emaste
Differential Revision: https://reviews.freebsd.org/D56675

(cherry picked from commit 1d24638d3e8875e4b99a4b5e39f4241e37221b3d)
(cherry picked from commit 3298d82ea34059354dc1ff1a60d8b7d3e495c2cd)
DeltaFile
+19-2sys/kern/uipc_usrreq.c
+11-0sys/sys/ucred.h
+30-22 files

FreeBSD/src 8c8ec2crelease/scripts pkg-stage.sh

pkg-stage.sh: Add ext2 and ntfs

Having these packages available on release media may help users who
need to sneakernet other packages (e.g. firmware) from systems running
Linux or Windows.

Approved by:    re (cperciva)
Suggested by:   vladlen, ziaee
MFC after:      3 days

(cherry picked from commit 6881fd278d80ac63b4d511fc130a79ff16d1bb48)
(cherry picked from commit 01d5910b8766671afdbd9e274fd62b397aca9e1a)
DeltaFile
+2-0release/scripts/pkg-stage.sh
+2-01 files

FreeBSD/src 5457f05release/tools oci-image-static.conf

release/tools: use same pkg settings in containers as in /etc/pkg/FreeBSD.conf

Instructions in /etc/pkg/FreeBSD.conf and elsewhere recommend putting
changes in /usr/local/etc/pkg/repos/FreeBSD.conf so bring OCI containers
into line as well.

Reviewed by:    dfr, ivy
Differential Revision:  https://reviews.freebsd.org/D54090

Approved by:    re (cperciva)
MFC after:      5 days
Sponsored by:   SkunkWerks, GmbH

(cherry picked from commit c73ae67348998a0056145e88debbea9ff6860c4f)
(cherry picked from commit d889f6c466d4cec73c34bc71093d08b25e321071)
DeltaFile
+1-5release/tools/oci-image-static.conf
+1-51 files

FreeBSD/src 8484cb4sys/fs/fdescfs fdesc_vnops.c

fdescfs: do not change vnode type on VOP_GETATTR()

Approved by:    re (cperciva)
PR:     294768

(cherry picked from commit fbecfc4aa028964f972a0457809aa041d415f61b)
(cherry picked from commit 5af938fb03d004ef97621f4c9319446f2fb8f77c)
DeltaFile
+0-1sys/fs/fdescfs/fdesc_vnops.c
+0-11 files

FreeBSD/src cb7880b. UPDATING, usr.sbin/bsdinstall bsdinstall.8

bsdinstall: do pkgbase installations with the "script" command

"bsdinstall script" will now do a pkgbase installation by default.  The
system components to install can be specified in the COMPONENTS
variable, and have the same names as those used in the interactive
installer.  bsdinstall will still do a legacy distset installation if
DISTRIBUTIONS is defined in the installerconfig file.

Approved by:    re (cperciva)
PR:             290375
Sponsored by:   ConnectWise
Reviewed by:    ziaee, ivy, jduran
Differential Revision: https://reviews.freebsd.org/D56717

(cherry picked from commit dc14ae4217a0babb1240f813b642edc2d7b955a6)
(cherry picked from commit 1f5869130f6ebd299e65a627eff23a8c3d360afb)
DeltaFile
+42-31usr.sbin/bsdinstall/scripts/script
+35-10usr.sbin/bsdinstall/bsdinstall.8
+14-1usr.sbin/bsdinstall/scripts/pkgbase.in
+5-0UPDATING
+96-424 files

FreeBSD/src 628c42ausr.sbin/bsdinstall bsdinstall.8

bsdinstall.8: Document DISTRIBUTIONS defaults correctly

Some targets override the default value of DISTRIBUTIONS.
Document that in the manual page.

Approved by:    re (cperciva)
Reported by:    Nia Alarie <nia at NetBSD.org>
Reviewed by:    jlduran
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56528

(cherry picked from commit 4029e765436ff1633139c1afe1bc25185a0f4ef1)
(cherry picked from commit f4678f7613538c63567e2e44cd5aceaee4b4a383)
DeltaFile
+22-2usr.sbin/bsdinstall/bsdinstall.8
+22-21 files

FreeBSD/src 684cb0dkrb5/include autoconf.h, krb5/util/build-tools krb5-config.sh Makefile

krb5: Adjust additional version strings

Approved by:    re (cperciva)
Fixes:          736e411a737b

(cherry picked from commit c64ee36e5d09ecee4ce4951047014c8461734fb5)
(cherry picked from commit e3fc367366319466dd91fe0217a06c0655e35a8a)
DeltaFile
+2-2krb5/include/autoconf.h
+1-1krb5/util/build-tools/krb5-config.sh
+1-0krb5/util/build-tools/Makefile
+4-33 files

FreeBSD/src 3ee9a0fkrb5 Makefile.inc

krb5: Adjust version to 1.22.2

Approved by:    re (cperciva)
Fixes:          736e411a737b
(cherry picked from commit 8f46ba065143d9d89968a20b23844287d54c04a2)
(cherry picked from commit ea93554de436e84d27200d12f3a3b6dc1670fac9)
DeltaFile
+1-1krb5/Makefile.inc
+1-11 files

FreeBSD/src 92eeed8crypto/krb5/src/lib/gssapi/spnego negoex_util.c

krb5: Fix two NegoEx parsing vulnerabilities

Bring in upstream commit 2e75f0d93 fixing two CVEs. Upstream commit
log is:

 In parse_nego_message(), check the result of the second call to
 vector_base() before dereferencing it.  In parse_message(), check for
 a short header_len to prevent an integer underflow when calculating
 the remaining message length.

 Reported by Cem Onat Karagun.

 CVE-2026-40355:

 In MIT krb5 release 1.18 and later, if an application calls
 gss_accept_sec_context() on a system with a NegoEx mechanism
 registered in /etc/gss/mech, an unauthenticated remote attacker can
 trigger a null pointer dereference, causing the process to terminate.


    [13 lines not shown]
DeltaFile
+6-1crypto/krb5/src/lib/gssapi/spnego/negoex_util.c
+6-11 files

FreeBSD/src 3de8ca6crypto/krb5 README, crypto/krb5/src configure patchlevel.h

krb5: import MIT 1.22.2

Merge commit '90c687295e2d62f9411fc5b571f5af4e8ee187a7'

Approved by:    re (cperciva)

(cherry picked from commit 736e411a737b9f57c1303e6d15c5afd4f63af0d3)
(cherry picked from commit 919b10729753336ef16338295c61ebd085348fb9)
DeltaFile
+14-23crypto/krb5/src/lib/krb5/ccache/cc_mslsa.c
+23-1crypto/krb5/README
+10-10crypto/krb5/src/configure
+8-0crypto/krb5/src/lib/krb5/ccache/cc_file.c
+3-3crypto/krb5/src/patchlevel.h
+2-2crypto/krb5/src/man/kpasswd.man
+60-3934 files not shown
+120-9740 files