linux: Fix handling of an empty argv
proc_getargv() can return an sbuf with length zero. In the Linux
note_prpsinfo() handler, this would cause "len" to underflow to -2,
resulting in a giant out-of-bounds memchr() loop.
There is no reason to subtract anything from the sbuf length to begin
with, the nul terminator is not included there. Simplify the code to
fix this bug, and modify the native note handler to match.
Reported by: Laam Alif at Ibteda Digital Library
Fixes: 00d17cf342cd ("elf_note_prpsinfo: handle more failures from proc_getargv()")
Reviewed by: des, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D62449
bhyve: disable SIGPIPE for TCP uart backend
Currently, if a TCP uart client disconnects while the guest is writing
to the serial port, a subsequent write to the socket raises SIGPIPE and
kills the VM.
Set SO_NOSIGPIPE on the listening socket to prevent that. Accepted
connections inherit it.
Reviewed by: markj
Fixes: 1f903953fbf8 ("bhyve: Add raw tcp to uart backend")
MFC after: 3 days
MFC to: stable/15
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D62215
(cherry picked from commit cbfe766aac6f316007438c9f5557dd0c99bcbad3)
bhyve: disable SIGPIPE for vtcons
Currently, if a virtio-console socket client closes the connection or
shuts down the read side, the next guest write to the socket
raises SIGPIPE and kills the VM.
Set SO_NOSIGPIPE on this socket to prevent that.
Reviewed by: markj
Fixes: 13ee8dde0409 ("Add virtio-console support to bhyve.")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D62216
(cherry picked from commit 293dac30b9955d64cff74f3d31138950cc6bfafe)
[SLP]Respect UseMask for non-constants in isUndefVector
isUndefVector ignored masked-out lanes for non-constant vectors and
dropped UseMask when recursing on insertelement chains. A fully
overwritten non-constant <1 x T> base was then treated as live and
shuffled through ShuffleInstructionBuilder, asserting in getVF.
Fixes #249136
Pull-request: https://github.com/llvm/llvm-project/pull/249238
[libc++] Make __promote work with _BitInt, test for _BitInt in math functions (#248826)
Fixes #248462
The problem was that `__promote` hardcoded a list of accepted integer
types, so it wouldn't accept `_BitInt`, which can be fixed by having a
generic case for all integral types.
To verify that the solution works, a temporary
`types::bit_ints_8_16_32_64` list is added, which should be folded into
`types::integral_types` eventually.
multimedia/playerctl: import playerctl-2.4.1
Packaged by Daniel Araujo for wip.
Playerctl is a command-line utility and library for controlling media
players that implement the MPRIS D-Bus Interface Specification. It also
provides playerctld, a daemon that tracks the most recently active player.
emulators/vita3k: Restrict to aarch64 and amd64
Fails to build on i386 with "error: invalid argument type 'uint128' to
unary expression" message.
Reported by: pkg-fallout
Approved by: arrowd (co-mentor)
pmap: don't conditionally #define PMAP_KMPAGE as non-zero
Don't conditionally #define PMAP_KMPAGE as non-zero based on if
PMAP_ENABLE_PMAP_KMPAGE is defined. Instead always define PMAP_KMPAGE
with a value and provide a pmap_is_kmpage_p which will only ever
perform a test on platforms where PMAP_ENABLE_PMAP_KMPAGE is defined.
This allows moving the include of machine/pmap.h after the flags
definition which will be useful for future flags.
[AArch64] Decompose store(insert(insert(..)) to separate stores. (#246716)
Given a store(buildvector) we will lower the buildvector to vector lane
inserts, which means expensive cross register bank copies for each lane
to store as a vector. Split the operation up instead, generating
individual store operations for the values on each lane. This generates
more stores but less expensive vector moves.
This is a recommit of #238314 with extra checks to hopefully prevent
combine loops between mergeConsecutiveStores and the new combine.
Save and restore the X register around mod/div functions.
Normal builds aren't affected because mod/div don't clobber
the X register on any architecture with MKSLJIT=yes by default.
Building tests with -finstrument-functions triggers the bug.
[llvm-mca][x86] Add more AVX512 FMA instruction permutations (#249221)
I still need to get the AVX512VL variants done, but this at least gets
the AVX512F core instructions tested
www/ruby-webrobots: update to 0.1.3
pkgsrc change: update HOMEPAGE to GitHub's repository.
0.1.3 (2026-11-17)
Maintenance release with no changes to runtime behavior or Ruby requirements.
* Remove vulnerable development dependencies on ActiveSupport, i18n, and old
Bundler versions.
* Require Ruby 3.3 or later and Bundler 4.0.18 or later for development,
with a three-day RubyGems cooldown.
* Replace Travis CI with GitHub Actions and remove the obsolete Coveralls
integration.
* Publish gems through RubyGems Trusted Publishing after tag CI succeeds.
[SystemZ] Extend or truncate @cc flag output to the constraint type (#245401)
LowerAsmOutputForConstraint always returned the i32 IPM/SRL result for
`=@cc`, regardless of the output type. For a 64-bit output like `long`,
SelectionDAGBuilder then tried to truncate the i32 to i64. That hits the
"Invalid truncate node" assertion, and in release builds it produces a
bad node, which gives wrong code on z13 and later.
This zero-extends or truncates the CC value to `OpInfo.ConstraintVT`,
the same way X86 and AArch64 handle their flag outputs. Codegen for
i8/i16/i32 outputs doesn't change; i64 now gets `ipm` + `risbg`. I added
i64 cases to inline-asm-flag-output-01.ll: a plain return, a branch on
the CC value, and a store.
Fixes #245177
[X86] Prevent poison propagation when inserting i8/i16 into zero vector (#248935)
In `LowerINSERT_VECTOR_ELT`, zero-extending an `i8`/`i16` element to
`i32` before `SCALAR_TO_VECTOR` + `VZEXT_MOVL` can propagate
`undef`/`poison` into adjacent zero lanes (same as #248666 for
`LowerBUILD_VECTOR`). Also fixes the SSE4.2 cases from #246207 (covered
by #249006).
Fixes #248928
Assisted-by: Gemini 4 Neon
[CODEOWNERS] Remove "masked" rules (#248903)
As per GitHub docs (see the link in CODEOWNERS file):
* "the last matching pattern takes the most precedence."
Remove rules that are currently masked (i.e. not in use). The Arith
files receive @kuhar @krzysz00, and the XeGPU TransformOps directories
receive @ftynse @nicolasvasilache @rolfmorel. The EmulateNarrowType.cpp
file receives @dcaballe .
lang/dotnet: Teach .NET about OpenSSL 3.5 on FreeBSD 15+
Not bumping PORTREVISION yet because bootstraps need to be re-rolled for this
change to take effect.
PR: 301034