summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authordv <dv@cvs.openbsd.org>2021-04-22 18:40:22 +0000
committerdv <dv@cvs.openbsd.org>2021-04-22 18:40:22 +0000
commitb9ecd1063263ccc7343f56e4c67eccabf06a96dd (patch)
tree7da1dfbec1a4a2cf1f58b9c700a871c888e66bdf /usr.bin/mg
parent2497f9017e6614cacc224d4b80b088024f87d9f2 (diff)
vmd(8): guard against bad virtio drivers
Add protections against guests with bad virtio-{blk,net,scsi} drivers, specifically avoiding invalid descriptor chains and invalid vionet packet sizes. This helps prevent possible lockup of the host vm process due to a spinning device event loop thread. Also fix an unneeded cast in the vioblk handling in case of invalid buffer lengths. OK mlarkin@
Diffstat (limited to 'usr.bin/mg')
0 files changed, 0 insertions, 0 deletions