FreeBSD/ports 731268fmisc/codex distinfo Makefile

misc/codex: Update to 0.87.0

Changelog: https://github.com/openai/codex/releases/tag/rust-v0.87.0

Reported by:    GitHub (watch releases)
DeltaFile
+3-3misc/codex/distinfo
+1-1misc/codex/Makefile
+4-42 files

LLVM/project fe14661clang/test/CodeGen/LoongArch targetattr-la64.c, clang/test/Driver loongarch-march.c

Fix a typo
DeltaFile
+4-4clang/test/Driver/loongarch-march.c
+4-4clang/test/CodeGen/LoongArch/targetattr-la64.c
+1-1llvm/include/llvm/TargetParser/LoongArchTargetParser.h
+9-93 files

LLVM/project 387e6e2clang/include/clang/CIR MissingFeatures.h, clang/lib/CIR/CodeGen CIRGenExprAggregate.cpp CIRGenCoroutine.cpp

[CIR] Upstream support co_return of values from co_await (#173174)

This PR adds support for returning the result of a `co_await` via
`co_return`. A new variable, `__coawait_resume_rval`, is introduced to
store the returned value.
DeltaFile
+85-1clang/test/CIR/CodeGen/coro-task.cpp
+23-1clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp
+9-2clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
+6-4clang/test/CIR/CodeGen/trivial-ctor-const-init.cpp
+0-1clang/include/clang/CIR/MissingFeatures.h
+123-95 files

LLVM/project 483c683clang/lib/CodeGen CodeGenModule.cpp, llvm/include/llvm/Support CodeGen.h

[NFC][win] Use an enum for the cfguard module flag (#176461)

Currently the `cfguard` module flag can be set to 1 (emit tables only,
no checks) or 2 (emit tables and checks).

This change formalizes that definition by moving these values into an
enum, instead of just having them documented in comments.

Split out from #176276
DeltaFile
+5-7llvm/lib/Transforms/CFGuard/CFGuard.cpp
+8-4clang/lib/CodeGen/CodeGenModule.cpp
+10-0llvm/include/llvm/Support/CodeGen.h
+4-5llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp
+7-0llvm/lib/IR/Module.cpp
+3-3llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+37-192 files not shown
+42-208 files

FreeBSD/src d198ad5sys/vm swap_pager.c

swap_pager_getpages(): some pages from ma[] might be bogus

Same as vnode_pager_generic_getpages_async(), swap_pager_getpages() must
handle a possibility of the provided page run to include bogus_page on
some positions, when called from sendfile_swapin().  The swap pager is
used for tmpfs vnodes.

In particular, the bogus page must not be used for pindex calculation,
we better not update the flags on it or wait for the flag clearing, and
we must not call vm_page_valid() because the function expects busy page.

This was bisected down to 72ddb6de1028426 (unix: increase
net.local.(stream|seqpacket).(recv|send)space to 64 KiB),
which is somewhat surprising, but apparently reasonable because it
allowed the run of more than one page for page-in from the swap pager,
which now might include valid pages replaced by bogus one.

In collaboration with:  pho
Reviewed by:    glebius, markj

    [3 lines not shown]
DeltaFile
+29-8sys/vm/swap_pager.c
+29-81 files

FreeBSD/src b02ddb5sys/vm swap_pager.c

swap_pager_getpages(): assert that bp->b_pages[] is accessed in bounds

Reviewed by:    glebius, markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D54713
DeltaFile
+3-0sys/vm/swap_pager.c
+3-01 files

FreeBSD/src 3fe275csys/kern kern_sendfile.c

sendfile: remove calculation of unused bsize

Reviewed by:    glebius, markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D54713
DeltaFile
+3-6sys/kern/kern_sendfile.c
+3-61 files

NetBSD/src CTbd3Ktsys/dev/pad pad.c, sys/kern subr_autoconf.c subr_userconf.c

   Allow "attach" directives to have interface attributes, rather than
   restricting them to plain attributes only.

   Consider the case of a USB controller for which there is a generic
   driver with multiple front-end bus attachments.  Normally, a USB
   controller driver carries the interface attribute necessary to attach
   a USB root hub / bus instance.  But, on some systems, a platform-specific
   attachment may have other nodes in the device tree that are needed to
   enable or configure the USB controller, that appear in the device tree
   as children of the USB controller.  These devices may need to attach
   using a different interface attribute, unrelated to USB functionality.

   Prior to this change, it would have been necessary to put the platform-
   specific interface attribute onto the generic driver.  But that comes
   with side-effects on other platforms where that driver might be used.

   In an ideal scenario, an attachment with special requirements should be
   able to carry attachment-specific interface attributes to handle those
   requirements, and this change enables that.  When searching for prospective

    [14 lines not shown]
VersionDeltaFile
1.318+110-20sys/kern/subr_autoconf.c
1.37+76-4usr.bin/config/mkioconf.c
1.193+17-3sys/sys/device.h
1.88+9-4usr.bin/config/sem.c
1.29+5-4sys/kern/subr_userconf.c
1.86+4-4sys/dev/pad/pad.c
+221-393 files not shown
+228-459 files

LLVM/project 719a8ebllvm/lib/Target/RISCV RISCVCallingConv.cpp

[RISCV][llvm] Remove outdated FIXME in calling convention. NFC (#176350)

DeltaFile
+0-2llvm/lib/Target/RISCV/RISCVCallingConv.cpp
+0-21 files

OpenBSD/ports XWBHektnet/tdlib distinfo Makefile.inc

   update to tdlib 1.8.60
VersionDeltaFile
1.14+2-2net/tdlib/distinfo
1.8+2-2net/tdlib/Makefile.inc
+4-42 files

OpenBSD/ports 0jCTOxSdevel/github-cli distinfo modules.inc

   update to github-cli 2.85.0
VersionDeltaFile
1.63+542-4,432devel/github-cli/distinfo
1.55+213-1,922devel/github-cli/modules.inc
1.71+1-1devel/github-cli/Makefile
+756-6,3553 files

FreeNAS/freenas 8b1e46ftests/sharing_protocols/iscsi test_261_iscsi_cmd.py

Improve test__resize_target_zvol and add HA/ALUA version
DeltaFile
+65-6tests/sharing_protocols/iscsi/test_261_iscsi_cmd.py
+65-61 files

HardenedBSD/src f8b8fcdlib/libc/stdlib tdestroy.c, sys/netpfil/ipfw ip_fw_table.c ip_fw_table_value.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+22-269sys/netpfil/ipfw/ip_fw_table.c
+20-103sys/netpfil/ipfw/ip_fw_table_value.c
+96-0tests/sys/netpfil/ipfw/table.sh
+13-66sys/netpfil/ipfw/ip_fw_sockopt.c
+35-41sys/netpfil/ipfw/ip_fw_table.h
+32-34lib/libc/stdlib/tdestroy.c
+218-51314 files not shown
+262-57520 files

OpenBSD/ports f8aWzPLnet/bro Makefile, net/bro/patches patch-src_file_analysis_analyzer_x509_functions_bif patch-src_DNS_Mgr_h

   update to zeek 8.1.0
VersionDeltaFile
1.8+7-27net/bro/patches/patch-src_file_analysis_analyzer_x509_functions_bif
1.48+22-12net/bro/pkg/PLIST
1.1+28-0net/bro/patches/patch-src_DNS_Mgr_h
1.158+11-3net/bro/Makefile
1.1+13-0net/bro/patches/patch-auxil_zeek-aux_adtrace_ethertype_h
1.1+11-0net/bro/patches/patch-auxil_zeek-aux_adtrace_adtrace_c
+92-425 files not shown
+95-4511 files

OpenBSD/ports ul1JYIEaudio/noson distinfo Makefile

   update to noson 2.12.11
VersionDeltaFile
1.5+2-2audio/noson/distinfo
1.6+1-1audio/noson/Makefile
+3-32 files

OpenBSD/ports pLgzZQ4net/magic-wormhole distinfo Makefile, net/magic-wormhole/pkg PLIST

   update to magic-wormhole 0.22.0
VersionDeltaFile
1.14+8-8net/magic-wormhole/pkg/PLIST
1.11+2-2net/magic-wormhole/distinfo
1.23+1-1net/magic-wormhole/Makefile
+11-113 files

OpenBSD/ports xewR8v2devel/py-iterable-io Makefile distinfo

   update to py-iterable-io 1.0.1
VersionDeltaFile
1.4+3-4devel/py-iterable-io/Makefile
1.2+2-2devel/py-iterable-io/distinfo
+5-62 files

HardenedBSD/src b0c13e7sys/netpfil/ipfw ip_fw_table.c ip_fw_table_value.c

ipfw: remove locking workarounds in the table code

Before the "upper half lock" became sleepable the table manipulation code
needed sophisticated workarounds to recover from races, where the lock is
temporarily dropped to do malloc(M_WAITOK).  Remove all these workarounds
as they are no longer needed.

Differential Revision:  https://reviews.freebsd.org/D54580
DeltaFile
+13-240sys/netpfil/ipfw/ip_fw_table.c
+20-92sys/netpfil/ipfw/ip_fw_table_value.c
+35-41sys/netpfil/ipfw/ip_fw_table.h
+68-3733 files

FreeBSD/src b0c13e7sys/netpfil/ipfw ip_fw_table.c ip_fw_table_value.c

ipfw: remove locking workarounds in the table code

Before the "upper half lock" became sleepable the table manipulation code
needed sophisticated workarounds to recover from races, where the lock is
temporarily dropped to do malloc(M_WAITOK).  Remove all these workarounds
as they are no longer needed.

Differential Revision:  https://reviews.freebsd.org/D54580
DeltaFile
+13-240sys/netpfil/ipfw/ip_fw_table.c
+20-92sys/netpfil/ipfw/ip_fw_table_value.c
+35-41sys/netpfil/ipfw/ip_fw_table.h
+68-3733 files

HardenedBSD/src e3caa36sys/netpfil/ipfw ip_fw_sockopt.c ip_fw_table.c

ipfw: make the upper half lock sleepable

The so called upper half ipfw lock is not used in the forwarding path.  It
is used only during configuration changes and servicing system events like
interface arrival/departure or vnet creation.  The original code drops the
lock before malloc(M_WAITOK) and then goes into great efforts to recover
from possible races.  But the races still exist, e.g. create_table() would
first check for table existence, but then drop the lock.  The change also
fixes unlock leak in check_table_space() in a branch that apparently was
never entered.

Changing to a sleepable lock we can reduce a lot of existing complexity
associated with race recovery, and as use the lock to cover other
configuration time allocations, like recently added per-rule bpf(4) taps.

This change doesn't remove much of a race recovery code, to ease bisection
in case of a regression.  This will be done in a separate commit.  This
change just removes lock drops during configuration events.  The only
reduction is removal of get_map(), which is a straightforward reduce to a

    [11 lines not shown]
DeltaFile
+13-66sys/netpfil/ipfw/ip_fw_sockopt.c
+9-29sys/netpfil/ipfw/ip_fw_table.c
+14-23sys/netpfil/ipfw/ip_fw_dynamic.c
+10-10sys/netpfil/ipfw/ip_fw_private.h
+1-12sys/netpfil/ipfw/ip_fw_table_value.c
+0-5sys/netpfil/ipfw/ip_fw_nat.c
+47-1452 files not shown
+47-1538 files

FreeBSD/src e3caa36sys/netpfil/ipfw ip_fw_sockopt.c ip_fw_table.c

ipfw: make the upper half lock sleepable

The so called upper half ipfw lock is not used in the forwarding path.  It
is used only during configuration changes and servicing system events like
interface arrival/departure or vnet creation.  The original code drops the
lock before malloc(M_WAITOK) and then goes into great efforts to recover
from possible races.  But the races still exist, e.g. create_table() would
first check for table existence, but then drop the lock.  The change also
fixes unlock leak in check_table_space() in a branch that apparently was
never entered.

Changing to a sleepable lock we can reduce a lot of existing complexity
associated with race recovery, and as use the lock to cover other
configuration time allocations, like recently added per-rule bpf(4) taps.

This change doesn't remove much of a race recovery code, to ease bisection
in case of a regression.  This will be done in a separate commit.  This
change just removes lock drops during configuration events.  The only
reduction is removal of get_map(), which is a straightforward reduce to a

    [11 lines not shown]
DeltaFile
+13-66sys/netpfil/ipfw/ip_fw_sockopt.c
+9-29sys/netpfil/ipfw/ip_fw_table.c
+14-23sys/netpfil/ipfw/ip_fw_dynamic.c
+10-10sys/netpfil/ipfw/ip_fw_private.h
+1-12sys/netpfil/ipfw/ip_fw_table_value.c
+0-5sys/netpfil/ipfw/ip_fw_iface.c
+47-1452 files not shown
+47-1538 files

LLVM/project f53c2e6clang/include/clang/CIR/Dialect/Builder CIRBaseBuilder.h, clang/include/clang/CIR/Dialect/IR CIROps.td

[CIR] Upstream support for calling through method pointers (#176063)

This adds support to CIR for calling functions through pointer to method
pointers with the Itanium ABI for x86_64 targets. The ARM-specific
handling of method pointers is not-yet implemented.
DeltaFile
+151-2clang/lib/CIR/Dialect/Transforms/TargetLowering/LowerItaniumCXXABI.cpp
+84-0clang/test/CIR/CodeGen/pointer-to-member-func.cpp
+54-0clang/include/clang/CIR/Dialect/IR/CIROps.td
+47-0clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+44-0clang/lib/CIR/CodeGen/CIRGenExprCXX.cpp
+30-0clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
+410-27 files not shown
+451-813 files

FreeBSD/src 7eac31ctests/sys/netpfil/ipfw table.sh Makefile

tests/ipfw: add a simple fuzzing test for ipfw tables

Reviewed by:            pouria, ae
Differential Revision:  https://reviews.freebsd.org/D54579
DeltaFile
+96-0tests/sys/netpfil/ipfw/table.sh
+2-1tests/sys/netpfil/ipfw/Makefile
+98-12 files

HardenedBSD/src 7eac31ctests/sys/netpfil/ipfw table.sh Makefile

tests/ipfw: add a simple fuzzing test for ipfw tables

Reviewed by:            pouria, ae
Differential Revision:  https://reviews.freebsd.org/D54579
DeltaFile
+96-0tests/sys/netpfil/ipfw/table.sh
+2-1tests/sys/netpfil/ipfw/Makefile
+98-12 files

HardenedBSD/src f102a18sys/net if.c

net: on interface detach purge all its routes before detaching protocols

Otherwise, a forwarding thread may use the interface being detached.  This
is a regression from 0d469d23715d, which manifests itself as a reliably
reproducible panic in in6_selecthlim().  Note that there are old bug
reports about such a panic, and I believe this change will not fix them,
as their nature is not due to a screwed up detach sequence, but due to
lack of proper epoch(9) based synchronization between the detach and
forwarding.

Reviewed by:            pouria
Reported & tested by:   jhibbits
PR:                     292162
Fixes:                  0d469d23715d690b863787ebfa51529e1f6a9092
Differential Revision:  https://reviews.freebsd.org/D54721
DeltaFile
+2-2sys/net/if.c
+2-21 files

FreeBSD/src f102a18sys/net if.c

net: on interface detach purge all its routes before detaching protocols

Otherwise, a forwarding thread may use the interface being detached.  This
is a regression from 0d469d23715d, which manifests itself as a reliably
reproducible panic in in6_selecthlim().  Note that there are old bug
reports about such a panic, and I believe this change will not fix them,
as their nature is not due to a screwed up detach sequence, but due to
lack of proper epoch(9) based synchronization between the detach and
forwarding.

Reviewed by:            pouria
Reported & tested by:   jhibbits
PR:                     292162
Fixes:                  0d469d23715d690b863787ebfa51529e1f6a9092
Differential Revision:  https://reviews.freebsd.org/D54721
DeltaFile
+2-2sys/net/if.c
+2-21 files

OpenBSD/ports lLULt4dnet/syncthing distinfo Makefile

   update to syncthing 2.0.13
VersionDeltaFile
1.52+2-2net/syncthing/distinfo
1.76+1-2net/syncthing/Makefile
+3-42 files

LLVM/project 56522e4libc/test/src/strings wide_read_memory_test.cpp CMakeLists.txt

Create a poor-developer's msan for libc wide read functions. (#170586)

Most libcs optimize functions like strlen by reading in chunks larger
than a single character. As part of "the implementation", they can
legally do this as long as they are careful not to read invalid memory.

However, such tricks prevents those functions from being tested under
the various sanitizers.

This PR creates a test framework that can report when one of these
functions read or write in an invalid way without using the sanitizers.
DeltaFile
+101-0libc/test/src/strings/wide_read_memory_test.cpp
+15-0libc/test/src/strings/CMakeLists.txt
+116-02 files

LLVM/project 8021b02lldb/source/Plugins/Platform/WebAssembly PlatformWasm.cpp, lldb/source/Plugins/Process/gdb-remote ProcessGDBRemote.cpp

[llvm][Support] Move llvm::createStringErrorV to a new ErrorExtras.h header (#176491)

Introducing `llvm::createStringErrorV` caused a `0.5%` compile-time
regression because it's an inline function in a core header. This moves
the API to a new header to prevent including this function in files that
don't need it.

Also includes the header in the source files that have been using
`createStringErrorV` (which currently is just LLDB).
DeltaFile
+34-0llvm/include/llvm/Support/ErrorExtras.h
+0-16llvm/include/llvm/Support/Error.h
+1-0lldb/source/Plugins/Platform/WebAssembly/PlatformWasm.cpp
+1-0lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+1-0lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
+1-0lldb/source/Protocol/MCP/Server.cpp
+38-166 files not shown
+44-1612 files

LLVM/project 1f9c53cflang/lib/Parser program-parsers.cpp, flang/test/Semantics cuf-proc-attr-error.cuf

[flang][cuda] Emit better error when subprogram attribute is absent or bad (#176501)

this patch update the parser for CUDA Fortran subprogram attribute to
emit more precise error.

Instead of having error like: 

```
error: expected 'END'
      attributes(managed) integer function fooj()
      ^
```

The parser will emit: 
```
 expected DEVICE, GLOBAL, GRID_GLOBAL, or HOST attribute
  attributes(managed) integer function fooj()
             ^
```
DeltaFile
+12-7flang/lib/Parser/program-parsers.cpp
+9-0flang/test/Semantics/cuf-proc-attr-error.cuf
+21-72 files