FreeBSD/src 3e9f4fdlib/libsys mq_open.2

mq_open(2): document sysctl limit EINVAL and ENFILE conditions

Document two missing error conditions for mq_open(2):

- EINVAL: returned when mq_maxmsg exceeds kern.mqueue.maxmsg or
  mq_msgsize exceeds kern.mqueue.maxmsgsize.
- ENFILE: add kern.mqueue.maxmq sysctl name to the existing entry.

PR:             243209
Reviewed by:    mhorne
MFC after:      1 week
Signed-off-by:  Kit Dallege <xaum.io at gmail.com>
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2098
DeltaFile
+22-1lib/libsys/mq_open.2
+22-11 files

FreeBSD/src b345e18sys/dev/ena ena_netmap.c

ena: Verify that an ENA ring is in netmap only in native mode

netmap operates in two modes:
1) Emulated - netmap handling is done by the network stack, the
NIC driver operates transparently to netmap.
2) Native - netmap management is done by the NIC driver.

When checking whether a specific ENA ring is running in netmap
mode, only the following checks were done:
1. IFCAP_NETMAP - Check whether netmap capability is enabled on
the device.
2. NKR_NETMAP_ON - Check whether netmap is actively using this
ring.

The above checks implied that the netmap mode is native and the
ENA driver needs to handle the netmap logic.
The code was missing an explicit check on whether native mode
is actually on (NAF_NATIVE).
This led to a case where though emulated mode was used and

    [19 lines not shown]
DeltaFile
+5-3sys/dev/ena/ena_netmap.c
+5-31 files

FreeBSD/src 4fa6c1fsys/dev/ena ena.c ena_rss.h

ena: Minor changes

1. Move parenthesis to correct place in switch and fix include order
2. Add comment at the end of an ifdef for clarity
3. Change include order.

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55696
Sponsored by: Amazon, Inc.

(cherry picked from commit 2667a8454cff5896c7b467c78cd4ace5ad40f5eb)
DeltaFile
+2-3sys/dev/ena/ena.c
+1-2sys/dev/ena/ena_rss.h
+3-52 files

FreeBSD/src 9292351sys/dev/ena ena.h

ena: Update driver version to v2.8.2

Bug Fixes:
* Verify that an ENA ring is in netmap only in native mode

Minor Changes:
* Move parenthesis to correct place in switch
* Add comment
* Reorder define

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55698
Sponsored by: Amazon, Inc.

(cherry picked from commit 96c5eaf0ac6b98d0832e1037d672064de43a7e00)
DeltaFile
+1-1sys/dev/ena/ena.h
+1-11 files

FreeBSD/ports e74caedsecurity/wazuh-agent distinfo, security/wazuh-dashboard distinfo

security/wazuh*: Update to 4.14.4

ChangeLog at:   https://documentation.wazuh.com/current/release-notes/release-4-14-4.html
DeltaFile
+896-61security/wazuh-manager/pkg-plist
+75-77security/wazuh-manager/distinfo
+39-39security/wazuh-agent/distinfo
+11-20security/wazuh-manager/Makefile
+9-9security/wazuh-server/distinfo
+5-5security/wazuh-dashboard/distinfo
+1,035-2115 files not shown
+1,045-22311 files

FreeBSD/ports 151e4dasecurity/zaproxy Makefile

security/zaproxy: Update JAVA_VERSION to 17+

- JAVA 22 will be removed soon so 17+ shows us the current java versions
  supported by zaproxy
- Bump PORTREVISION

PR:             294176
Reported by:    ronald
DeltaFile
+2-2security/zaproxy/Makefile
+2-21 files

LLVM/project 1cf2c6aclang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevelFormat.h, clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevel.cpp

clean up
DeltaFile
+70-39clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+5-39clang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevelFormat.h
+1-2clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.cpp
+1-0clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageExtractor.cpp
+77-804 files

LLVM/project 8fa4b3dlldb/test/API/commands/disassemble/basic TestFrameDisassemble.py, lldb/test/API/commands/frame/language TestGuessLanguage.py

