From: Martin Radev <martin.b.radev@gmail.com>
To: kvm@vger.kernel.org, will@kernel.org,
julien.thierry.kdev@gmail.com, andre.przywara@arm.com,
alexandru.elisei@arm.com
Cc: Martin Radev <martin.b.radev@gmail.com>
Subject: [PATCH v2 kvmtool 0/5] Fix few small issues in virtio code
Date: Fri, 4 Mar 2022 01:10:45 +0200 [thread overview]
Message-ID: <20220303231050.2146621-1-martin.b.radev@gmail.com> (raw)
Hello everyone,
Thanks for the reviews in the first patch set.
This is the second version of the original patch set which addresses
few found overflows in the common virtio code. Since the first version,
the following changes were made:
- the virtio_net warning patch was removed.
- a WARN_ONCE macro is added to help signal that an issue was observed,
but without polluting the log.
- a couple of improvements in sanitization and style.
- TODO comment for missing handling of multi-byte PCI accesses.
The Makefile change is kept in its original form because I didn't understand
if there is an issue with it on aarch64.
Martin Radev (5):
kvmtool: Add WARN_ONCE macro
virtio: Sanitize config accesses
virtio: Check for overflows in QUEUE_NOTIFY and QUEUE_SEL
Makefile: Mark stack as not executable
mmio: Sanitize addr and len
Makefile | 7 +++--
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 | 44 +++++++++++++++++++++++++-----
virtio/net.c | 12 +++++++--
virtio/pci.c | 59 ++++++++++++++++++++++++++++++++++++++---
virtio/rng.c | 8 +++++-
virtio/scsi.c | 10 ++++++-
virtio/vsock.c | 10 ++++++-
15 files changed, 199 insertions(+), 26 deletions(-)
--
2.25.1
next reply other threads:[~2022-03-03 23:11 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-03 23:10 Martin Radev [this message]
2022-03-03 23:10 ` [PATCH kvmtool 1/5] kvmtool: Add WARN_ONCE macro Martin Radev
2022-03-03 23:10 ` [PATCH kvmtool 2/5] virtio: Sanitize config accesses Martin Radev
2022-03-16 13:04 ` Alexandru Elisei
2022-03-27 20:37 ` Martin Radev
2022-04-22 10:12 ` Alexandru Elisei
2022-03-03 23:10 ` [PATCH kvmtool 3/5] virtio: Check for overflows in QUEUE_NOTIFY and QUEUE_SEL Martin Radev
2022-03-16 15:38 ` Alexandru Elisei
2022-03-27 20:45 ` Martin Radev
2022-04-22 10:35 ` Alexandru Elisei
2022-03-03 23:10 ` [PATCH kvmtool 4/5] Makefile: Mark stack as not executable Martin Radev
2022-03-03 23:10 ` [PATCH kvmtool 5/5] mmio: Sanitize addr and len Martin Radev
2022-03-16 15:39 ` Alexandru Elisei
2022-03-27 21:00 ` Martin Radev
2022-04-22 10:36 ` Alexandru Elisei
2022-03-10 14:56 ` [PATCH v2 kvmtool 0/5] Fix few small issues in virtio code Alexandru Elisei
2022-03-11 11:23 ` Andre Przywara
2022-03-14 17:11 ` Alexandru Elisei
2022-03-27 12:46 ` Martin Radev
2022-04-22 10:37 ` Alexandru Elisei
2022-05-06 13:20 ` Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220303231050.2146621-1-martin.b.radev@gmail.com \
--to=martin.b.radev@gmail.com \
--cc=alexandru.elisei@arm.com \
--cc=andre.przywara@arm.com \
--cc=julien.thierry.kdev@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.