Luiz Capitulino
8c6bab4f38
virtio_balloon: leak_balloon(): only tell host if we got pages deflated
...
balloon_page_dequeue() can return NULL. If it does for the first page
being freed then leak_balloon() will create a scatter list with len=0.
Which in turn seems to generate an invalid virtio request.
I didn't get this in practice, I found it by code review. On the other
hand, such an invalid virtio request will cause errors in QEMU and
fill_balloon() also performs the same check implemented by this commit.
This bug was introduced in e2250429.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Acked-by: Rafael Aquini <aquini@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: stable@kernel.org # 3.9
2013-07-02 15:42:03 +09:30
..
2013-05-15 21:42:24 +02:00
2013-05-07 11:22:14 -07:00
2013-04-29 13:26:48 -04:00
2013-05-12 14:04:40 +02:00
2013-05-09 10:15:46 -07:00
2013-05-20 12:09:23 +09:30
2013-05-01 14:08:52 -07:00
2013-05-07 02:16:21 -04:00
2013-05-16 13:49:25 -07:00
2013-05-07 11:28:42 -07:00
2013-05-07 11:28:42 -07:00
2013-05-15 21:47:17 +02:00
2013-04-26 22:30:25 +02:00
2013-05-02 14:53:12 -07:00
2013-05-09 09:46:45 -07:00
2013-05-09 10:11:08 -07:00
2013-04-29 09:30:25 -07:00
2013-05-09 09:59:16 -07:00
2013-05-09 10:11:48 -07:00
2013-05-01 17:51:54 -07:00
2013-05-09 09:59:16 -07:00
2013-05-13 07:59:59 -07:00
2013-05-06 13:07:33 +02:00
2013-04-30 08:41:21 -07:00
2013-05-04 13:44:38 -07:00
2013-05-07 14:01:27 -07:00
2013-05-09 09:59:16 -07:00
2013-05-07 02:16:21 -04:00
2013-05-11 15:23:17 -07:00
2013-05-08 15:29:48 -07:00
2013-05-09 09:59:16 -07:00
2013-05-06 14:59:13 -07:00
2013-05-07 11:28:42 -07:00
2013-05-01 17:51:54 -07:00
2013-05-09 09:59:16 -07:00
2013-07-02 15:42:00 +09:30
2013-05-02 10:16:16 -07:00
2013-05-10 14:37:21 +01:00
2013-05-02 14:38:53 -07:00
2013-05-07 02:16:21 -04:00
2013-05-08 10:13:35 -07:00
2013-05-05 17:36:20 -07:00
2013-05-01 17:51:54 -07:00
2013-05-15 13:37:54 -07:00
2013-05-09 10:15:46 -07:00
2013-05-16 15:07:25 -07:00
2013-05-15 10:58:22 -07:00
2013-05-04 14:47:26 -04:00
2013-05-08 13:13:29 -07:00
2013-05-06 23:08:32 +02:00
2013-05-09 10:21:44 -07:00
2013-05-09 09:59:16 -07:00
2013-05-10 09:09:47 -07:00
2013-05-02 10:16:16 -07:00
2013-05-05 17:36:20 -07:00
2013-05-01 17:51:54 -07:00
2013-04-23 10:58:47 +02:00
2013-05-09 09:59:16 -07:00
2013-05-07 14:04:56 -07:00
2013-05-07 14:02:00 -07:00
2013-05-15 14:05:17 -07:00
2013-05-08 10:13:35 -07:00
2013-05-10 07:54:01 -07:00
2013-05-13 18:27:18 +04:00
2013-05-09 10:15:46 -07:00
2013-05-09 09:59:16 -07:00
2013-05-16 07:55:07 -07:00
2013-04-27 09:28:56 +08:00
2013-05-11 14:29:11 -07:00
2013-05-09 14:34:58 -07:00
2013-04-29 18:28:43 -07:00
2013-05-02 14:02:32 -07:00
2013-05-08 10:49:03 +09:30
2013-05-10 07:48:05 -07:00
2013-07-02 15:42:03 +09:30
2013-05-09 09:59:16 -07:00
2013-05-09 08:13:41 +02:00
2013-05-11 16:19:30 -07:00
2013-05-01 17:29:18 -04:00
2013-05-04 12:31:18 -07:00
2013-05-04 12:31:18 -07:00