All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] vhost: fix vhost_vq_access_ok() log check
@ 2018-04-11  2:35 Stefan Hajnoczi
  2018-04-11  2:35 ` [PATCH v3 1/2] " Stefan Hajnoczi
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Stefan Hajnoczi @ 2018-04-11  2:35 UTC (permalink / raw)
  To: virtualization
  Cc: Linus Torvalds, jasowang, mst, netdev, syzkaller-bugs, kvm,
	linux-kernel, Stefan Hajnoczi

v3:
 * Rebased onto net/master and resolved conflict [DaveM]

v2:
 * Rewrote the conditional to make the vq access check clearer [Linus]
 * Added Patch 2 to make the return type consistent and harder to misuse [Linus]

The first patch fixes the vhost virtqueue access check which was recently
broken.  The second patch replaces the int return type with bool to prevent
future bugs.

Stefan Hajnoczi (2):
  vhost: fix vhost_vq_access_ok() log check
  vhost: return bool from *_access_ok() functions

 drivers/vhost/vhost.h |  4 +--
 drivers/vhost/vhost.c | 70 ++++++++++++++++++++++++++-------------------------
 2 files changed, 38 insertions(+), 36 deletions(-)

-- 
2.14.3

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-04-11 14:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-11  2:35 [PATCH v3 0/2] vhost: fix vhost_vq_access_ok() log check Stefan Hajnoczi
2018-04-11  2:35 ` [PATCH v3 1/2] " Stefan Hajnoczi
2018-04-11 13:23   ` Michael S. Tsirkin
2018-04-11 13:23   ` Michael S. Tsirkin
2018-04-11  2:35 ` [PATCH v3 2/2] vhost: return bool from *_access_ok() functions Stefan Hajnoczi
2018-04-11  2:35 ` Stefan Hajnoczi
2018-04-11 13:23   ` Michael S. Tsirkin
2018-04-11 13:23     ` Michael S. Tsirkin
2018-04-11  3:33 ` [PATCH v3 0/2] vhost: fix vhost_vq_access_ok() log check Jason Wang
2018-04-11 13:24 ` Michael S. Tsirkin
2018-04-11 13:24   ` Michael S. Tsirkin
2018-04-11 14:55   ` David Miller
2018-04-11 14:55   ` David Miller

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.