freebsd-skq/sys/dev/xen
royger 8e9c8dae36 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
..
balloon sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
blkback Improve performance and functionality of the bitstring(3) api 2016-05-04 22:34:11 +00:00
blkfront sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
console xen/console: Introduce a new console driver for Xen guest 2015-10-08 16:39:43 +00:00
control sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
debug
evtchn
grant_table sys/dev: extend use of the howmany() macro when available. 2016-04-26 15:03:15 +00:00
netback sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
netfront tcp/lro: Use tcp_lro_flush_all in device drivers to avoid code duplication 2016-04-01 06:28:33 +00:00
pci Associate device_t objects with ACPI handles via PCI_CHILD_ADDED(). 2016-04-07 17:15:16 +00:00
pcifront Add domain support to PCI bus allocation 2015-09-16 23:34:51 +00:00
privcmd xen/privcmd: fix integer truncation in IOCTL_PRIVCMD_MMAPBATCH 2016-05-06 16:44:46 +00:00
pvcpu
timer xen/pvclock: set the correct resolution for the Xen PV clock 2016-05-04 13:49:59 +00:00
xenpci xen: Code cleanup and small bug fixes 2015-10-21 10:44:07 +00:00
xenstore sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00