[CIR] Match OGCG noalias and memory effects on operator new
Sane replaceable operator new calls now get return noalias and
memory(inaccessiblemem: readwrite, errnomem: write), matching classic
codegen. -fno-assume-sane-operator-new drops both.
[analyzer] Fix crash destructing element of a sugared array type
ExprEngine::makeElementRegion falls short trying to determine the
element type of an array that involves a type aliasing a static array
type.
This leads to a crash in ExprEngine::ProcessMemberDtor where it assumes
that element type is a CXXRecordDecl, while it is still a type alias to
a static array type.
getBaseElementType is the canonical way to desugar and peel off the
array dimensions.
Assisted by Claude Opus 5
--
CPP-8838
nfsuserd.c: Fix handling where pw_name/gr_name differ from lookup name
When an NSS backend returns a canonical pw_name or gr_name that differs from
the lookup name supplied by the NFSv4 upcall, nfsuserd stores the successful
mapping in the kernel cache under the canonical name instead of the requested
name.
This causes the retry lookup performed by nfsv4_strtouid() or
nfsv4_strtogid() to miss the newly inserted cache entry, resulting in the
default UID/GID being returned although the NSS lookup itself succeeded.
PR: 296753
Reviewed by: rmacklem
Tested by: Emanuel Helms <emanuel at nfv.cc>
MFC after: 2 weeks
[CIR] Add noalias on malloc-like function returns
Mirror classic RestrictAttr handling so __attribute__((malloc)) and
__declspec(restrict) stamp llvm.noalias on the return, matching OGCG.
security/gost-engine: update
openssl111 has gone from Ports and we have no supported
FreeBSD versions having it in base, so drop 1.1.x support here too.
Update the code upto latest commit targeting OpenSSL 3.0.
Also, this makes it compatible with CMake 4.
Reported by: arrowd
Tested by: arrowd
[OMPIRBuilder] Restore the debug location after the reduction alloca (#221253)
`createReductions` emits the array of type-erased pointers to the
private reduction values in the alloca block, which means leaving the
current insertion point and coming back. The insertion point is
re-established but the debug location is not. Everything emitted
afterwards like the `__kmpc_reduce` and the matching __kmpc_end_reduce
inherits whatever the terminator happened to carry, which is usually
nothing. This could result in a verifier error if program is linked with
openmp runtime that has debug information.
Fix it by restoring the debug location along with the InsertPoint.
linuxkpi: Fix assertion in `lkpi_vmf_insert_pfn_prot_locked()`
Before this change, the assertion would not catch a page index matching
the end address, even though the end address of a mapping is outside of
that mapping.
While here, add another assertion to catch page indexes outside of the
expected range earlier.
Also, pagefaulting an address outside of the mapping range should return
`VM_FAULT_SIGBUS` instead of panicing.
Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58194
sysutils/lsd: Adopt port
While here:
- Seperate DEPENDS field from USES field (pet portlint).
- Remove increment from LIB_DEPENDS.
- Ignore failing tests.
PR: 296864
Approved by: osa, vvd (Mentors, implicit)
rpi5: stop enabling the firmware-KMS overlay
nextbsd-fkms brings up the firmware-KMS node, which VideoCoreKMS.kext binds.
That driver cannot program a plane on 2712 -- the firmware does not service
SET_PLANE (nextbsd-kernel-extensions#48, measured) -- so it has no hardware
cursor and no path to one.
VideoCore6KMS.kext programs the HVS, pixelvalves and HDMI PHY directly and does
not need that node. The two must never both be loaded, because they drive the
same display, so leaving the node disabled removes the way to get that wrong.
Verified on a Pi 500+ with the overlay disabled: VideoCore6KMS binds, EDID
reads over the firmware mailbox with no DDC adapter, the connector reports the
attached panel by name, and a modeset at its native 2560x1440 at 60 puts an image
on screen with no errors. Confirmed twice, once observed directly on the panel.
hdmi_force_hotplug=1 is deliberately left alone. Removing it was tested and
breaks the display outright: bcm2835_mbox_fb_init fails with err=5, no
framebuffer is allocated and the EDID mailbox errors, on both HDMI ports. See
[6 lines not shown]
chinese/fcitx-libpinyin: Drop support for Qt5
Qt5 option requires deprecated WebEngine.
PR: 298172
Approved by: maintainer
(cherry picked from commit 4a288edb4fd6b6f3b53d89beb9772259811e0fe7)
Mk/Uses/xorg-cat.mk: Resurrect CATEGORIES=proto and switch EXTRACT_SUFX to xz
Resurrect CATEGORIES=proto to simplify the port's Makefile.
Remove experimental from the meson's comment, as some ports have fully
transitioned to building with Meson.
Upstream has switched from bz2 to xz, so update EXTRACT_SUFX.
PR: 298092
Approved by: x11 (arrowd)
Approved by: fluffy (mentor)
gstat: Set errno = 0 before strtoul
The strtoul function sets errno on error, but does not clear it on
success; when using strtoul and checking errno (as one should) for
ERANGE / EINVAL afterwards, it's important to zero errno first.
While here, remove a dead store.
Reviewed by: phk
Fixes: 4fe8c1b67be0 ("Add error and range checking ... ")
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D59270
(cherry picked from commit 6ddb10cf6b7f870d749e96d2ae55976b18896f54)
gstat: Set errno = 0 before strtoul
The strtoul function sets errno on error, but does not clear it on
success; when using strtoul and checking errno (as one should) for
ERANGE / EINVAL afterwards, it's important to zero errno first.
While here, remove a dead store.
Reviewed by: phk
Fixes: 4fe8c1b67be0 ("Add error and range checking ... ")
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D59270
(cherry picked from commit 6ddb10cf6b7f870d749e96d2ae55976b18896f54)
tcp: fix TCPS_CLOSED state underleak in syncache_socket()
The syncache entry holds one TCPS_SYN_RECEIVED count that normally is
transferred to the the newborn tp. Upon failure syncache_socket() shall
not use TCPSTATES_INC/TCPSTATES_DEC (see 5050df3f4aa4 why). But when
syncache_socket() fails in_pcbconnect(), it calls tcp_discardcb() to free
resources that were just allocated by tcp_newtcpcb() and this
tcp_discardcb() would do TCPSTATES_DEC(tp->t_state). The t_state is
TCPS_CLOSED at this point.
Make tcp_discardcb() symmetrical to tcp_newtcpcb() - not responsible for
the TCPSTATES. Make the caller responsible for state count book keeping.
Reviewed by: tuexen
Fixes: 3703e1a73e0e0367c04f47f793e46495e46e647b
Differential Revision: https://reviews.freebsd.org/D59325
[RISCV] Fix infinite DAGCombine loop with SETCC and SIGN_EXTEND_INREG (#221593)
We generalized (X & -(1 << C1) & 0xffffffff) == C2 << C1 using `sraiw`.
The combine generates a `SIGN_EXTEND_INREG` when simplifying.
However, when C1 is 0 and the sign bit (bit 31) of X is already known to
be zero, `DAGCombiner` sees that `SIGN_EXTEND_INREG` is semantically
equivalent to `AND X, 0xFFFFFFFF` (zext). Because `DAGCombiner`
considers `AND` to be more canonical than `SIGN_EXTEND_INREG` in this
context, it immediately reverts the node back to `AND`.
This caused an infinite DAGCombine loop. This patch disables the folding
when the C1 is zero. That case is covered by a later combine that already
checks if bit 31 is known to be zero.
Fixes: https://github.com/llvm/llvm-project/issues/221521
security/pkcs11-tools: Update 3.0.0 => 3.1.0
Port Changes:
- Use distribution tarball rather than pure source code
for prebuilt manpages instead of depending on Pandoc.
Changelog:
https://github.com/Mastercard/pkcs11-tools/blob/v3.1.0/CHANGELOG.md
PR: 297826
Approved by: osa, vvd (Mentors, implicit)
Co-authored-by: Yusuf Yaman <nxjoseph at FreeBSD.org>
textproc/rumdl: update to 0.2.68
v0.2.68
Fixed
MDX: recognize Markdown links and images inside JSX elements, including generated reference tables, without requiring blank lines. This removes false MD091 warnings and lets normal link rules check the content. JavaScript expressions, JSX attributes, comments, and code are excluded, and link fixes preserve source labels and positions (#801).
Performance
Reduce regex locking and redundant rule work.
Precompute proper-name lookups and streamline regex caching.
v0.2.67
Fixed
code-block-tools: survive a tool that exits without reading its input (a3f2b15)
MD042: do not report an image with an unparseable destination as an empty link (600236e)
code-block-tools: report missing tool binaries instead of passing silently (fd83c4b)
code-block-tools: report tool failures from the format path (4f92370)
[91 lines not shown]