virtio_console: Handle VIRTIO_CONSOLE_RESIZE
Multiport devices report console size per port by control event,
which was ignored and hence their ttys could never have a window
size.
Reviewed by: markj
Approved by: fuz (mentor)
Differential Revision: https://reviews.freebsd.org/D60094
virtio: Validate host-supplied used lengths
virtio_console used the host-supplied used lengths without
validation, so a host could report a length larger than
the buffer, causing the receive and control paths to read
past the end of it. Clamp to the buffer size.
vtnet already rejected used lengths larger than the buffer,
but performed the check after converting the length to an
int, so a length larger than INT_MAX would become negative
and bypass the check. Reject such frames early before the
conversion, and count them in ierrors and rx_frame_too_large.
Reviewed by: markj
Approved by: fuz (mentor)
Differential Revision: https://reviews.freebsd.org/D60092
virtio_console: Negotiate VIRTIO_CONSOLE_F_SIZE
The driver reads cols/rows and sets the tty window size but
never offered the feature, so that code has been dead since
the very beginning; also read size under the configuration
generation count.
Reviewed by: markj
Approved by: fuz (mentor)
Differential Revision: https://reviews.freebsd.org/D60089
Merge commit c4ce37507537 from llvm-project (by ShengYi Hung):
[Clang][Sema] Create LocalScope for Variable Template (#228280)
A variable template should create its own LocalScope, as it should be
opaque to other instantiations. This can occur when there are multiple
instantiations in the same lexical scope. The correct behavior is that
these instantiations should not be chained together.
Assisted-by: Claude # Test ReleaseNote
Fixes: #134148
This fixes an assertion while building the devel/glaze port.
PR: 276265
MFC after: 3 days
vt_fb: Do not perform VT switch in vd_init hook
After 40c20fc29cad it is done by vt_core as soon as vt lock is dropped
after vd_init() has been executed to avoid sleeping with non-sleepable
lock held.
Reviewed by: quentin.thebault_defenso.fr, vexeduxr
Differential Revision: https://reviews.freebsd.org/D59632
multimedia/jellyfin-ffmpeg: Update to 8.1.3.1
- New upstream version 8.1.3.
- Fix instability when using MSDK for hwupload on Windows.
- Update backported vulkan fixes from upstream.
Changes: https://github.com/jellyfin/jellyfin-ffmpeg/releases/tag/v8.1.3-1
PR: 298923
Sponsored by: Netzkommune GmbH
net-mgmt/semaphore: Write rc script output to a log file
Redirect stdout and stderr of the service to /var/log/semaphore.log.
The path can be changed with semaphore_logfile in rc.conf.
PR: 298453
Approved by: egypcio (maintainer timeout)
Sponsored by: Netzkommune GmbH
devel/ccache4: Update to 4.14.1
- Restored storage helper lock compatibility with ccache versions earlier
than 4.14.
- Fixed lookup of GCC 9+ profile data for object files in subdirectories
and added support for GCC's -fprofile-partial-training option.
- Fixed the output location of files produced by GCC's -fdump-ipa-clones
option.
- Fixed hashing of C++20 module files found via Clang's
-fprebuilt-module-path option, preventing false cache hits when a module
changes.
Changes: https://ccache.dev/releasenotes.html#_ccache_4_14_1
PR: 298969
Sponsored by: Netzkommune GmbH
bhyveload: do not hang on EOF from console input
Currently, when bhyveload(8) fails to boot the guest,
it drops into the loader prompt waiting for user input.
This behaviour is inconvenient when using bhyveload(8) from
scripts.
Make it exit when it receives EOF from console input.
PR: 286289
Reviewed by: markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59226
(cherry picked from commit 8c20260bc55d7b4be0cbcf0a940505ae15ab41a9)
www/mod_wsgi: fix Python library linking
Always pass Python's LIBDIR to the linker instead of assuming that Apache's
LIBDIR is also a default linker search path.
Link mod_wsgi only against the shared libpython library. Do not append
Python's LIBS and SYSLIBS, which are intended for linking Python itself
or for static embedding. With NLS-enabled Python, those flags promote
libintl to a direct dependency of mod_wsgi and cause an unnecessary
gettext-runtime dependency.
This results in the intended dependency chain:
mod_wsgi.so -> libpython${PYTHON_VERSION}.so.1.0 -> libintl.so.8
rather than making libintl a direct dependency of mod_wsgi.
PR: 298985
Approved by: portmgr (blanket)
[3 lines not shown]
www/mod_wsgi: fix Python library linking
Always pass Python's LIBDIR to the linker instead of assuming that Apache's
LIBDIR is also a default linker search path.
Link mod_wsgi only against the shared libpython library. Do not append
Python's LIBS and SYSLIBS, which are intended for linking Python itself
or for static embedding. With NLS-enabled Python, those flags promote
libintl to a direct dependency of mod_wsgi and cause an unnecessary
gettext-runtime dependency.
This results in the intended dependency chain:
mod_wsgi.so -> libpython${PYTHON_VERSION}.so.1.0 -> libintl.so.8
rather than making libintl a direct dependency of mod_wsgi.
PR: 298985
Approved by: portmgr (blanket)
MFH: 2026Q4
bhyveload: do not hang on EOF from console input
Currently, when bhyveload(8) fails to boot the guest,
it drops into the loader prompt waiting for user input.
This behaviour is inconvenient when using bhyveload(8) from
scripts.
Make it exit when it receives EOF from console input.
PR: 286289
Reviewed by: markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59226
(cherry picked from commit 8c20260bc55d7b4be0cbcf0a940505ae15ab41a9)
bhyve.8: add details on using TPM with UEFI
Add a note that UEFI VMs using TPM devices should be configured
to use a varfile. Some UEFI boot loaders, such as shim, update
persistent boot variables and then reset the system when a TPM is
present. Without a writable varfile, the VM may be reset repeatedly.
Add a TPM device example to the examples list.
While here, add a missing "\" to the "uefivm" example, and add ".Pp"
before the vCPU pinning examples for consistency with other examples.
PR: 287326
Reviewed by: michaelo, ziaee
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D60181
www/immich: Unbreak packaging with other build settings
Drop the node-gyp byte caches, named after the Python version, and
rename the plugin-sdk store directory, named after the build path.
PR: 298930
Reported by: jonc at chen.org.nz
Sponsored by: Netzkommune GmbH