LLVM/project 3424d45clang/lib/AST CXXInheritance.cpp

[clang][NFC] Compute current instantiation less frequently in `lookupInBases` (#208139)

While benchmarking I noticed that #118003 causes a small compile-time
regression. Right now, it computes `isCurrentInstantiation` for every
base during name lookup.
We can easily avoid this overhead by only computing it when a dependent
base could actually be skipped.
DeltaFile
+11-10clang/lib/AST/CXXInheritance.cpp
+11-101 files

FreeBSD/ports 16a994dsecurity/py-ssh-audit pkg-plist distinfo

security/py-ssh-audit: update to 3.9.0

Changelog:      https://github.com/jtesta/ssh-audit/releases/tag/v3.9.0
DeltaFile
+10-18security/py-ssh-audit/pkg-plist
+3-3security/py-ssh-audit/distinfo
+1-2security/py-ssh-audit/Makefile
+14-233 files

FreeBSD/ports c3c4812games/fs2open distinfo Makefile

games/fs2open: update to 26.0.0
DeltaFile
+5-5games/fs2open/distinfo
+2-2games/fs2open/Makefile
+7-72 files

FreeBSD/ports 00a1c67science/py-scipy Makefile

science/py-scipy: fix build on powerpc64le on CURRENT

Same as other long double-related issues, e.g. bash or coreutils.
DeltaFile
+8-0science/py-scipy/Makefile
+8-01 files

FreeBSD/ports cc1acf6games/openrct2 distinfo pkg-plist

games/openrct2: update to 0.5.3

Changelog:      https://github.com/OpenRCT2/OpenRCT2/releases/tag/v0.5.3
DeltaFile
+11-11games/openrct2/distinfo
+5-0games/openrct2/pkg-plist
+2-2games/openrct2/Makefile
+18-133 files

NetBSD/pkgsrc-wip b57257bnextvi distinfo Makefile

nextvi: update to 6.1
DeltaFile
+3-3nextvi/distinfo
+1-1nextvi/Makefile
+4-42 files

LLVM/project f1f031bclang/lib/Sema SemaTemplateInstantiateDecl.cpp, clang/test/SemaCXX deduced-return-type-cxx14.cpp

fixup
DeltaFile
+8-0clang/test/SemaCXX/deduced-return-type-cxx14.cpp
+1-1clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+9-12 files

FreeNAS/freenas 849a61esrc/middlewared/middlewared/pytest/unit/utils test_interface_util.py, src/middlewared/middlewared/utils interface.py

Wait for the default route to appear during docker startup check

## Problem
Apps fail to start on every boot with "Unable to determine default interface" whenever the default route is installed asynchronously -- e.g. a DHCP bridge that has to converge through STP forward-delay before dhcpcd can acquire a lease and install the route. `validate_interfaces` read the route table exactly once at system.ready and gave up immediately if no default route was present yet, so the check lost the race by a few seconds. Unsetting and re-setting the apps pool only worked around it because that re-runs the check later, after the route already exists.

## Solution
`wait_for_default_interface_link_state_up` now polls `get_default_interface()` once a second within the existing IFACE_LINK_STATE_MAX_WAIT budget instead of reading once, so a late-arriving default route is picked up rather than aborting startup. Returns (None, False) only if no default interface shows up within the whole window.
DeltaFile
+56-0src/middlewared/middlewared/pytest/unit/utils/test_interface_util.py
+22-4src/middlewared/middlewared/utils/interface.py
+78-42 files

LLVM/project cd053ddflang/lib/Lower/OpenMP OpenMP.cpp DataSharingProcessor.cpp, flang/test/Lower/OpenMP metadirective-loop.f90

[flang][OpenMP] Support lowering of metadirective (part 3)

Enable lowering of metadirectives that resolve to a loop-associated
variant such as `do`, `simd`, `parallel do`, and `do simd`. The
associated DO construct is made available to the selected variant so the
existing OpenMP loop lowering can process it. A standalone metadirective
uses the following sibling DO, and a begin/end metadirective uses the
first substantive evaluation nested in its block.

For example, when the `vendor(llvm)` selector matches, the `parallel do`
variant is lowered together with the DO loop that follows it:

```fortran
!$omp metadirective when(implementation={vendor(llvm)}: parallel do)
do i = 1, n
  y(i) = a*x(i) + y(i)
end do
```


    [33 lines not shown]
DeltaFile
+476-0flang/test/Lower/OpenMP/metadirective-loop.f90
+243-8flang/lib/Lower/OpenMP/OpenMP.cpp
+88-2flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
+18-1flang/lib/Lower/OpenMP/Utils.cpp
+15-0flang/test/Lower/OpenMP/Todo/metadirective-target-loop.f90
+0-12flang/test/Lower/OpenMP/Todo/metadirective-loop.f90
+840-232 files not shown
+854-238 files

LLVM/project 889e420clang/lib/Sema SemaTemplateInstantiateDecl.cpp, clang/test/SemaTemplate GH202358.cpp

fixup
DeltaFile
+12-0clang/test/SemaTemplate/GH202358.cpp
+8-2clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+20-22 files

FreeBSD/src 815dc35sys/dev/sound/pcm channel.c buffer.c

sound: Pass format and speed as arguments to sndbuf_create()

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+2-6sys/dev/sound/pcm/channel.c
+4-1sys/dev/sound/pcm/buffer.c
+1-1sys/dev/sound/pcm/buffer.h
+7-83 files

FreeBSD/src 69c4e2bsys/dev/sound/pcm dsp.c

sound: Remove dead code in dsp_ioctl()

Sponsored by;   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+0-8sys/dev/sound/pcm/dsp.c
+0-81 files

FreeBSD/src c0dc283etc/mtree BSD.tests.dist, tests/sys/fs Makefile

tests: Add pjdfstest integration

Use ATF to wrap the new reimplementation of pjdfstest that came out of
GSOC 2022, now available in the ports tree as filesystems/pjdfstest.

So far I added tests for UFS (with several different option
combinations), tmpfs and ZFS, plus ZFS+nullfs.  All of these create a
memory disk, initialize the filesystem, and point the pjdfstest
executable at it.

In the future it would be good to add tests for at least NFS and p9fs.

Reviewed by:    asomers
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D56605

(cherry picked from commit 8fd4d1c0fff8441b42dbab767810db7aeaf796c3)
DeltaFile
+130-0tests/sys/fs/pjdfstest/ufs.sh
+96-0tests/sys/fs/pjdfstest/zfs.sh
+60-0tests/sys/fs/pjdfstest/tmpfs.sh
+12-0tests/sys/fs/pjdfstest/Makefile
+2-0etc/mtree/BSD.tests.dist
+1-0tests/sys/fs/Makefile
+301-06 files

FreeBSD/src 1a715cbsys/dev/virtio/p9fs virtio_p9fs.c

virtio/p9fs: Define the channel list mutex as static

No functional change intended.

MFC after:      1 week

(cherry picked from commit 2586f9f459adc6610957ba0d74a167b85fe24ac7)
DeltaFile
+1-1sys/dev/virtio/p9fs/virtio_p9fs.c
+1-11 files

FreeBSD/src bfcac89sys/dev/virtio/p9fs virtio_p9fs.c, sys/fs/p9fs p9_transport.h

p9fs: Remove the "cancel" transport method

Nothing calls it, and the existing virtio transport doesn't implement
it.  No functional change intended.

MFC after:      1 week

(cherry picked from commit 94989248641a17f5c2afc367df4845e4113779a1)
DeltaFile
+0-8sys/dev/virtio/p9fs/virtio_p9fs.c
+0-2sys/fs/p9fs/p9_transport.h
+0-102 files

FreeBSD/src fae2b85lib/librpcsec_gss svc_rpcsec_gss.c

librpcsec_gss: Fix an off-by-one in rpc_gss_get_principal_name()

Include an extra byte for the nul-terminator, otherwise we may end up
with an out-of-bounds write.

The corresponding bug in the kernel implementation was fixed by commit
e3081f7e3e2d ("kgssapi(4): Fix string overrun in Kerberos principal construction").

Reviewed by:    markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57738

(cherry picked from commit 635ad6f2ec97e9c6b1f15620cd5ee84eb632082f)
DeltaFile
+1-1lib/librpcsec_gss/svc_rpcsec_gss.c
+1-11 files

FreeBSD/src c8cc442sys/kern uipc_usrreq.c

unix: Fix a socket refcount leak in uipc_sendfile_wait()

Fixes:          d15792780760 ("unix: new implementation of unix/stream & unix/seqpacket")
Reviewed by:    glebius
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57967

(cherry picked from commit 2a4b8fd1dc070e71fbaab6f12c1c9e4452652aa7)
DeltaFile
+3-1sys/kern/uipc_usrreq.c
+3-11 files

FreeBSD/src 2e1226clib/libnetbsd/sys types.h

libnetbsd: Avoid bringing in all of sys/param.h in sys/types.h

It's okay to hard-code NBBY, as the value is somewhat unlikely to
change.

The pollution from sys/param.h makes it harder to import test code from
NetBSD since it can introduce conflicting definitions, e.g.,
MIN()/MAX().

Reviewed by:    ngie
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57754

(cherry picked from commit 0976744085bcd7ebda9779b02d78a85254b3e352)
DeltaFile
+1-1lib/libnetbsd/sys/types.h
+1-11 files

FreeBSD/src b365fc1usr.sbin/makefs/zfs dsl.c

makefs/zfs: Explicitly include sys/param.h for nitems()

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 88deb1cff92cb3620c248f32fa6e7bdbc5301213)
DeltaFile
+1-0usr.sbin/makefs/zfs/dsl.c
+1-01 files

