mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 07:44:48 -05:00
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 |
||
|---|---|---|
| .. | ||
| privcmd.c | ||