[libc] Use execve syscall wrapper in execve.cpp (#223186)
Use the existing execve syscall wrapper in `execve.cpp` instead of
invoking SYS_execve directly.
[libc] Use execve syscall wrapper in execv.cpp (#223181)
Use the existing execve syscall wrapper in `execv.cpp` instead of
invoking SYS_execve directly.
linuxkpi: Add x86 CPU ID matching functions and macros
There are two parts that go together:
* `X86_MATCH_VFM()` to declare a matching pattern
* `x86_match_cpu()` to check if the current CPU matches one of the
patterns in an array.
The i915 DRM driver started to use this in Linux 6.14.
Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57700
Reject unsafe package names from ports metadata
PKGNAME is used to construct host-side package staging paths. A port
can supply traversal components and cause those paths to escape the
staging directory.
Validate package names when reading port metadata and before a build
worker uses one. This prevents path separators and dot traversal
components from reaching host filesystem operations.
(cherry picked from commit e90c7ba59dbb1b42b9e83029e88c570caf29d632)
Conflicts:
src/share/poudriere/common.sh
Issue #1363
[AMDGPU][True16][GlobalISel] Update True16 handling for FMA_MIX instructions in GlobalISel (#205431)
The FMA_MIX instructions can extend 16-bit input values, but must have
32-bit registers as operands. This patch handles cases in True16 mode
where the 16-bit input value lives in a VGPR-16 and must be widened.
[compiler-rt] Fix host-only AMDGPU tests being added to GPU build (#223505)
Summray:
We do have AMDPGU tests, but these are for the standalone / minimal
configurations that don't require any host runtime. The tests added in
the previous patch are for offloading, i.e. HIP or OpenMP, not C/C++
compiled fro the GPU.
net/rsync: fix force-change patch
Fix force-change issue, where --force-change
cannot descend into an immutable directory after
3.5.0 update.
PR: 298358
Reported by: Eero Hänninen <fax at nohik.ee>
MFH: 2026Q3
(cherry picked from commit b13f87c3bf553786da39f8b93c91d155cc049afd)
[Offload] Link against specific HSA library and then fallback (#223454)
Summary:
HSA uses a versioning system, the `.1` is usually a more specific
release while one without is a generic or untested version. We should
use the specific one and fall back.
net/rsync: fix force-change patch
Fix force-change issue, where --force-change
cannot descend into an immutable directory after
3.5.0 update.
PR: 298358
Reported by: Eero Hänninen <fax at nohik.ee>
MFH: 2026Q3
x11-fonts/webfonts: Fix port when NEWVERDANA option is disabled
Due to an oversight on my end I only did final testing with
NEWVERDANA enabled. While at it move EXTRACT_ONLY variable
to correct section
Reported by: leres@
Reapply "clang: Use TargetID parsing from AMDGPUTargetParser" (#213824)
This reverts commit 8f82ba2c79f4e6a69a884cc9e19bd0b8c0bbe932.
Try again now that clang has full support for new subarch triples.
[libc] Change cookie_seek_function_t to take off_t argument (#223306)
cookie_seek_function_t is defined as taking off_t rather than off64_t
for offset argument in all C library implementations that support
fopencookie.
InferAddressSpaces: Replace -assume-default-is-flat-addrspace cl::opt with pass parameter
Migrate the pass-specific command-line option to a new pass manager
pass parameter, exposed as
infer-address-spaces<assume-default-is-flat-addrspace>.
Co-authored-by: Claude (Opus 4.8) <noreply at anthropic.com>
UPDATING: bump __FreeBSD_version to 1600026 for LinuxKPI changes
The size of multiple embedded structs have changed and may lead to
problems (pci_error_handlers in pci_driver, dev_pm_info in struct device).
Allow these changes to be detected by bumping __FreeBSD_version.
MFC after: 3 days
Revert "linuxkpi: Add device under parent, not under class"
This reverts commit fc0a5ae094308609927e9c355928d08923278325.
This changed the sysctl node path and broke IB user space tools (ibv_*).
PR: 298485
Reported by: Ariel Ehrenberg (aehrenberg nvidia.com)
LinuxKPI: 802.11: Always lock around lkpi_80211_mo_{remove_interface,stop}()
Add the missing locking to another two MO driver downcalls, as drivers
always expect it (e.g. rtw89 by assertion).
Add the lock and might_sleep assertions to the respective lkpi_80211_mo_*
downcalls.
PR: 298417
Reviewed by: bz
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D59608