Jason Gunthorpe
bd5d3587b2
mm/hmm: return error for non-vma snapshots
...
The pagewalker does not call most ops with NULL vma, those are all routed
to hmm_vma_walk_hole() via ops->pte_hole instead.
Thus hmm_vma_fault() is only called with a NULL vma from
hmm_vma_walk_hole(), so hoist the NULL vma check to there.
Now it is clear that snapshotting with no vma is a HMM_PFN_ERROR as
without a vma we have no path to call hmm_vma_fault().
Link: https://lore.kernel.org/r/20200327200021.29372-10-jgg@ziepe.ca
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-03-30 16:58:36 -03:00
..
2020-01-31 11:23:29 -08:00
2020-01-31 10:30:36 -08:00
2019-09-04 07:42:01 -04:00
2019-07-12 12:24:03 -07:00
2019-12-01 12:59:09 -08:00
2019-12-01 12:59:09 -08:00
2017-11-02 11:10:55 +01:00
2019-10-14 15:04:01 -07:00
2017-11-02 11:10:55 +01:00
2020-01-31 10:30:39 -08:00
2019-07-12 11:05:46 -07:00
2020-01-31 10:30:38 -08:00
2019-08-30 22:43:58 -07:00
2019-07-12 11:05:43 -07:00
2020-01-31 10:30:37 -08:00
2019-09-25 17:51:41 -07:00
2019-06-19 17:09:52 +02:00
2020-01-31 10:30:38 -08:00
2020-02-04 03:05:26 +00:00
2019-12-10 10:12:55 +01:00
2020-03-30 16:58:36 -03:00
2020-01-31 12:16:36 -08:00
2019-12-16 12:41:40 -08:00
2020-01-04 13:55:09 -08:00
2019-12-01 12:59:09 -08:00
2019-10-19 06:32:32 -04:00
2019-12-01 12:59:06 -08:00
2019-06-19 17:09:08 +02:00
2019-12-01 12:59:10 -08:00
2020-02-04 03:05:25 +00:00
2019-12-01 12:59:09 -08:00
2019-06-05 17:37:06 +02:00
2020-01-31 10:30:36 -08:00
2019-12-04 11:08:30 -08:00
2019-07-12 11:05:44 -07:00
2019-11-02 12:39:12 -07:00
2020-01-20 17:04:02 -07:00
2020-02-04 03:05:25 +00:00
2019-11-06 13:03:36 +01:00
2020-01-31 10:30:38 -08:00
2020-02-21 11:22:15 -08:00
2019-09-24 15:54:08 -07:00
2020-02-04 03:05:23 +00:00
2019-12-01 12:59:04 -08:00
2020-02-04 07:21:04 +00:00
2020-01-31 10:30:36 -08:00
2019-03-05 21:07:20 -08:00
2020-03-26 14:33:37 -03:00
2017-11-02 11:10:55 +01:00
2020-03-26 14:33:38 -03:00
2020-02-04 03:05:25 +00:00
2019-09-25 17:51:41 -07:00
2019-05-21 10:50:45 +02:00
2020-02-20 10:03:14 +00:00
2020-02-04 03:05:26 +00:00
2020-01-14 11:54:47 -04:00
2017-11-02 11:10:55 +01:00
2019-12-01 12:59:09 -08:00
2020-02-20 10:03:14 +00:00
2019-09-25 17:51:41 -07:00
2019-12-01 06:29:19 -08:00
2020-01-31 10:30:38 -08:00
2020-02-04 03:05:23 +00:00
2018-06-07 17:34:36 -07:00
2019-10-14 15:04:00 -07:00
2019-06-29 16:43:45 +08:00
2020-02-03 08:05:37 -05:00
2020-01-31 10:30:39 -08:00
2019-10-19 06:32:31 -04:00
2019-09-24 15:54:08 -07:00
2020-01-31 10:30:38 -08:00
2020-01-13 18:19:02 -08:00
2020-02-04 03:05:25 +00:00
2019-03-13 12:25:31 -07:00
2019-06-05 17:37:16 +02:00
2019-06-05 17:37:16 +02:00
2019-06-05 17:37:16 +02:00
2020-01-20 16:40:56 +01:00
2019-12-01 06:29:19 -08:00
2020-01-31 10:30:38 -08:00
2020-02-04 03:05:25 +00:00
2019-05-21 10:50:45 +02:00
2019-12-01 12:59:09 -08:00
2019-06-05 17:37:17 +02:00
2020-02-07 14:48:44 -05:00
2019-10-07 15:47:19 -07:00
2019-05-14 19:52:48 -07:00
2020-02-04 03:05:26 +00:00
2020-01-13 18:19:02 -08:00
2019-12-01 12:59:06 -08:00
2019-10-07 15:47:20 -07:00
2020-01-31 10:30:36 -08:00
2019-07-18 17:08:07 -07:00
2020-02-21 11:22:15 -08:00
2017-11-02 11:10:55 +01:00
2018-08-22 10:52:44 -07:00
2019-09-24 15:54:08 -07:00
2020-01-31 10:30:37 -08:00
2020-02-21 11:22:15 -08:00
2019-10-19 06:32:33 -04:00
2019-09-17 15:20:17 -07:00
2019-12-01 12:59:10 -08:00
2019-12-01 06:29:19 -08:00
2018-09-13 15:18:04 -10:00
2020-01-20 08:05:16 +01:00
2019-10-07 15:47:19 -07:00
2020-02-21 11:22:15 -08:00
2019-12-04 19:44:11 -08:00
2019-12-01 12:59:07 -08:00
2019-12-01 12:59:07 -08:00
2019-05-21 10:50:45 +02:00
2019-09-24 15:54:12 -07:00
2020-01-04 13:55:09 -08:00
2020-01-31 10:30:39 -08:00