release/tools: use same pkg settings in containers as in /etc/pkg/FreeBSD.conf
Instructions in /etc/pkg/FreeBSD.conf and elsewhere recommend putting
changes in /usr/local/etc/pkg/repos/FreeBSD.conf so bring OCI containers
into line as well.
Reviewed by: dfr, ivy
Differential Revision: https://reviews.freebsd.org/D54090
MFC after: 5 days
Sponsored by: SkunkWerks, GmbH
(cherry picked from commit c73ae67348998a0056145e88debbea9ff6860c4f)
[Instrumentor] Add Alloca and Function support; stack usage example
This adds support for alloca instrumentation and function pre/post
instrumentation. Alloca support follows load/store support directly.
Functions require special care to determine the insertion points.
Together, we can showcase how the stack high watermark can be profiled,
see InstrumentorStackUsage.cpp.
[Instrumentor] Use the pass builder's FileSystem for reading files
In the IO sandbox, the old read calls caused the CI to fail. This
changes uses the PassBuilder's FileSystem the same way other passes
read files from disk (during CI).
[clang][NFC] Mark CWG941 as implemented and add a test (#197202)
[CWG941](https://wg21.link/cwg941) allowed specializing deleted function
templates. Clang accepted this between 2.7 and 2.9, regressed and
started emitting redefinition errors between 3.0 and 3.8, then went back
to accepting in 3.9: https://godbolt.org/z/GKnf9je7j. I've marked it as
implemented since 3.9.
Mirrors: Remove CD and DVD distributors
The last few years, there is only one distributor of FreeBSD discs,
and they only update their website if I send them an email, so I think
they are not actually selling any and nobody wants this.
Discussed with: cperciva
sysutils/lima: update to version 2.1.1
The default docker template still does not boot on my NetBSD host, but
the docker.lima wrapper worked for me just fine when using debian-13
instead, and installing docker.io there.
Tested on NetBSD/amd64.
Changes since version 2.1.0:
* Binary release:
- Add Windows artifacts (#4789)
* macOS guest:
- Allow unusual range of UID (#4171, thanks to @balajiv113)
* vz:
- Honor audio.device=none (#4762, thanks to @BizerNotNull)
* nerdctl:
- Update from v2.2.1 to v2.2.2 (#4787)
. This release of the nerdctl distribution updates BuildKit
[59 lines not shown]
[RegisterScavenging] Respect early-clobber defs when scavenging registers (#197120)
When scavenging registers backwards for virtual registers introduced
during frame index elimination, the register scavenger was ignoring
early-clobber constraints on the instruction using the scavenged
register. This could lead to assigning a virtual register to a physical
register marked as early-clobber output, violating the constraint that
early-clobber outputs cannot overlap with inputs.
This change inspects `RestoreAfter` to determine if the scavenged
register will be used by the instruction pointed at by MBBI, and if so,
remove any such registers from the scavengeable set.
This also adds a test to check if such EC defs are indeed respected whne
they otherwise wouldn't be.
co-authored-by: @uweigand
---------
Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>
NAS-140944 / 27.0.0-BETA.1 / Do not expect JSON output from TNC delete calls (#18936)
This commit fixes a case where TNC's `DELETE /v1/systems/:id` endpoint
now returns 200 with an empty/non-JSON body, causing
`unset_registration_details` to crash with `aiohttp.ContentTypeError`
while attempting to decode the response as JSON. Passing
`get_response=False` skips the body decode since the response payload is
not used.
Linux: avoid znode list lock inversion during resume
Lockdep reports a circular locking dependency during mounted filesystem
rollback. zfs_resume_fs() walks z_all_znodes under z_znodes_lock and
calls zfs_rezget(), which takes the per-object znode hold lock via
zfs_znode_hold_enter().
The normal zget path takes these locks in the opposite order.
zfs_zget() takes the per-object hold lock before zfs_znode_alloc()
inserts the znode on z_all_znodes under z_znodes_lock. Resume can
therefore establish z_znodes_lock -> zh_lock while normal lookup
creates zh_lock -> z_znodes_lock.
Pin the current and next znodes with igrab() while holding the list
lock, then drop the list lock before reloading the znode. Existing
stale inode handling is preserved, and both the suspended reference
and temporary walk reference are released asynchronously.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: ZhengYuan Huang <gality369 at gmail.com>
Closes #18517
Linux: expose zfs_arc_no_grow_shift as a module parameter
The zfs_arc_no_grow_shift variable is tunable via sysctl on FreeBSD
but had no module parameter registration on Linux.
Register it once in arc.c using param_get_uint and a per-platform
set handler, replacing the FreeBSD-only registration.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Alek Pinchuk <alek.pinchuk at connectwise.com>
Signed-off-by: Christos Longros <chris.longros at gmail.com>
Closes #18461
[SLP] Do not account scalable vectorized users when estimating geps cost
We should not try to widen the scalable users of geps, they are not
vectorized and scalable vector type cannot be widened.
Fixes #197132
Reviewers:
Pull Request: https://github.com/llvm/llvm-project/pull/197301
[flang][cuda] Place box value kernel args in managed memory (#197116)
Example:
```fortran
type deviceArray
integer, allocatable, dimension(:,:), device :: Arr
end type deviceArray
type(deviceArray), allocatable, dimension(:) :: DA
allocate(DA(2))
allocate(DA(1)%Arr(32,32))
call mykernel<<<1,32>>>(DA(1)%Arr, 32) ! cudaErrorIllegalAddress
```
In this code, `DA(1)%Arr` is a device allocatable component inside a
managed derived type. The compiler loads the descriptor, reboxes it on
the host stack, and passes it to the kernel. Since `!fir.box` is lowered
to a pointer in LLVM IR, the kernel receives a host-stack pointer it
cannot dereference — causing `cudaErrorIllegalAddress`.
[11 lines not shown]
OpenSSH: Update to 10.2p1
Full release notes are available at
https://www.openssh.com/txt/release-10.2
Selected highlights from the release notes:
Bugfixes
--------
* ssh(1): fix mishandling of terminal connections when
ControlPersist was active that rendered the session unusable.
bz3872
Sponsored by: The FreeBSD Foundation
Revert "[CodeGen] Use byte offsets and ptradd in ShadowStackGCLowering" (#197297)
Reverts llvm/llvm-project#178436. I need to update the tests that I
added for that PR.