[lldb] Simplify some tests to run_to_source_breakpoint (NFC) (#190082)

Many tests have ad hoc forms of the launch & break steps done by
`lldbutil.run_to_source_breakpoint`. This changes some of those tests to
use `run_to_source_breakpoint` instead.

Assisted-by: claude
DeltaFile
+3-31lldb/test/API/commands/disassemble/basic/TestFrameDisassemble.py
+2-31lldb/test/API/commands/frame/language/TestGuessLanguage.py
+2-30lldb/test/API/commands/frame/var/TestFrameVar.py
+2-29lldb/test/API/lang/cpp/global_operators/TestCppGlobalOperators.py
+2-26lldb/test/API/functionalities/tail_call_frames/sbapi_support/TestTailCallFrameSBAPI.py
+2-26lldb/test/API/functionalities/tail_call_frames/thread_step_out_or_return/TestSteppingOutWithArtificialFrames.py
+13-1734 files not shown
+21-25710 files

LLVM/project 03a4976clang/lib/AST ExprConstant.cpp, clang/lib/Sema SemaExprCXX.cpp

Use setExprNeedsCleanups in BuildCXXNew and avoid breaking c++98

This approach is much cleaner, but broke checkICE reporting in c++98.
Stepping through a debugger shows that this happend because the
static_assert test didn not recognize ExprWithCleanups as transparent to
constant evaluation. To addresse this, we update CheckICE to recurse
into the sub-expression, and keep the old behavior.
DeltaFile
+1-15clang/lib/Sema/SemaExprCXX.cpp
+4-1clang/lib/AST/ExprConstant.cpp
+5-162 files

LLVM/project a4efda6clang/lib/CodeGen CGCall.cpp, clang/lib/Sema SemaExprCXX.cpp

[clang] Use uniform lifetime bounds under exceptions

To do this we have to slightly modify how some expressions are handled
in Sema. Principally, we need to ensure that calls to new for
non-trivial types still have their destructors run. Generally this isn't
an issue, since these just get sunk into the surrounding scope. With
more lifetime annotations being produced for the expressions, we found
that some calls to `new` in an unreachable switch arm would not be
wrapped in ExprWithCleanups. As a result, they remain on the EhStack
when processing the default label, and since the dead arm doesn't
dominate the default label, we can end up with a case where the def-use
chain is broken (e.g. the def doesn't dominate all uses). Technically
this path would be impossible to reach due to the active bit, but it
still failed to satisfy a dominance relationship.

With that in place, we can remove the constraint on only using tighter
lifetimes when exceptions are disabled.
DeltaFile
+36-0clang/test/CodeGenCXX/aggregate-lifetime-invoke.cpp
+15-1clang/lib/Sema/SemaExprCXX.cpp
+2-4clang/lib/CodeGen/CGCall.cpp
+53-53 files

LLVM/project decdf1cclang/lib/AST ExprConstant.cpp

Use more restrictive condition for adding ExprWithCleanups
DeltaFile
+1-4clang/lib/AST/ExprConstant.cpp
+1-41 files

LLVM/project 148e7declang/lib/CodeGen CGCall.cpp CGCall.h, clang/test/CodeGen lifetime-invoke-c.c lifetime-bug.cpp

Try to control the scope
DeltaFile
+21-3clang/lib/CodeGen/CGCall.cpp
+16-3clang/lib/CodeGen/CGCall.h
+7-9clang/test/CodeGen/lifetime-invoke-c.c
+1-9clang/test/CodeGen/lifetime-bug.cpp
+4-4clang/test/CodeGenCXX/aggregate-lifetime-invoke.cpp
+49-285 files

LLVM/project 9f8d1e2clang/test/CodeGen lifetime-bug-2.cpp

Save test for conflicting cleanups
DeltaFile
+8-2clang/test/CodeGen/lifetime-bug-2.cpp
+8-21 files

LLVM/project 8e7f5d0clang/test/CodeGen lifetime-bug-2.cpp

Add test case
DeltaFile
+30-0clang/test/CodeGen/lifetime-bug-2.cpp
+30-01 files

LLVM/project d9cfa05clang/lib/Sema SemaExprCXX.cpp

Avoid canThrow, and just check for Exceptions being enabled
DeltaFile
+1-1clang/lib/Sema/SemaExprCXX.cpp
+1-11 files

LLVM/project a128c4aclang/lib/CodeGen CGCleanup.cpp

Remove unneeded conditions from CGCleanup.cpp
DeltaFile
+3-4clang/lib/CodeGen/CGCleanup.cpp
+3-41 files

LLVM/project 1240369clang/lib/CodeGen CGCall.cpp, clang/lib/Sema SemaExprCXX.cpp

Improve exception compatibility.
DeltaFile
+92-19clang/test/CodeGen/lifetime-invoke-c.c
+61-18clang/test/CodeGenCXX/aggregate-lifetime-invoke.cpp
+18-3clang/test/CodeGen/lifetime-bug.cpp
+1-4clang/lib/CodeGen/CGCall.cpp
+4-0clang/lib/Sema/SemaExprCXX.cpp
+176-445 files

LLVM/project e2a446eclang/lib/CodeGen CGCall.cpp CGCall.h, clang/test/CodeGen stack-usage-lifetimes.c lifetime-invoke-c.c

[clang] Use tighter lifetime bounds for C temporary arguments

In C, consecutive statements in the same scope are under
CompoundStmt/CallExpr, while in C++ they typically fall under
CompoundStmt/ExprWithCleanup. This leads to different behavior with
respect to where pushFullExprCleanUp inserts the lifetime end markers
(e.g., at the end of scope).

For these cases, we can track and insert the lifetime end markers right
after the call completes. Allowing the stack space to be reused
immediately. This partially addresses #109204 and #43598 for improving
stack usage.
DeltaFile
+89-0clang/test/CodeGen/stack-usage-lifetimes.c
+29-19clang/test/CodeGen/lifetime-invoke-c.c
+20-6clang/lib/CodeGen/CGCall.cpp
+12-12clang/test/CodeGenCXX/aggregate-lifetime-invoke.cpp
+15-5clang/test/CodeGen/lifetime-bug.cpp
+19-0clang/lib/CodeGen/CGCall.h
+184-422 files not shown
+186-448 files

LLVM/project e295bd3clang/test/CodeGen lifetime-bug-2.c

Remove test that no longer repros error case

Something changed w/in clang to prevent this crash from happening.
DeltaFile
+0-58clang/test/CodeGen/lifetime-bug-2.c
+0-581 files

LLVM/project fe665declang/lib/CodeGen CGCall.cpp, clang/test/CodeGen lifetime-call-temp.c lifetime-bug.cpp

Reapply "[clang] Limit lifetimes of temporaries to the full expression (#170517)"

This reverts commit 6d38c876478dac4a42f9d6e37692348deabf6a25. The
current version only works when exceptions are not enabled until we
determine how to resolve issues around broken dominance relationships
with the def-use chain.
DeltaFile
+98-0clang/test/CodeGen/lifetime-call-temp.c
+58-0clang/test/CodeGen/lifetime-bug.cpp
+58-0clang/test/CodeGen/lifetime-bug-2.c
+40-0clang/test/CodeGenCXX/aggregate-lifetime-invoke.cpp
+36-0clang/test/CodeGen/lifetime-invoke-c.c
+24-1clang/lib/CodeGen/CGCall.cpp
+314-17 files not shown
+365-413 files

FreeBSD/src 3a01651sys/dev/ena ena.c ena_rss.h

ena: Minor changes

1. Move parenthesis to correct place in switch and fix include order
2. Add comment at the end of an ifdef for clarity
3. Change include order.

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55696
Sponsored by: Amazon, Inc.

(cherry picked from commit 2667a8454cff5896c7b467c78cd4ace5ad40f5eb)
DeltaFile
+2-3sys/dev/ena/ena.c
+1-2sys/dev/ena/ena_rss.h
+3-52 files

FreeBSD/src 332708asys/dev/ena ena.h

ena: Update driver version to v2.8.2

Bug Fixes:
* Verify that an ENA ring is in netmap only in native mode

Minor Changes:
* Move parenthesis to correct place in switch
* Add comment
* Reorder define

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55698
Sponsored by: Amazon, Inc.

(cherry picked from commit 96c5eaf0ac6b98d0832e1037d672064de43a7e00)
DeltaFile
+1-1sys/dev/ena/ena.h
+1-11 files

FreeBSD/src 1059899sys/dev/ena ena_netmap.c

ena: Verify that an ENA ring is in netmap only in native mode

netmap operates in two modes:
1) Emulated - netmap handling is done by the network stack, the
NIC driver operates transparently to netmap.
2) Native - netmap management is done by the NIC driver.

