Hello everyone, Thank you for the patience and for the reviews. Here is the patchset with all of the changes. Kind regards, Martin Martin Radev (6): kvmtool: Add WARN_ONCE macro mmio: Sanitize addr and len virtio: Use u32 instead of int in pci_data_in/out virtio: Sanitize config accesses virtio: Check for overflows in QUEUE_NOTIFY and QUEUE_SEL kvmtool: Have stack be not executable on x86 include/kvm/util.h | 10 ++++++++ include/kvm/virtio-9p.h | 1 + include/kvm/virtio.h | 3 ++- mmio.c | 4 +++ virtio/9p.c | 27 ++++++++++++++++----- virtio/balloon.c | 10 +++++++- virtio/blk.c | 10 +++++++- virtio/console.c | 10 +++++++- virtio/mmio.c | 40 ++++++++++++++++++++++++++---- virtio/net.c | 10 +++++++- virtio/pci.c | 54 ++++++++++++++++++++++++++++++++++++----- virtio/rng.c | 8 +++++- virtio/scsi.c | 10 +++++++- virtio/vsock.c | 10 +++++++- x86/bios/bios-rom.S | 5 ++++ x86/bios/entry.S | 5 ++++ 16 files changed, 192 insertions(+), 25 deletions(-) -- 2.25.1