All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vhost: make msg padding explicit
@ 2018-04-27 16:02 Michael S. Tsirkin
  0 siblings, 0 replies; 18+ messages in thread
From: Michael S. Tsirkin @ 2018-04-27 16:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: netdev, Kevin Easton, kvm, virtualization

There's a 32 bit hole just after type. It's best to
give it a name, this way compiler is forced to initialize
it with rest of the structure.

Reported-by: Kevin Easton <kevin@guarana.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 include/uapi/linux/vhost.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h
index c51f8e5..5a8ad06 100644
--- a/include/uapi/linux/vhost.h
+++ b/include/uapi/linux/vhost.h
@@ -68,6 +68,7 @@ struct vhost_iotlb_msg {
 
 struct vhost_msg {
 	int type;
+	int padding0;
 	union {
 		struct vhost_iotlb_msg iotlb;
 		__u8 padding[64];
-- 
MST

^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [PATCH] vhost: make msg padding explicit
@ 2018-04-27 16:02 Michael S. Tsirkin
  2018-04-30  1:34 ` David Miller
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Michael S. Tsirkin @ 2018-04-27 16:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: Kevin Easton, Jason Wang, kvm, virtualization, netdev

There's a 32 bit hole just after type. It's best to
give it a name, this way compiler is forced to initialize
it with rest of the structure.

Reported-by: Kevin Easton <kevin@guarana.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 include/uapi/linux/vhost.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h
index c51f8e5..5a8ad06 100644
--- a/include/uapi/linux/vhost.h
+++ b/include/uapi/linux/vhost.h
@@ -68,6 +68,7 @@ struct vhost_iotlb_msg {
 
 struct vhost_msg {
 	int type;
+	int padding0;
 	union {
 		struct vhost_iotlb_msg iotlb;
 		__u8 padding[64];
-- 
MST

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

end of thread, other threads:[~2018-05-02 14:40 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-27 16:02 [PATCH] vhost: make msg padding explicit Michael S. Tsirkin
  -- strict thread matches above, loose matches on Subject: below --
2018-04-27 16:02 Michael S. Tsirkin
2018-04-30  1:34 ` David Miller
2018-04-30  1:34 ` David Miller
2018-05-01 15:28 ` David Miller
2018-05-01 17:19   ` Michael S. Tsirkin
2018-05-01 17:19   ` Michael S. Tsirkin
2018-05-01 18:05     ` David Miller
2018-05-01 18:05     ` David Miller
2018-05-02  6:28       ` Kevin Easton
2018-05-02 13:36         ` Michael S. Tsirkin
2018-05-02 13:36         ` Michael S. Tsirkin
2018-05-02 14:04           ` David Miller
2018-05-02 14:04             ` David Miller
2018-05-02 14:19             ` Michael S. Tsirkin
2018-05-02 14:19               ` Michael S. Tsirkin
2018-05-02 14:40               ` Kevin Easton
2018-05-01 15:28 ` 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.