Vitaly Kuznetsov
5faf7c1455
libxc: fix mmap leak in xc_unmap_domain_meminfo/xc_map_domain_meminfo
...
xc_unmap_domain_meminfo uses P2M_FLL_ENTRIES macro instead of P2M_FL_ENTRIES.
Moreover, P2M_FL_ENTRIES macro uses (dinfo->p2m_size) which is always 0 here
as we don't initialize it. The result is that we always unmap just 1 frame.
xc_map_domain_meminfo uses P2M_FLL_ENTRIES macro instead of P2M_FL_ENTRIES
on failure path.
The issue went unnoticed mostly because we use unmap_domain_meminfo and
xc_map_domain_meminfo in one-shot xen-mfndump and xen-hptool (through
xc_exchange_page()) tools. When used is long-running apps (e.g. in xl)
domains become zombies after their death.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com >
Acked-by: Ian Campbell <ian.campbell@citrix.com >
2014-10-02 13:53:32 +01:00
..
2014-09-23 14:40:07 +01:00
2010-08-24 18:42:59 +01:00
2014-09-23 14:40:07 +01:00
2013-12-04 14:02:10 +00:00
2014-09-11 11:58:02 +01:00
2014-03-10 16:50:17 +00:00
2013-02-21 16:12:46 +00:00
2013-02-21 16:12:46 +00:00
2014-07-18 13:38:08 +01:00
2013-02-21 16:12:46 +00:00
2014-06-10 13:46:45 +01:00
2013-04-11 11:09:25 +01:00
2010-08-24 18:42:59 +01:00
2014-05-12 17:05:33 +02:00
2014-09-10 15:07:02 +01:00
2014-02-12 16:53:23 +00:00
2010-08-24 18:42:59 +01:00
2012-02-23 10:17:50 +00:00
2014-07-10 10:37:46 +01:00
2014-05-14 15:12:01 +01:00
2014-01-10 16:59:01 +00:00
2014-02-12 12:48:45 +00:00
2013-10-07 09:42:51 +02:00
2013-02-21 16:12:46 +00:00
2014-04-08 15:48:22 +01:00
2014-06-18 17:18:13 +01:00
2013-04-22 12:46:30 +01:00
2013-04-22 12:46:30 +01:00
2014-07-04 09:47:01 +01:00
2014-07-18 13:38:08 +01:00
2013-04-22 12:46:30 +01:00
2013-04-22 12:46:30 +01:00
2013-10-07 09:42:51 +02:00
2013-06-14 16:39:38 +01:00
2014-06-10 16:04:03 +01:00
2014-09-23 15:17:08 +01:00
2014-06-27 14:13:22 +01:00
2014-10-02 13:53:32 +01:00
2010-08-24 18:42:59 +01:00
2010-08-24 18:42:59 +01:00
2013-02-21 16:12:46 +00:00
2014-03-12 13:26:15 +00:00
2014-03-10 16:50:58 +00:00
2014-06-18 17:17:49 +01:00
2014-06-18 17:17:49 +01:00
2014-06-10 13:46:45 +01:00
2013-11-12 11:46:39 +01:00
2013-02-21 16:12:46 +00:00
2014-06-27 14:13:21 +01:00
2013-11-12 11:47:07 +01:00
2014-09-10 15:06:50 +01:00
2013-02-21 16:12:46 +00:00
2014-09-18 14:56:43 +02:00
2014-09-18 14:56:43 +02:00
2014-03-10 16:50:58 +00:00
2012-04-24 19:05:08 +01:00
2014-06-10 16:04:03 +01:00
2014-08-26 22:03:17 +01:00
2014-01-10 16:59:01 +00:00
2014-06-27 14:13:22 +01:00
2014-06-18 16:22:49 +01:00
2013-09-13 13:06:28 +01:00
2013-05-21 11:32:34 +02:00
2014-03-18 11:52:34 +01:00
2014-07-14 16:07:50 +01:00
2014-09-23 10:15:43 +01:00
2014-06-27 14:13:22 +01:00
2014-09-23 14:40:07 +01:00
2010-08-24 18:42:59 +01:00
2014-01-10 16:59:01 +00:00
2014-09-23 10:15:43 +01:00
2014-06-05 13:53:59 +01:00
2014-04-16 17:08:54 +01:00
2014-06-27 14:13:23 +01:00
2014-05-02 13:34:34 +01:00
2014-07-18 13:38:08 +01:00
2014-07-18 13:38:08 +01:00
2010-08-24 18:42:59 +01:00
2014-05-02 13:34:34 +01:00