Roger Pau Monné 288b2385b8 xen/privcmd: fix integer truncation in IOCTL_PRIVCMD_MMAPBATCH
The size field in the XENMEM_add_to_physmap_range is an uint16_t, and the
privcmd driver was doing an implicit truncation of an int into an uint16_t
when filling the hypercall parameters.

Fix this by adding a loop and making sure privcmd splits ioctl request into
2^16 chunks when issuing the hypercalls.

Reported and tested by:	Marcin Cieslak <saper@saper.info>
Sponsored by:		Citrix Systems R&D
2016-05-06 16:44:46 +00:00
..
2016-05-05 22:26:23 +00:00
2016-05-05 22:26:23 +00:00
2016-04-30 00:53:10 +00:00
2016-05-05 22:26:23 +00:00
2016-05-02 19:32:06 +00:00
2016-04-20 14:29:03 +00:00
2016-05-05 22:26:23 +00:00
2016-05-03 21:51:52 +00:00
2016-05-06 05:24:10 +00:00
2016-05-03 18:05:43 +00:00
2016-05-03 18:05:43 +00:00
2016-05-03 18:05:43 +00:00
2016-05-03 18:05:43 +00:00
2016-04-29 16:07:25 +00:00
2016-05-06 15:37:06 +00:00
2016-05-06 01:49:46 +00:00
2016-04-29 20:43:51 +00:00