K 10 svn:author V 6 royger K 8 svn:date V 27 2016-05-06T16:44:46.433983Z K 7 svn:log V 463 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 Sponsored by: Citrix Systems R&D END