FreeBSD/src 4b32fdbsys/compat/lindebugfs lindebugfs.c

lindebugfs: check that name is set as otherwise pfs_alloc_node_flags() panics

I have hit the case multiple times that some LinuxKPI field may not be
set during driver bringup and lindebugfs would cause a panic.
The backtrace goes like:

  strlen() at strlen+0x54
  pfs_create_dir() at pfs_create_dir+0x41
  debugfs_create_dir() at debugfs_create_dir+0xa1
  ...

While the problem is clearly in LinuxKPI or the driver, we likely
should at least add an assert to pfs_create_dir() if name is NULL
like we have for pfs_add_node() but for lindebugfs at least make
this a graceful error and continue without creating the dir instead
of panicing.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days

    [2 lines not shown]
DeltaFile
+3-0sys/compat/lindebugfs/lindebugfs.c
+3-01 files

LLVM/project 75f03a6llvm/lib/CodeGen InlineSpiller.cpp, llvm/test/CodeGen/Hexagon regalloc-bad-undef.mir

[InlineSpiller] Hoist spills only when all of its subranges are available (#177703)

Context:
https://github.com/llvm/llvm-project/issues/176001#issuecomment-3793846479

When we're hoisting a spill to another block, and storing one of its
sibling values there instead, we need to make sure all sub ranges of
that sibling value is alive at the insertion point. Otherwise, we might
accidentally store compromised subranges values back to the spill slot.
DeltaFile
+146-0llvm/test/CodeGen/RISCV/pr176001.ll
+8-2llvm/lib/CodeGen/InlineSpiller.cpp
+4-4llvm/test/CodeGen/Hexagon/regalloc-bad-undef.mir
+158-63 files

LLVM/project c92e24blldb/source/Target Statistics.cpp, lldb/test/API/functionalities/stats_api minidump.yaml TestStatisticsAPI.py

[LLDB][Statistics] Add coreFile to Target stats (#161448)

This patch adds the coreFilePath, if applicable, to the target
statistics for LLDB. My primary motivation here is sanity check user
reports when they say I had an issue with a specific corefile and then
validating it was in fact that specifies corefile, as right now there is
no guaruntee the filename and the process/target name will be the same.
DeltaFile
+38-0lldb/test/API/functionalities/stats_api/minidump.yaml
+22-0lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py
+4-0lldb/source/Target/Statistics.cpp
+64-03 files

FreeBSD/ports 3c6e05adevel/R-cran-gargle distinfo Makefile

devel/R-cran-gargle: Update to 1.6.1

Update dependencies as needed

ChangeLog:      https://github.com/r-lib/gargle/releases/tag/v1.6.1
PR:             292806
DeltaFile
+3-3devel/R-cran-gargle/distinfo
+2-2devel/R-cran-gargle/Makefile
+5-52 files

FreeBSD/ports 5e99d0btextproc/R-cran-vroom Makefile

textproc/R-cran-vroom: Fix tests

Tests are supposed to be run with unprivileged user. Running as root, tests fail.
See also: https://github.com/tidyverse/vroom/issues/611
DeltaFile
+9-2textproc/R-cran-vroom/Makefile
+9-21 files

LLVM/project 58f623clldb/include/lldb/API SBValue.h, lldb/include/lldb/ValueObject ValueObject.h

[lldb] Move ValueImpl and ValueLocker to ValueObject, NFC. (#178573)


This patch moves ValueImpl and ValueLocker to ValueObject.{h,cpp}. This follows the example set in TypeImpl/SBType, where we have something that SBType uses internally that needs to be exposed in the layer below. In this case, SBValue uses ValueImpl, which wraps ValueObject. The wrapper helps avoid bugs, so we want to keep it, but the script interpreter needs to use it and said interpreter is conceptually *below* the SB layer...which means we can't use methods on SBValue.

This patch is purely the code motion part of that, future patches will actually make use of this moved code.
DeltaFile
+0-166lldb/source/API/SBValue.cpp
+91-0lldb/source/ValueObject/ValueObject.cpp
+78-0lldb/include/lldb/ValueObject/ValueObject.h
+3-4lldb/include/lldb/API/SBValue.h
+172-1704 files

LLVM/project db6b186utils/bazel/llvm-project-overlay/mlir BUILD.bazel, utils/bazel/llvm-project-overlay/mlir/test BUILD.bazel

[bazel][[mlir][xegpu] Fix build for #177492 (#178728)

Fix d9c65f94b11f2fed7b78af3a8e7bec6c84bdf219.
DeltaFile
+4-0utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+5-02 files

HardenedBSD/src 9b2bc93sys/compat/freebsd32 freebsd32_misc.c, sys/sys ucred.h

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+8-4sys/compat/freebsd32/freebsd32_misc.c
+0-2sys/sys/ucred.h
+8-62 files

LLVM/project f951f63flang/include/flang/Optimizer/OpenACC Passes.td, flang/lib/Optimizer/OpenACC/Support FIROpenACCTypeInterfaces.cpp FIROpenACCUtils.cpp

[flang][acc] Add ACCOptimizeFirstprivateMap pass (#178546)

This pass optimizes acc.firstprivate_map operations generated during
OpenACC recipe materialization when acc.firstprivate is materialized
into the mapping and a private allocation inside region. The
optimization applies to scalar variables of trivial types (integers,
reals, logicals) as long as they are not optional.

The pass hoists loads from the firstprivate variable to before the
compute region, converting the firstprivate copy to a pass-by-value
pattern. This eliminates the need for runtime copying the firstprivate
variable since only its value is needed for initializing private copies.
DeltaFile
+241-0flang/test/Transforms/OpenACC/acc-optimize-firstprivate-map.fir
+193-0flang/lib/Optimizer/OpenACC/Transforms/ACCOptimizeFirstprivateMap.cpp
+4-37flang/lib/Optimizer/OpenACC/Support/FIROpenACCTypeInterfaces.cpp
+35-0flang/lib/Optimizer/OpenACC/Support/FIROpenACCUtils.cpp
+12-0flang/include/flang/Optimizer/OpenACC/Passes.td
+8-0mlir/include/mlir/Dialect/OpenACC/OpenACCOpsInterfaces.td
+493-375 files not shown
+515-4011 files

HardenedBSD/ports 2f5a3a5games/veloren-weekly distinfo Makefile.crates, games/veloren-weekly/files patch-gilrs

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+0-563math/rubygem-rb-gsl/files/patch-ruby3
+166-30games/veloren-weekly/files/patch-gilrs
+101-35games/veloren-weekly/distinfo
+49-16games/veloren-weekly/Makefile.crates
+28-0math/p5-Math-GSL-Alien/Makefile
+0-28math/p5-Alien-GSL/Makefile
+344-672125 files not shown
+565-882131 files

LLVM/project c31e13allvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.groupstaticsize.ll

[AMDGPU][GlobalISel] Add RegBankLegalize rules for groupstaticsize (#178618)

DeltaFile
+3-3llvm/test/CodeGen/AMDGPU/llvm.amdgcn.groupstaticsize.ll
+1-2llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.groupstaticsize.mir
+2-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+6-53 files

LLVM/project fc2b1e4mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp

[OpenMP][MLIR] Modify lowering OpenMP Dialect lowering to support attach mapping

This PR adjusts the LLVM-IR lowering to support the new attach map type that the runtime
uses to link data and pointer together, this swaps the mapping from the older
OMP_MAP_PTR_AND_OBJ map type in most cases and allows slightly more complicated ref_ptr/ptee
and attach semantics.
DeltaFile
+292-220mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+292-2201 files

LLVM/project 312d798llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp AMDGPURegBankLegalizeHelper.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.global.load.tr-w64.ll llvm.amdgcn.global.load.tr-w32.ll

[AMDGPU][GlobalISel] Add RegBankLegalize rules for global_load_tr_b* (#178545)

DeltaFile
+8-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+2-1llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeHelper.cpp
+1-1llvm/test/CodeGen/AMDGPU/llvm.amdgcn.global.load.tr-w64.ll
+1-1llvm/test/CodeGen/AMDGPU/llvm.amdgcn.global.load.tr-w32.ll
+12-34 files

LLVM/project ddaf107clang/test/CodeGenHLSL/builtins exp2-overloads.hlsl sinh-overloads.hlsl

[HLSL] Make log10, exp2, sinh overload tests stricter NFC (#177495)

This patch updates log10, exp2, sinh overload tests to use -O1 instead
of -disable-llvm-passes; also, the checks are updated to match the
change accordingly.

This work is part of https://github.com/llvm/llvm-project/issues/138016.
DeltaFile
+104-62clang/test/CodeGenHLSL/builtins/exp2-overloads.hlsl
+105-43clang/test/CodeGenHLSL/builtins/sinh-overloads.hlsl
+104-42clang/test/CodeGenHLSL/builtins/log10-overloads.hlsl
+313-1473 files

LLVM/project eb33585mlir/lib/Dialect/XeGPU/Transforms XeGPUSgToWiDistributeExperimental.cpp

[mlir][xegpu] Remove unused headers added in #177492 (#178719)

Remove unused headers added in #177492
DeltaFile
+0-3mlir/lib/Dialect/XeGPU/Transforms/XeGPUSgToWiDistributeExperimental.cpp
+0-31 files

LLVM/project 9eb797ellvm/lib/CodeGen TargetPassConfig.cpp

[CodeGen] Remove -gc-empty-basic-blocks alias flag (#178716)

This was deprecated earlier and switched to an alias so we would have
some time to update things through our internal compiler release
process. That has completed, so we can now remove the flag upstream.
DeltaFile
+0-7llvm/lib/CodeGen/TargetPassConfig.cpp
+0-71 files

LLVM/project cba7dcdllvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp AMDGPURegBankLegalizeHelper.cpp, llvm/test/CodeGen/AMDGPU/GlobalISel regbankselect-amdgcn.struct.ptr.buffer.store.ll regbankselect-amdgcn.struct.buffer.store.ll

[AMDGPU][GlobalISel] Add RegBankLegalize rules for buffer store variants (#178488)

Add rules for G_AMDGPU_BUFFER_STORE, G_AMDGPU_BUFFER_STORE_FORMAT,
G_AMDGPU_BUFFER_STORE_FORMAT_D16, and G_AMDGPU_TBUFFER_STORE_FORMAT.
DeltaFile
+27-31llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.struct.ptr.buffer.store.ll
+27-31llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.struct.buffer.store.ll
+27-13llvm/test/CodeGen/AMDGPU/GlobalISel/buffer-schedule.ll
+23-12llvm/test/CodeGen/AMDGPU/GlobalISel/buffer-load-store-pointers.ll
+14-2llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+10-5llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeHelper.cpp
+128-9420 files not shown
+164-12926 files

NetBSD/src YWFRlb3doc 3RDPARTY CHANGES

   new bind
VersionDeltaFile
1.2162+3-3doc/3RDPARTY
1.3223+2-2doc/CHANGES
+5-52 files

NetBSD/src b5jcfp8distrib/sets/lists/base shl.mi, distrib/sets/lists/debug shl.mi

   bump for new bind
VersionDeltaFile
1.1029+4-4distrib/sets/lists/base/shl.mi
1.387+3-3distrib/sets/lists/debug/shl.mi
+7-72 files

NetBSD/src c8SblSJexternal/mpl/bind/dist configure config.sub, external/mpl/bind/dist/lib/dns zone.c resolver.c

   Merge changes between bind-9.20.11 and 9.20.18
VersionDeltaFile
1.22+3,878-2,312external/mpl/bind/dist/configure
1.26+560-427external/mpl/bind/dist/lib/dns/zone.c
1.4+703-239external/mpl/bind/dist/config.sub
1.24+483-267external/mpl/bind/dist/lib/dns/resolver.c
1.16+326-179external/mpl/bind/dist/lib/dns/keymgr.c
1.4+318-116external/mpl/bind/dist/lib/isccfg/check.c
+6,268-3,540791 files not shown
+10,680-7,384797 files

LLVM/project ea25166llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp, llvm/test/CodeGen/X86 masked_expandload_isel.ll

[CodeGen] Fix MachineMemOperand Size of MaskedLoad (#156398)

Fix MIR printing unknown-size issue of MaskedLoad.
DeltaFile
+2-2llvm/test/CodeGen/X86/masked_expandload_isel.ll
+1-1llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+3-32 files

NetBSD/src kp54B25distrib/sets/lists/tests mi, tests/usr.bin/netpgpverify t_netpgpverify.sh Makefile

   Simplify netpgpverify tests

   Put files into the file system instead of uudecoded-inline-data.
VersionDeltaFile
1.6+45-7,358tests/usr.bin/netpgpverify/t_netpgpverify.sh
1.2+46-1tests/usr.bin/netpgpverify/Makefile
1.1409+45-1distrib/sets/lists/tests/mi
1.1+40-0tests/usr.bin/netpgpverify/data/expected33
1.1+33-0tests/usr.bin/netpgpverify/data/expected31
1.1+32-0tests/usr.bin/netpgpverify/data/jj.asc
+241-7,36041 files not shown
+521-7,36147 files

LLVM/project 8302362offload/cmake/caches FlangOffload.cmake, openmp/docs Building.md

[Offload] Provide a cache file for building OpenMP w/ Flang offloading (#178472)

Summary:
This build is more annoying, enables everything required for this
version of the runtime.
DeltaFile
+13-0offload/cmake/caches/FlangOffload.cmake
+2-0openmp/docs/Building.md
+15-02 files

LLVM/project 8513cadllvm/utils profcheck-xfail.txt

[ProfCheck] Add ExpandIRInsts test to profcheck-xfail.txt

There are in-flight patches to fix the remaining ExpandIRInsts failures
that should fix this. Disable for now to get the bot back to green.
DeltaFile
+1-0llvm/utils/profcheck-xfail.txt
+1-01 files

LLVM/project 73dc25clibc/include pthread.yaml, libc/src/pthread pthread_getattr_np.h

[libc] Add pthread_getattr_np declaration (#178549)

Add header declaration and implementation header for the GNU
extension function pthread_getattr_np.  An actual implementation
can come later.
DeltaFile
+21-0libc/src/pthread/pthread_getattr_np.h
+6-0libc/include/pthread.yaml
+27-02 files

LLVM/project 6d27fa7llvm/utils update_analyze_test_checks.py

[NFC][UTC] Avoid copy-paste in `update_analyze_test_checks.py` (#178456)

I'm going to extend it to support VPlan dump tests soon and this cleanup
avoids future growth of the `if/elif/elif` chain.
DeltaFile
+11-19llvm/utils/update_analyze_test_checks.py
+11-191 files

FreeBSD/ports 8e2de3fsysutils/nut-devel distinfo pkg-plist

sysutils/nut-devel: Update to the latest networkupstools/nut github commit
DeltaFile
+3-3sysutils/nut-devel/distinfo
+5-0sysutils/nut-devel/pkg-plist
+2-2sysutils/nut-devel/Makefile
+10-53 files

HardenedBSD/ports 8e2de3fsysutils/nut-devel distinfo pkg-plist

sysutils/nut-devel: Update to the latest networkupstools/nut github commit
DeltaFile
+3-3sysutils/nut-devel/distinfo
+5-0sysutils/nut-devel/pkg-plist
+2-2sysutils/nut-devel/Makefile
+10-53 files

LLVM/project a2fbf87lldb/source/Commands CommandObjectDWIMPrint.cpp

[lldb] Make `print` delegate to synthetic frames.

This patch is more of a proposal in that it's a pretty dramatic change to the way that `print` works. It completely delegates getting values to the frame if the frame is synthetic, and does not redirect at all if the frame fails.

For this patch, the main goal was to allow the synthetic frame to bubble up its own errors in expression evaluation, rather than having errors come back with an extra "could not find identifier <blah>" or worse, simply get swallowed. If there's a better way to handle this, I'm more than happy to change this as long as the core goals of 'delegate variable/value extraction to the synthetic frame', and 'allow the synthetic frame to give back errors that are displayed to the user' can be met.

stack-info: PR: https://github.com/llvm/llvm-project/pull/178602, branch: users/bzcheeseman/stack/7
DeltaFile
+23-2lldb/source/Commands/CommandObjectDWIMPrint.cpp
+23-21 files

LLVM/project 198a272lldb/include/lldb/Interpreter/Interfaces ScriptedFrameInterface.h, lldb/source/Plugins/Process/scripted ScriptedFrame.cpp ScriptedFrame.h

[lldb] Add support for ScriptedFrame to provide values/variables.

This patch adds plumbing to support the implementations of StackFrame::Get{*}Variable{*} on ScriptedFrame. The major pieces required are:
- A modification to ScriptedFrameInterface, so that we can actually call the python methods.
- A corresponding update to the python implementation to call the python methods.
- An implementation in ScriptedFrame that can get the variable list on construction inside ScriptedFrame::Create, and pass that list into the ScriptedFrame so it can get those values on request.

There is a major caveat, which is that if the values from the python side don't have variables attached, right now, they won't be passed into the scripted frame to be stored in the variable list. Future discussions around adding support for 'extended variables' when printing frame variables may create a reason to change the VariableListSP into a ValueObjectListSP, and generate the VariableListSP on the fly, but that should be addressed at a later time.

This patch also adds tests to the frame provider test suite to prove these changes all plumb together correctly.

stack-info: PR: https://github.com/llvm/llvm-project/pull/178575, branch: users/bzcheeseman/stack/6
DeltaFile
+82-0lldb/test/API/functionalities/scripted_frame_provider/test_frame_providers.py
+72-5lldb/source/Plugins/Process/scripted/ScriptedFrame.cpp
+53-0lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py
+29-0lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedFramePythonInterface.cpp
+20-1lldb/source/Plugins/Process/scripted/ScriptedFrame.h
+11-0lldb/include/lldb/Interpreter/Interfaces/ScriptedFrameInterface.h
+267-62 files not shown
+277-68 files