freebsd-skq/usr.sbin
Ryan Moeller 60dc6bee1f bhyve: Update TX descriptor base address and host mapping on change
bhyve sometimes segfaults when using an e1000 NIC with a Windows guest.

We are only updating our tdba and cached host mapping when the low address
register is written and when tx is set enabled, but not when the high address
or length registers are written. It is observed that Windows 10 is occasionally
enabling tx first then writing the registers in the order low, high, len. This
leaves us with a bogus base address and mapping, which causes a segfault later
when we try to copy from a descriptor that has unpredictable garbage in a
pointer.

Updating the address and mapping when any of those registers change seems to fix
that particular issue.

Reviewed by:	mav, grehan (bhyve)
MFC after:	1 week
Sponsored by:	iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D26798
2020-10-16 20:27:20 +00:00
..
ac
accton
acpi
adduser
ancontrol
apm
apmd
arp arp(8) clarify the use of the '-a flag' 2020-07-13 15:06:29 +00:00
audit
auditd
auditdistd
auditreduce
authpf
autofs
bhyve bhyve: Update TX descriptor base address and host mapping on change 2020-10-16 20:27:20 +00:00
bhyvectl Remove no longer used variable. 2020-09-17 18:06:57 +00:00
bhyveload bhyveload(8): Implement loader_callbacks::diskwrite 2020-10-07 20:31:13 +00:00
binmiscctl
blacklistctl
blacklistd
bluetooth
boot0cfg
bootparamd
bsdconfig bsdconfig, bsdinstall: Prune dead mirrors 2020-09-26 16:27:09 +00:00
bsdinstall Initial support for implementing the bootXXX.efi workaround 2020-10-09 00:16:26 +00:00
bsnmpd Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
btxld
camdd Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
cdcontrol
certctl certctl: fix unprivileged mode 2020-09-15 17:13:29 +00:00
chkgrp
chown
chroot
ckdist
clear_locks
config
cpucontrol
crashinfo Remove nfsstat. Running nfsstat in crashinfo will give the stats of the 2020-10-01 08:57:36 +00:00
cron
crunch crunchgen: fix MK_AUTO_OBJ logic after r364166 2020-10-05 20:57:44 +00:00
ctladm Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
ctld ctl.conf(5): fix LUN size in UCL format example. 2020-10-13 18:00:23 +00:00
cxgbetool cxgbetool(8): Remove dublicate word 'whether' 2020-10-10 14:36:16 +00:00
daemon Fix a typo in the 366098. 2020-09-24 19:12:03 +00:00
dconschat
devctl
devinfo
diskinfo
dumpcis
editmap
edquota edquota(8): Cleanup to make it WARNS=6 clean. 2020-08-17 05:57:22 +00:00
efibootmgr efibootmgr: wrong check for opts.order 2020-08-26 14:02:38 +00:00
efidp
efivar Comment out bogus command line entry 2020-09-25 18:20:45 +00:00
etcupdate
extattr
extattrctl Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
fdcontrol
fdformat
fdread
fdwrite
fifolog
flowctl
fmtree Avoid collisions with function names in openssl headers. 2020-09-04 04:31:56 +00:00
freebsd-update Move finalize_components_config from get_params to cmd_*. 2020-09-19 02:15:56 +00:00
fstyp Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
ftp-proxy
fwcontrol
getfmac
getpmac
gpioctl
gssd
gstat In the endless batch mode (-B), terminate if and when stdout is closed. 2020-08-24 16:45:23 +00:00
hyperv
i2c Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
ifmcstat
inetd
iostat
iovctl Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
ip6addrctl
ipfwpcap
iscsid Add DSCP support for network QoS to iscsi initiator. 2020-10-09 14:33:09 +00:00
jail Disregard jails in jail.conf that have bad parameters (parameter/variable 2020-08-27 17:04:55 +00:00
jexec
jls
kbdcontrol
kbdmap
keyserv
kgmon
kldxref kldxref: Avoid buffer overflows in parse_pnp_list 2020-10-15 18:03:14 +00:00
lastlogin
lpr
lptcontrol
mailstats
mailwrapper
makefs makefs: connect cd9660 El Torito EFI boot image system type 2020-09-17 19:41:10 +00:00
makemap
manctl
memcontrol
mergemaster
mfiutil
mixer
mld6query
mlx5tool Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
mlxcontrol
mount_smbfs
mountd Modify mountd.c so that it does not always malloc 4K for the map credentials. 2020-10-10 00:01:40 +00:00
moused
mpsutil
mptable
mptutil
mtest
ndiscvt
ndp
newsyslog
nfscbd
nfsd Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
nfsdumpstate
nfsrevoke
nfsuserd Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
ngctl ngctl: add -c (compact output) for the dot command 2020-10-04 17:07:13 +00:00
nghook
nmtree Allow bootstrapping mtree on Linux systems 2020-08-03 18:08:10 +00:00
nologin Revert 363598 2020-08-17 10:25:02 +00:00
nscd nscd: does not warn about invalid values what parsing config file 2020-07-11 19:44:12 +00:00
ntp [PowerPC] Fix multiple ntp configuration issues 2020-09-23 02:37:27 +00:00
nvram
ofwdump
pciconf pciconf: print PCIe CTL max read request. 2020-09-30 21:12:14 +00:00
periodic periodic.conf(5): don't truncate interface names reported by 420.status-network. 2020-09-09 19:07:34 +00:00
pkg pkg-bootstrap: complain on improper pkg bootstrap usage 2020-07-22 17:33:35 +00:00
pmc pmc: Fix freed internal location read 2020-09-01 15:52:18 +00:00
pmcannotate
pmccontrol
pmcstat pmcstat.8: Improve description of -T 2020-08-17 10:51:03 +00:00
pmcstudy Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
pnfsdscopymr
pnfsdsfile pnfsdsfile(8): Remove dublicate word 'the' 2020-10-10 14:38:01 +00:00
pnfsdskill
pnpinfo
portsnap phttpget: move out of portsnap 2020-09-09 00:39:47 +00:00
powerd
ppp ppp: Document the fact that ppp_nat is enabled by default 2020-07-11 18:24:16 +00:00
pppctl
praliases
praudit
prometheus_sysctl_exporter
pstat
pw Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
pwd_mkdb Fix bootstrapping of pwd_mkdb after r364049 2020-08-11 16:46:38 +00:00
pwm pwm(8): fix potential duty overflow, use unsigneds for period and duty 2020-09-25 07:55:08 +00:00
quot
quotaon
rarpd
repquota
rip6query
rmt
route6d
rpc.lockd
rpc.statd
rpc.umntall
rpc.yppasswdd
rpc.ypupdated
rpc.ypxfrd
rpcbind
rrenumd
rtadvctl
rtadvd
rtprio
rtsold rtsol(d): add script for "M bit" 2020-08-25 16:09:23 +00:00
rwhod Remove reference to nlist(3) missed in SCCS revision 5.26 by mckusick 2020-07-24 16:58:13 +00:00
sa
sendmail Merge sendmail 8.16.1 to HEAD: See contrib/sendmail/RELEASE_NOTES for details 2020-07-15 18:28:54 +00:00
service
services_mkdb
sesutil
setfib
setfmac
setpmac
smbmsg
snapinfo
spi Clean up spi.8 2020-08-21 09:48:00 +00:00
spkrtest
spray
syslogd syslogd: Avoid trimming host names in RFC 5424 mode 2020-10-09 15:19:29 +00:00
sysrc
tcpdchk
tcpdmatch
tcpdrop
tcpdump
tests
traceroute
traceroute6 [traceroute6] Don't do the casper bits when we're not doing casper 2020-10-14 00:01:17 +00:00
trim
trpt
tzsetup Don't link against libdialog/ncurses when bootstrapping tzsetup 2020-08-07 16:04:10 +00:00
uathload
uefisign
ugidfw
uhsoctl
unbound Update unbound version number. 2020-08-24 18:17:13 +00:00
usbconfig
usbdump
utx
valectl
vidcontrol
vigr
vipw
wake
watch
watchdogd
wlandebug
wpa build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
yp_mkdb Fix clang 11 -Wformat warnings in yp_mkdb: 2020-08-06 20:31:50 +00:00
ypbind
ypldap Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
yppoll
yppush
ypserv
ypset
zic
zonectl Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
zzz
Makefile [pmc] whoops, remove spurious #'s 2020-07-14 05:33:23 +00:00
Makefile.amd64
Makefile.arm
Makefile.arm64
Makefile.i386
Makefile.inc build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
Makefile.mips
Makefile.powerpc
Makefile.riscv