Amit Shah e61da14d60 virtio-serial: Handle scatter-gather buffers for control messages
Current control messages are small enough to not be split into multiple
buffers but we could run into such a situation in the future or a
malicious guest could cause such a situation.

So handle the entire iov request for control messages.

Also ensure the size of the control request is >= what we expect
otherwise we risk accessing memory that we don't own.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
CC: Avi Kivity <avi@redhat.com>
Reported-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-04-28 08:58:22 -05:00
..
2010-03-29 19:23:57 +00:00
2010-03-21 20:37:50 +00:00
2010-04-05 19:43:12 +01:00
2010-04-08 21:17:10 +02:00
2010-04-08 21:44:38 +02:00
2010-03-21 19:47:15 +00:00
2010-02-07 19:28:32 +00:00
2010-04-05 19:57:40 +01:00
2010-04-18 08:55:12 +00:00
2010-04-18 08:55:12 +00:00
2010-02-07 08:05:47 +00:00
2010-03-29 19:23:55 +00:00
2010-02-07 09:01:18 +00:00
2010-03-29 19:23:56 +00:00
2010-02-07 09:15:26 +00:00
2010-03-21 19:47:15 +00:00
2010-03-21 19:47:09 +00:00
2010-03-29 19:23:56 +00:00
2010-02-07 02:03:50 +03:00
2010-04-28 08:58:22 -05:00
2010-04-28 08:58:22 -05:00
2010-03-21 19:47:09 +00:00
2010-03-21 19:47:09 +00:00
2010-02-07 08:05:03 +00:00
2010-03-30 17:36:23 +00:00
2010-03-29 19:23:56 +00:00
2010-03-27 07:26:16 +00:00
2010-03-29 19:23:56 +00:00
2010-03-29 19:23:56 +00:00
2010-03-27 07:26:16 +00:00
2010-03-29 19:23:55 +00:00
2010-02-07 08:05:03 +00:00
2010-03-29 19:23:59 +00:00
2010-03-29 19:23:52 +00:00
2010-03-23 09:59:54 +01:00
2010-03-21 19:47:15 +00:00
2010-02-14 16:10:54 +02:00
2010-04-20 17:15:41 +00:00
2010-02-22 20:42:51 +00:00
2010-03-21 19:47:15 +00:00
2010-03-21 19:47:11 +00:00
2010-02-14 16:10:54 +02:00
2010-04-04 21:18:26 +01:00
2010-03-21 19:47:11 +00:00
2010-03-29 19:24:04 +00:00
2010-03-09 08:47:20 -06:00
2010-04-05 19:57:40 +01:00
2010-04-05 19:57:40 +01:00
2010-04-23 16:08:45 +02:00
2010-04-04 21:18:26 +01:00
2010-04-09 22:06:22 +02:00
2010-04-09 22:06:22 +02:00
2010-04-09 22:06:22 +02:00
2010-03-17 11:17:05 -05:00
2010-02-10 16:53:25 -06:00
2010-03-21 19:47:11 +00:00
2010-04-13 20:17:24 +02:00
2010-04-05 19:57:40 +01:00
2010-03-21 19:47:11 +00:00
2010-03-30 17:36:23 +00:00
2010-04-04 21:18:26 +01:00
2010-03-31 11:16:52 -05:00
2010-03-21 19:47:09 +00:00
2010-04-08 11:11:21 +02:00
2010-04-01 13:56:43 -05:00
2010-04-14 00:12:04 +02:00
2010-04-01 13:56:43 -05:00
2010-04-23 16:21:57 +02:00
2010-04-01 13:56:43 -05:00
2010-02-03 19:47:34 -02:00
2010-03-09 08:47:27 -06:00