opnsense-src/usr.sbin
Mark Johnston b38c50da10 bhyve: Fix handling of framebuffer resizing
The rfb code maintains an array of CRCs for 32x32 tiles in the
framebuffer.  This array is sized statically based on the rfb code's
notion of the maximum framebuffer size, which changed in commit
fb51ddb20d without updating the rfb code.

Morever, writes to the framebuffer BAR can modify the recorded height
and width of the framebuffer.  These values were not validated against
the maximum at all, unlike the parameters set via bhyve config.

Fix these problems:
- Define the maximum width and height in a shared header file so that
  they do not get out of sync again.
- In pci_fbuf_render(), don't resize the console if the new dimensions
  are too large.
- Add a mutex to synchronize framebuffer BAR I/O with the rfb thread.

Approved by:	so
Security:	FreeBSD-SA-26:72.bhyve
Security:	CVE-2026-101311
Fixes:		fb51ddb20d ("bhyve: increase fbuf display resolution limit")
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D60680
2026-10-15 11:29:00 +02:00
..
ac Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
accton Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
acpi acpidump: quiet gcc -Wstrict-aliasing 2025-10-28 02:20:35 -07:00
adduser groups.7: New manual page of standard group names 2026-05-28 15:15:13 -07:00
apm man: Kill off MANSUBDIRs 2026-05-07 15:16:16 -07:00
apmd man: Kill off MANSUBDIRs 2026-05-07 15:16:16 -07:00
arp arp: fix adding proxy entries for P2P interfaces 2025-10-26 14:20:01 +03:00
audit package: move OpenBSM auditing into its own package 2024-04-28 22:33:06 -06:00
auditd package: move OpenBSM auditing into its own package 2024-04-28 22:33:06 -06:00
auditdistd package: move OpenBSM auditing into its own package 2024-04-28 22:33:06 -06:00
auditreduce package: move OpenBSM auditing into its own package 2024-04-28 22:33:06 -06:00
authpf Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
autofs autofs: partial is also leaked. 2025-08-12 14:35:35 -06:00
bhyve bhyve: Fix handling of framebuffer resizing 2026-10-15 11:29:00 +02:00
bhyvectl bhyvectl: improve options error handling 2026-01-04 06:15:25 +01:00
bhyveload bhyveload: simplify cb_open() and eliminate minor TOCTOU 2026-04-11 22:15:15 -05:00
binmiscctl manuals: Fix typos in -offset for .Bd and .Bl 2024-10-03 14:49:31 -03:00
blacklistctl blacklist: Avoid duplicate manual pages in METALOG 2025-10-14 00:54:07 +00:00
blacklistd blacklist: Avoid duplicate manual pages in METALOG 2025-10-14 00:54:07 +00:00
blocklistctl blocklist: Rename blacklist to blocklist 2025-10-14 00:53:16 +00:00
blocklistd blocklist: Rename blacklist to blocklist 2025-10-14 00:53:16 +00:00
bluetooth manpages: Fix author e-mail address formatting 2026-09-23 09:07:21 +02:00
boot0cfg Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
bootparamd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
boottrace
bsdconfig bsdconfig: Make sure that SSID names are properly escaped 2026-05-20 13:52:00 +00:00
bsdinstall bsdinstall: Drop "Technology preview" from package sets 2026-10-11 14:02:43 +02:00
bsnmpd bsnmpd: avoid warnings about too-long initializer strings 2025-12-29 13:21:15 +01:00
btxld Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
camdd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
cdcontrol Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
certctl certctl: Unstickify (un)trusted certificates 2026-05-07 13:18:58 -07:00
chkgrp groups.7: New manual page of standard group names 2026-05-28 15:15:13 -07:00
chown groups.7: New manual page of standard group names 2026-05-28 15:15:13 -07:00
chroot manuals: Correct some sysctl markup 2026-02-05 16:49:53 -05:00
ckdist Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
clear_locks Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
config config.5: Bump .Dd to reflect latest update 2025-06-16 14:59:08 -04:00
cpucontrol cpucontrol: Be more strict with input validation 2026-02-16 13:42:11 +00:00
crashinfo libexec/kgdb: Add new modules and install them together with debug info 2025-10-17 12:41:58 +00:00
cron cron: Implement full PAM session lifecycle for user jobs 2026-02-03 19:54:50 -08:00
crunch shar: remove from the tree well in advance of the 15.0 release 2025-07-10 12:57:03 -05:00
ctladm ctladm tests: Only use allowed chars in IQN 2026-04-29 09:28:55 +02:00
ctld ctld: normalize iSCSI TargetName on login 2026-05-12 12:00:43 -07:00
cxgbetool manpages: Fix author e-mail address formatting 2026-09-23 09:07:21 +02:00
daemon Revert "daemon: replace memchr with memrchr" 2026-08-11 09:10:18 +02:00
dconschat dconschat: Increase WARNS to 2 2024-11-03 15:18:39 -05:00
devctl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
devinfo devinfo: Support PCI DBSF and ACPI handles for -p 2026-04-24 13:33:52 -04:00
diskinfo diskinfo: Align and alphabetize options 2026-04-15 21:33:35 -04:00
dumpcis Retire pccard(4) 2025-11-13 22:23:54 -05:00
editmap Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
edquota Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
efibootmgr loader.efi.8/efibootmgr.8: Don't use contradicting term 'EFI BIOS' 2026-04-14 09:11:00 +02:00
efidp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
efitable efitable.8: Nits 2025-07-22 16:06:31 -04:00
efivar efivar: Use struct guid_table instead of uuid_table 2025-05-01 11:55:14 -06:00
efiwake Update Makefile.depend files 2024-10-14 10:26:17 -07:00
etcupdate etcupdate: Restrict access to the conflicts directory 2025-01-28 14:23:06 +00:00
extattr Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
extattrctl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
fdcontrol Deprecate fdc(4) and floppy utilities 2025-12-09 11:32:09 -05:00
fdformat Deprecate fdc(4) and floppy utilities 2025-12-09 11:32:09 -05:00
fdread Deprecate fdc(4) and floppy utilities 2025-12-09 11:32:09 -05:00
fdwrite Deprecate fdc(4) and floppy utilities 2025-12-09 11:32:09 -05:00
fifolog Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
flowctl Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
freebsd-update freebsd-update: Skip /etc/ssl/cert.pem 2026-05-20 13:52:59 +00:00
fstyp fstyp: search for file system headers with the largest offset first 2024-12-03 23:45:09 -09:00
ftp-proxy Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
fwcontrol fwcontrol(8): Fix a typo in a message 2025-11-02 02:11:33 +01:00
fwget fwget: update realtek and intel pci entries 2026-05-21 14:20:52 -07:00
getfmac getfmac.8: add missing cross-references 2025-07-23 00:02:11 -06:00
getpmac Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
gpioctl manpages: Fix author e-mail address formatting 2026-09-23 09:07:21 +02:00
gssd kgssapi: Fix the kgssapi so that it can use MIT Kerberos 2025-08-07 14:02:32 -07:00
gstat gstat(8): Fix typo in example to filter the results 2025-07-12 08:23:48 -06:00
hyperv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
i2c manuals: Remove trailing spaces 2024-11-04 11:26:14 -04:00
ifmcstat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
inetd inetd.conf: Correct rsync example 2026-01-07 10:47:04 -05:00
iostat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
iovctl iovctl.8: Fix missing xref section number 2025-10-09 10:25:41 -04:00
ip6addrctl ip6addrctl(8): Teach ip6addrctl to attach and run itself in a jail 2025-01-29 18:00:07 +08:00
ipfwpcap ipfwpcap: Fix build after libpcap 1.10.6 update 2026-04-06 16:42:28 -03:00
iscsid libiscsiutil: Record dependency on libmd 2026-03-05 08:06:04 +00:00
jail jail: avoid leaking jail config fds to exec.* hooks 2026-05-07 13:39:42 -07:00
jexec jail: add jexec -d, to specify a working directory 2025-03-05 02:14:47 -08:00
jls jls: add a -c mode to check for a jail's existence 2025-07-25 22:13:43 -05:00
kbdcontrol kbdcontrol: correct bell frequency for vt(4) 2024-11-01 11:54:40 -04:00
kbdmap Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
kldxref mips: remove mips leftovers 2026-01-12 14:09:14 -05:00
lastlogin manpages: prefer linking to xo_options.7 over xo_parse_args.3 2025-07-16 12:02:24 -06:00
lpr lpd: Add timeout option 2026-03-04 14:45:00 +00:00
lptcontrol Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mailstats Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mailwrapper manuals: Fix "unusual .Xr" warnings with a script 2024-10-15 17:18:14 -03:00
makefs makefs/zfs/tests: Force-destroy md devices 2026-02-09 18:03:42 +00:00
makemap Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
manctl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
memcontrol Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mfiutil mfiutil(8)/mrsasutil(8): "show drives" truncates information 2026-04-25 16:31:50 +02:00
mixer Revert "mixer(8): Implement hot-swapping" 2026-03-10 11:54:42 +01:00
mld6query usr.sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
mlx5tool manuals: Misc macro typos 2024-09-21 05:25:15 -06:00
mlxcontrol Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mount_smbfs Move mntopts(3) suppport into libutil 2025-04-22 22:51:42 +01:00
mountd exports.5: Typo: "auomatically" => "automatically" 2026-01-06 14:33:26 +01:00
moused msconvd(8): Drop mentions of Bus/InPort mouse support in manual page 2026-02-17 23:38:26 +03:00
mpsutil mpsutil: Clean up libutil deps 2024-01-24 17:10:24 -05:00
mptable Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mptutil mptutil: Capture CAM errors from bus rescan 2025-02-04 20:54:26 -07:00
mtest Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ndp sys/netinet6: Implement RFC 7217 2026-02-16 18:24:16 +01:00
newsyslog manuals: System message vs kernel message 2026-04-13 16:02:32 -04:00
nfscbd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
nfsd nfsv4.4: Document setup of a NFSv4 root fs 2026-04-17 17:59:41 -07:00
nfsdumpstate Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
nfsrevoke Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
nfsuserd nfsid.h: Put the nfsd_idargs structure in a new .h 2026-04-12 18:18:41 -07:00
ngctl ngctl.8: fix incorrect synopsis 2026-02-27 10:05:26 +00:00
nghook Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
nmtree Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
nologin Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
nscd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ntp ntp: Fix buildworld with MK_OPENSSL=no 2026-01-05 12:00:02 -08:00
nvram nvram.8: Align option list and tag SPDX 2026-05-07 15:16:26 -07:00
ofwdump Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
pciconf pciconf: Add a tree mode 2026-04-24 13:49:11 -04:00
periodic periodic: Support RFC 5424 syslog timestamps 2026-01-27 13:23:43 -04:00
pkg pkg: Move FreeBSD-base to pkg.freebsd.org 2025-11-27 14:39:16 -08:00
pmc libpmc: Move libpmc and utils to a new pmc package 2025-09-25 02:00:40 +01:00
pmcannotate pmcannotate: avoid accessing uninitialized local variables 2025-12-29 03:09:43 +01:00
pmccontrol libpmc: Move libpmc and utils to a new pmc package 2025-09-25 02:00:40 +01:00
pmcstat pmcstat(8): Fix a typo in an error message 2025-11-02 02:09:48 +01:00
pmcstudy libpmc: Move libpmc and utils to a new pmc package 2025-09-25 02:00:40 +01:00
pnfsdscopymr Update Makefile.depend files 2024-10-14 10:26:17 -07:00
pnfsdsfile Update Makefile.depend files 2024-10-14 10:26:17 -07:00
pnfsdskill Update Makefile.depend files 2024-10-14 10:26:17 -07:00
pnpinfo Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
powerd packages: Move powerd to its own package 2025-09-25 02:00:40 +01:00
ppp ppp: Fix a buffer overflow in the endpoint discriminator set command 2026-08-26 10:16:53 +02:00
pppctl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
praliases Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
praudit praudit: correct test case 2024-11-04 08:57:13 -05:00
prometheus_sysctl_exporter Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
pstat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
pw groups.7: New manual page of standard group names 2026-05-28 15:15:13 -07:00
pwd_mkdb There's no mkpasswd(8) man page any more. Replace Xr with plain name. 2025-04-19 19:45:16 +02:00
pwm Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
quot quot: Improve manual page 2025-11-19 11:56:50 +01:00
quotaon Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rarpd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
repquota Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rip6query packages: move route(6)d to the rip package 2025-08-07 13:36:59 +01:00
rmt Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
route6d packages: move route(6)d to the rip package 2025-08-07 13:36:59 +01:00
rpc.lockd rpc.lockd: avoid embedding assumptions about cr_groups[0] 2025-07-24 09:59:07 -05:00
rpc.statd rpc.statd: move to nfs package 2025-05-05 16:39:25 +01:00
rpc.tlsclntd rpcsec_tls: cleanup the rpctls_syscall() 2025-02-01 01:00:28 -08:00
rpc.tlsservd rpc.tlsservd.c: Pin max threads at 1 for now 2025-10-12 17:29:26 -07:00
rpc.umntall Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rpc.yppasswdd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rpc.ypupdated Revert "Remove Secure RPC DES authentication" 2025-08-15 17:59:18 +01:00
rpc.ypxfrd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rpcbind rpcbind: Code cleanup 2025-08-07 03:23:19 +02:00
rrenumd Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rtadvctl rtadvctl: Use nitems(foo) instead of sizeof(foo)/sizeof(foo[0]) 2024-04-28 21:24:46 -06:00
rtadvd rtadvd(8): Honor pltime/vltime in interface declarations 2026-05-07 13:19:02 -07:00
rtprio Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rtsold rtsold: check RA lifetime before triggering the one-shot always script 2026-06-25 11:18:46 +02:00
rwhod base: do a sweep of setgroups() that mean to clear the supplementaries 2025-07-26 01:11:58 -05:00
sa Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
sendmail Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
service service(8): Replace indentation in usage() 2026-04-26 18:43:11 +02:00
services_mkdb METALOG: Order keyword entries 2026-02-03 02:28:03 +00:00
sesutil manpages: prefer linking to xo_options.7 over xo_parse_args.3 2025-07-16 12:02:24 -06:00
setaudit setaudit: Add an update mode 2025-12-08 14:14:58 +00:00
setfib Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
setfmac Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
setpmac Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
smbmsg Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
snapinfo man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
sndctl sndctl(8): Add libxo support 2026-01-21 18:05:31 +02:00
spi Replace last few remaining MAN[1-8] with MAN 2025-07-26 12:00:02 +02:00
spkrtest Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
spray Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
syslogd syslogd/tests: Amend a test to catch leaked process descriptors 2026-09-30 11:46:35 +02:00
sysrc sysrc.8: Rewrite examples for mdoc conformance 2025-11-06 13:46:17 -05:00
tcpdchk Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tcpdmatch Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tcpdrop usr.sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
tcpdump tcpdump: Update to 4.99.6 2026-04-06 16:42:59 -03:00
tcpsso tcp: remove support for TCPPCAP 2025-03-31 16:55:39 +02:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
traceroute traceroute: MFC: graceful recover after networking errors with as_server 2026-02-23 13:35:46 +07:00
traceroute6 traceroute: MFC: graceful recover after networking errors with as_server 2026-02-23 13:35:46 +07:00
trim trim.8: minor update for manual page 2025-12-16 21:55:03 +07:00
tzsetup tzsetup: correct timezone symlink target 2024-09-30 10:22:34 -04:00
uathload uathload.8: Fix typo 2025-08-06 11:18:59 -04:00
uefisign uefisign.8: fix indent 2025-03-29 17:48:06 -03:00
ugidfw Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
uhsoctl usr.sbin/uhsoctl: correct SIOCDIFADDR calls to use ifreq 2024-07-22 14:58:19 +00:00
unbound local-unbound: Read a tab separated resolv.conf 2025-11-26 15:33:29 +00:00
usbconfig libusb: add SUPER_PLUS in speed enum. 2025-05-15 20:30:32 +02:00
usbdump Give usbdump a '-u' option for unbuffered output. 2024-10-21 11:21:05 +00:00
utx Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
valectl Update Makefile.depend files 2024-10-14 10:26:17 -07:00
vidcontrol vidcontrol.1: Video buffer dump is syscons only 2026-01-01 13:05:03 -05:00
vigr Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
vipw Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
virtual_oss virtual_oss.8: Remove CPU performance example 2026-04-24 16:12:44 +02:00
wake Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
watch watch.8: Align option list 2025-08-22 16:13:15 -04:00
watchdogd manpages: Fix author e-mail address formatting 2026-09-23 09:07:21 +02:00
wlandebug Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
wlanstat wlanstat: Drop unneeded bsd.compiler.mk from Makefile 2026-04-24 11:26:39 -04:00
wpa wpa_supplicant.conf.5: Remove removed variables 2026-02-12 00:04:43 -05:00
yp_mkdb Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ypbind Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ypldap ypldap(8): Fix a typo in a debug message 2025-11-24 06:58:15 +01:00
yppoll Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
yppush Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ypserv etc, ypserv: Fix symlink creation for pkgbase 2025-10-03 20:21:38 +01:00
ypset Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
zdump Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
zic Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
zonectl manpages: Fix author e-mail address formatting 2026-09-23 09:07:21 +02:00
zzz Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile src.opts: Introduce MK_SOUND 2026-01-21 18:06:42 +02:00
Makefile.aarch64 bhyvectl: Add arm64 bits and hook it up to the build 2024-05-01 08:33:23 -04:00
Makefile.amd64 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.i386 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.powerpc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.riscv usr.sbin: Gate bhyve/bhyvectl on MK_BHYVE for riscv 2025-06-13 18:56:51 +01:00