cryptodev: Fix CIOCGSESSION32
session_op_from_32() already produces a struct session2_op, but the
request was then handled as CIOCGSESSION, so session2_op_from_op() was
called with overlapping source and destination and zeroed the request.
Fixes: 688f8b822cea ("Remove the cloned file descriptors for /dev/crypto.")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61775
procfs: Release the vmspace reference when map reads fail
When a 32-bit process reads the map of a 64-bit process,
procfs_doprocmap() returned without calling proc_vmspace_unref(),
leaking a vmspace reference and leaving the target unable to exec.
Fixes: 5db31f1b47b5 ("procfs, linprocfs: ensure target process vmspace stability")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
AMDGPU: Fix immediate folds into bf16 and packed f32 operands (#248493)
On subtargets which read bf16 inline constants from the high half of
the fp32 constant, isOperandLegal accepted a bf16 floating-point inline
constant without op_sel in VOP3 sources and 16-bit mix instruction
sources. A mix instruction source is read as f32 unless op_sel_hi is
set.
SIFoldOperands worked around this for src0 only, and had separate
special cases for packed bf16 and packed f32 operands. Replace these
with one model in SIInstrInfo of the bits an immediate reads as and the
halves op_sel selects. A folded immediate must read the same value as
the register it replaces, choosing op_sel to preserve it.
There's an unfortunate amount of special casing based on instruction
type instead of operand kind. This starts fixing the isPacked special
cases, but there's a lot more to clean up.
Assisted-by: Claude
[lldb] Return nullopt from ScriptedBreakpointInterface::GetShortHelp (#248504)
Fixes #247670
At least one compiler does not allow a nullptr->std::string->optional
path. Even if they all did, this method's uses imply that empty optional
should be the return value if you have nothing to return.
NAS-145594 / 27.1.0 / Fix job queueing crash when already queued job has no credentials (#20370)
This was fixed in master by
https://github.com/truenas/middleware/pull/18430 but not backported
[mlir][gpu] Don't crash verifying a launch_func nested in an unregistered op (#245372)
LaunchFuncOp::verifySymbolUses asks SymbolTable::getNearestSymbolTable
for the table the launch should be resolved in, then calls
isa<GPUModuleOp> on the result. That helper returns null when it meets
an unregistered single-region op on the way up, because such an op might
itself be a symbol table. The isa then dereferences the null pointer and
mlir-opt --allow-unregistered-dialect segfaults.
With no known symbol table there is nothing to resolve the kernel
against, so return success in that case. This matches what the function
already does for launches that are nested deeper than a function
directly inside the container module (those are skipped as well), and
what ModuleToBinary does when it cannot find a table.
This is a regression from 67e47fb5317c (#173277): the old
verifyOperationAttribute walk resolved against the module being
verified, which is never null, and skipped any launch whose grandparent
was not that module. Recomputing the table from the launch is what made
[3 lines not shown]
Better frame buffer driver for HP Artist (onboard 712) and Visualize EG
(onboard B-class and some C-class, as well as PCI) devices, allowing proper
(currently unaccelerated) X11 support, as well as color, underline and larger
fonts in console.
Ported from NetBSD.
[clang][CodeGen] Fix postopt bitcode linking for LLVM IR input (#246138)
Currently the `-mlink-builtin-bitcode-postopt` option completely
disables linking of the builtin bitcode modules for LLVM IR input
instead of moving it after the optimizations. This might lead to the
loss of the symbols defined in these modules.
This patch resolves the issue by enabling the postopt linking for LLVM
IR input.
Add libultrahdr version 2.0.2 to pkgsrc-wip
libultrahdr is a library for handling
googles Ultra HDR Image Format.
The Ultra HDR Image format stores the hdr data as
metadata in already established formats as gains maps.
The readers that don't support this meta data will
display the normal image while the ones who do will
display the HDR version of the image on compatible
displays.
This product includes Gain Map technology under
license by Adobe.