When checking whether a specific ENA ring is running in netmap
mode, only the following checks were done:
1. IFCAP_NETMAP - Check whether netmap capability is enabled on
the device.
2. NKR_NETMAP_ON - Check whether netmap is actively using this
ring.

The above checks implied that the netmap mode is native and the
ENA driver needs to handle the netmap logic.
The code was missing an explicit check on whether native mode
is actually on (NAF_NATIVE).
This led to a case where though emulated mode was used and

    [19 lines not shown]
DeltaFile
+5-3sys/dev/ena/ena_netmap.c
+5-31 files

NetBSD/src fJ3N3hYlib/libm/src s_nextafterl.c

   Special handling for exponents of 0 on m68k.

   Handle moving between subnormal and normal numbers, set the hidden bit
   appropriately.

   This was found by libm/t_next failures on m68ksf, although failures did not
   occur in an fpu emulation via qemu/mac68k.
VersionDeltaFile
1.7+25-10lib/libm/src/s_nextafterl.c
+25-101 files

LLVM/project 6c4149dclang/lib/CIR/Dialect/Transforms FlattenCFG.cpp, clang/test/CIR/CodeGen try-catch-all-with-cleanup.cpp try-catch.cpp

[CIR] Fix handling of catch-all with cleanups (#190233)

We had a bug where exceptions caught with catch-all were not properly
handling a thrown exception if the catch-all handler enclosed a cleanup
handler. The structured CIR was generated correctly, but when we
flattened the CFG and introduced cir.eh.initiate operations, the
cir.eh.initiate for the cleanup's EH path was incorrectly marked as
cleanup-only, even though it chained to the dispatch for the catch-all
handler. This resulted in the landing pad generated for the cleanup not
being marked as having a catch-all handler, so the exception was not
caught.

This change fixes the problem in the FlattenCFG pass.

Assisted-by: Cursor / claude-4.6-opus-high
DeltaFile
+138-0clang/test/CIR/CodeGen/try-catch-all-with-cleanup.cpp
+48-6clang/lib/CIR/Dialect/Transforms/FlattenCFG.cpp
+1-1clang/test/CIR/CodeGen/try-catch.cpp
+1-1clang/test/CIR/Transforms/flatten-try-op.cir
+188-84 files

LLVM/project 3da8fd5clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp, clang/test/CIR/CodeGenCUDA device-stub.cu

[CIR][CUDA] Do Runtime Kernel Registration
DeltaFile
+119-2clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+28-2clang/test/CIR/CodeGenCUDA/device-stub.cu
+147-42 files

LLVM/project 2103a74clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp

fix undefined void ty
DeltaFile
+1-0clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+1-01 files

OpenBSD/ports E5LKwPddevel/py-python-discovery distinfo Makefile

   Update py-python-discovery 1.1.2 -> 1.2.1
   Changelogs: https://github.com/tox-dev/python-discovery/releases
VersionDeltaFile
1.2+2-2devel/py-python-discovery/distinfo
1.2+2-1devel/py-python-discovery/Makefile
+4-32 files

FreeBSD/src bee397aetc/mtree BSD.usr.dist

mtree: stop creating /usr/share/doc/ncurses

In base 68ad2b0d7af2a the ncurses html documentation was removed, and
entries added to ObsoleteFiles.inc to get rid of /usr/share/doc/ncurses,
but the directory was still being re-created via BSD.usr.dist. Remove it
from there too.

Fixes:          68ad2b0d7af2a
MFC after:      1 month

(cherry picked from commit 212272a43767c3d7be3ddb87605612f6164774c1)
DeltaFile
+0-2etc/mtree/BSD.usr.dist
+0-21 files

LLVM/project 031a732clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp

unreachable on RDC compilation
DeltaFile
+3-5clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+3-51 files