Kirti Wankhede
2b8bb1d771
vfio iommu type1: Fix size argument to vfio_find_dma() in pin_pages/unpin_pages
...
Passing zero for the size to vfio_find_dma() isn't compatible with
matching the start address of an existing vfio_dma. Doing so triggers a
corner case. In vfio_find_dma(), when the start address is equal to
dma->iova and size is 0, check for the end of search range makes it to
take wrong side of RB-tree. That fails the search even though the address
is present in mapped dma ranges.
In functions pin_pages and unpin_pages, the iova which is being searched
is base address of page to be pinned or unpinned. So here size should be
set to PAGE_SIZE, as argument to vfio_find_dma().
Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com >
Signed-off-by: Neo Jia <cjia@nvidia.com >
Signed-off-by: Alex Williamson <alex.williamson@redhat.com >
2016-12-06 12:35:53 -07:00
..
2016-11-11 23:23:02 +01:00
2016-10-24 19:37:48 +02:00
2016-10-25 11:43:07 -04:00
2016-10-06 17:03:41 +02:00
2016-11-13 10:22:07 -08:00
2016-11-12 08:27:07 -07:00
2016-10-20 10:14:49 +02:00
2016-10-17 13:46:09 -07:00
2016-11-13 10:24:08 -08:00
2016-11-01 17:41:20 -07:00
2016-10-20 21:58:58 +02:00
2016-10-29 01:29:17 +02:00
2016-10-15 09:26:12 -07:00
2016-10-10 14:04:16 -07:00
2016-10-27 17:04:05 -07:00
2016-10-11 00:01:20 +02:00
2016-10-06 17:13:54 -07:00
2016-10-11 18:12:22 -07:00
2016-10-04 12:06:26 -07:00
2016-10-26 16:04:29 +09:00
2016-11-03 14:46:39 +01:00
2016-10-19 14:49:44 +02:00
2016-11-01 19:31:49 +01:00
2016-11-11 09:09:57 +10:00
2016-11-05 16:56:09 +01:00
2016-11-01 09:07:13 -06:00
2016-10-24 06:05:13 -07:00
2016-11-04 20:36:58 +01:00
2016-10-07 18:46:30 -07:00
2016-11-13 10:08:32 +01:00
2016-11-11 08:45:08 -08:00
2016-11-05 11:26:11 -07:00
2016-11-08 15:08:26 +01:00
2016-10-27 18:43:43 -07:00
2016-10-21 21:40:29 +02:00
2016-10-07 14:42:05 -07:00
2016-10-06 17:36:53 -07:00
2016-09-27 12:33:47 +02:00
2016-11-05 11:34:07 -07:00
2016-11-13 10:02:22 -08:00
2016-10-07 21:23:40 -07:00
2016-10-17 15:43:05 +02:00
2016-10-07 08:35:35 -07:00
2016-10-31 10:25:22 -06:00
2016-11-07 13:30:08 +01:00
2016-11-05 10:52:29 -07:00
2016-10-29 20:33:20 -07:00
2016-10-31 10:25:22 -06:00
2016-10-27 16:16:21 -07:00
2016-11-11 18:27:32 -07:00
2016-10-07 21:23:40 -07:00
2016-11-11 08:12:37 -08:00
2016-10-10 20:16:43 -07:00
2016-11-11 16:38:26 -08:00
2016-11-11 08:45:08 -08:00
2016-10-17 15:50:07 +01:00
2016-11-05 13:45:02 +05:30
2016-11-07 10:31:33 +01:00
2016-11-11 17:02:01 -08:00
2016-10-06 18:21:15 -07:00
2016-10-11 15:06:32 -07:00
2016-10-13 10:20:06 -04:00
2016-10-19 08:11:43 -07:00
2016-10-28 18:22:40 +01:00
2016-10-06 17:03:49 -07:00
2016-10-22 18:31:42 +09:00
2016-10-14 13:13:44 -07:00
2016-10-27 14:16:30 -07:00
2016-11-13 10:07:08 -08:00
2016-10-14 11:07:42 -07:00
2016-10-29 12:51:55 -06:00
2016-09-27 12:43:34 +02:00
2016-11-13 10:13:33 -08:00
2016-10-21 01:19:44 -07:00
2016-10-20 14:15:44 +08:00
2016-10-28 08:13:07 -04:00
2016-11-10 13:12:59 +01:00
2016-11-01 09:04:04 -06:00
2016-12-06 12:35:53 -07:00
2016-10-19 08:39:47 -07:00
2016-10-19 08:11:43 -07:00
2016-10-31 00:40:08 +02:00
2016-10-28 08:25:18 -04:00
2016-10-21 22:24:23 +02:00
2016-10-24 19:52:24 -07:00
2016-10-23 15:56:23 -07:00