linux/drivers/hv
Vitaly Kuznetsov 77c0c9735b Drivers: hv: balloon: don't crash when memory is added in non-sorted order
When we iterate through all HA regions in handle_pg_range() we have an
assumption that all these regions are sorted in the list and the
'start_pfn >= has->end_pfn' check is enough to find the proper region.
Unfortunately it's not the case with WS2016 where host can hot-add regions
in a different order. We end up modifying the wrong HA region and crashing
later on pages online. Modify the check to make sure we found the region
we were searching for while iterating. Fix the same check in pfn_covered()
as well.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-05-01 09:23:14 -07:00
..
channel_mgmt.c Drivers: hv: vmbus: handle various crash scenarios 2016-05-01 09:23:14 -07:00
channel.c Drivers: hv: vmbus: Give control over how the ring access is serialized 2016-02-07 21:34:12 -08:00
connection.c Drivers: hv: vmbus: Export the vmbus_set_event() API 2016-04-30 14:00:19 -07:00
hv_balloon.c Drivers: hv: balloon: don't crash when memory is added in non-sorted order 2016-05-01 09:23:14 -07:00
hv_fcopy.c Drivers: hv: util: Pass the channel information during the init call 2016-03-01 16:57:20 -08:00
hv_kvp.c Drivers: hv: kvp: fix IP Failover 2016-05-01 09:23:14 -07:00
hv_snapshot.c Drivers: hv: util: Pass the channel information during the init call 2016-03-01 16:57:20 -08:00
hv_util.c Drivers: hv: util: Pass the channel information during the init call 2016-03-01 16:57:20 -08:00
hv_utils_transport.c Drivers: hv: utils: Remove util transport handler from list if registration fails 2016-03-01 16:57:20 -08:00
hv_utils_transport.h Drivers: hv: utils: introduce HVUTIL_TRANSPORT_DESTROY mode 2015-12-14 19:27:30 -08:00
hv.c Drivers: hv: vmbus: Support handling messages on multiple CPUs 2016-03-01 16:57:20 -08:00
hyperv_vmbus.h Drivers: hv: vmbus: handle various crash scenarios 2016-05-01 09:23:14 -07:00
Kconfig x86: Make Linux guest support optional 2013-03-04 13:14:25 -08:00
Makefile Drivers: hv: util: introduce hv_utils_transport abstraction 2015-05-24 12:17:41 -07:00
ring_buffer.c Drivers: hv: vmbus: Implement APIs to support "in place" consumption of vmbus packets 2016-04-30 14:00:19 -07:00
vmbus_drv.c Drivers: hv: vmbus: handle various crash scenarios 2016-05-01 09:23:14 -07:00