FreeBSD/src 8a641f9sys/net if_ovpn.c

if_ovpn: Fix a lock leak in an error path

Reviewed by:    kp
MFC after:      1 week
Fixes:          04a7134c1e92 ("if_ovpn: fix use-after-free of mbuf")
Differential Revision:  https://reviews.freebsd.org/D57696

(cherry picked from commit f7b71f832c990da0bf203095f02405df665529d0)
DeltaFile
+1-0sys/net/if_ovpn.c
+1-01 files

FreeBSD/src 29264fasys/netinet udp_usrreq.c

udp: Wrap a long line in udp_send()

No functional change intended.

MFC after:      1 week

(cherry picked from commit 3b69c7201fd06b368090f2ee3840d384a949cba8)
DeltaFile
+2-1sys/netinet/udp_usrreq.c
+2-11 files

FreeBSD/src e19e201usr.bin/xinstall xinstall.c

install: Explicitly include sys/param.h for MAXPATHLEN

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit ca89b0fa1a93744a5bbf7a5c949826bbee4e2559)
DeltaFile
+1-0usr.bin/xinstall/xinstall.c
+1-01 files

LLVM/project 777ec1flldb/include/lldb/DataFormatters FormatManager.h

[lldb] Remove unused overload FormatManager::GetCategory(const char *, bool) (#208109)
DeltaFile
+0-7lldb/include/lldb/DataFormatters/FormatManager.h
+0-71 files

LLVM/project 691bda5lldb/include/lldb/Target Target.h, lldb/source/API SBTarget.cpp SBBreakpointName.cpp

[lldb] Remove ConstString from remaining BreakpointName functionality (#206856)
DeltaFile
+8-9lldb/source/Target/Target.cpp
+1-3lldb/source/Breakpoint/BreakpointIDList.cpp
+2-2lldb/include/lldb/Target/Target.h
+2-2lldb/source/Commands/CommandObjectBreakpoint.cpp
+1-1lldb/source/API/SBTarget.cpp
+1-1lldb/source/API/SBBreakpointName.cpp
+15-186 files

LLVM/project bd57e09lldb/include/lldb/Target DynamicRegisterInfo.h, lldb/source/Plugins/Process/gdb-remote GDBRemoteRegisterContext.h ThreadGDBRemote.cpp

[lldb] Remove GDBRemoteDynamicRegisterInfo (#208067)

At this point, GDBRemoteDynamicRegisterInfo is an idempotent wrapper
around DynamicRegisterInfo. Its remaining methods are unimplemented as
of 3f5fd4b3c1d670649b59f3631287b6f54c6b85ee, so the only functional
difference is that it provides public copy and copy-assign constructors.

I propose that GDBRemoteDynamicRegisterInfo be removed in favor of
DynamicRegisterInfo.
DeltaFile
+2-16lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h
+3-4lldb/include/lldb/Target/DynamicRegisterInfo.h
+3-3lldb/source/Plugins/Process/wasm/RegisterContextWasm.h
+3-3lldb/source/Plugins/Process/wasm/RegisterContextWasm.cpp
+1-3lldb/source/Plugins/Process/wasm/ProcessWasm.h
+2-2lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
+14-315 files not shown
+21-3511 files

LLVM/project d7a09fbllvm/include/llvm/ADT FunctionExtras.h

[ADT][NFC] Simplify llvm::unique_function (#208251)

Refactor the core of UniqueFunctionBase to move away from static
function pointer tables, which consume ~4kiB in .data.rel.ro. Instead,
store two function pointers on construction of the UniqueFunctionBase,
one for call and one that combines move and destruction. Retain the
memcpy path for trivial inline structs. (I haven't verified whether this
is actually beneficial.)

Also, greatly simplify the class and implement the callbacks using
lambdas.
DeltaFile
+71-179llvm/include/llvm/ADT/FunctionExtras.h
+71-1791 files

FreeBSD/src 1d02c25tests/sys/fs/fusefs mockfs.cc

fusefs: proofread an error message in the tests

Reported by:    otis
Fixes:          2c1482e3053 ("fusefs: fix a race in the pre-init tests")
Sponsored by:   ConnectWise

(cherry picked from commit 381ebe25f0b9fae5b3470e9c6e0767909e0fa85a)
DeltaFile
+1-1tests/sys/fs/fusefs/mockfs.cc
+1-11 files

FreeBSD/src c57b054tests/sys/fs/fusefs mockfs.cc pre-init.cc

fusefs: fix a race in the pre-init tests

These tests allow the user to customize the INIT response.  But it's
necessary to block the daemon's service loop from running until those
expectations have been set.  This race has never caused failures before
simply due to luck.  But now it's failing on slower platforms.

PR:             296236
Reported by:    siva
Sponsored by:   ConnectWise
Reviewed by:    siva
Differential Revision: https://reviews.freebsd.org/D57781

(cherry picked from commit 2c1482e305368af182a7bde0e53d0d180b319326)
DeltaFile
+8-3tests/sys/fs/fusefs/mockfs.cc
+6-0tests/sys/fs/fusefs/pre-init.cc
+3-0tests/sys/fs/fusefs/mockfs.hh
+17-33 files

FreeBSD/src ed15ec6sys/fs/fuse fuse_vnops.c

fusefs: only search for FREAD fufh in readdir

The extra search for an FEXEC fufh shall be removed, since readdir
is only supposed to be called on a directory opened with FREAD.  The
sole exception is NFS, which will call VOP_READDIR with directories that
aren't open at all.  fuse already has special code to handle that.

Also remove the fuse_filehandle_get_dir() function, since it's not
used anywhere else.

Signed-off-by:  CismonX <admin at cismon.net>
Reviewed by:    asomers
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1729

(cherry picked from commit 4179f1d9deed83977f159c8afea204293ef4c7d7)
DeltaFile
+1-11sys/fs/fuse/fuse_vnops.c
+1-111 files

FreeBSD/src 2da045asys/fs/fuse fuse_vnops.c, tests/sys/fs/fusefs default_permissions.cc

fusefs: fix error handling when reading a directory's sticky bit

When trying to delete or rename a file, fuse_vnop_lookup must check
whether its parent directory's sticky bit is set.  Realistically, the
parent directory's attributes will almost always be cached.  But it's
possible that they won't be, and in that case we must send a new
FUSE_GETATTR request to the server.  If that request fails for some
reason, then we must fail the lookup.  Prior to this change fusefs would
ignore failure of that request.

Reported by:    Yuxiang Yang, Yizhou Zhao, Ao Wang, Xuewei Feng, Qi Li,
                and Ke Xu of Tsinghua University
Reviewed by:    markj
Differential Revision: https://reviews.freebsd.org/D57588

(cherry picked from commit b4af6a4cccc3b4b0ea461463196c258eb92ad2e5)
DeltaFile
+53-0tests/sys/fs/fusefs/default_permissions.cc
+6-4sys/fs/fuse/fuse_vnops.c
+59-42 files