Joerg Roedel
46ac18c347
iommu/amd: Check PM_LEVEL_SIZE() condition in locked section
...
The increase_address_space() function has to check the PM_LEVEL_SIZE()
condition again under the domain->lock to avoid a false trigger of the
WARN_ON_ONCE() and to avoid that the address space is increase more
often than necessary.
Reported-by: Qian Cai <cai@lca.pw>
Fixes: 754265bcab78 ("iommu/amd: Fix race in increase_address_space()")
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2019-10-18 16:52:37 +02:00
..
2019-08-23 10:26:48 +02:00
2019-06-05 17:37:06 +02:00
2019-08-23 10:26:48 +02:00
2019-10-15 14:13:31 +02:00
2019-06-05 17:37:06 +02:00
2019-10-18 16:52:37 +02:00
2019-08-23 10:26:48 +02:00
2019-08-20 10:58:03 +01:00
2019-09-17 18:40:42 -07:00
2019-10-01 12:13:16 +01:00
2019-08-23 15:05:45 +01:00
2019-09-19 13:27:23 -07:00
2019-09-11 12:36:53 +02:00
2019-09-11 12:39:19 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-02-28 11:12:16 +01:00
2019-08-30 15:47:37 +02:00
2019-08-09 17:29:25 +02:00
2019-09-19 13:27:23 -07:00
2019-07-04 17:26:48 +02:00
2019-05-27 16:16:09 +02:00
2019-09-03 15:01:27 +02:00
2019-09-11 12:34:30 +02:00
2019-08-30 16:12:10 +02:00
2019-10-01 12:16:47 +01:00
2019-06-19 17:09:07 +02:00
2019-02-26 11:15:58 +01:00
2019-06-19 17:09:55 +02:00
2019-09-03 15:15:44 +02:00
2019-08-30 15:21:53 +02:00
2019-10-15 13:00:43 +02:00
2019-05-21 10:50:45 +02:00
2019-06-05 17:37:06 +02:00
2019-09-16 15:32:01 -07:00
2019-09-11 12:39:19 +02:00
2019-06-05 17:30:29 +02:00
2019-08-20 11:09:43 +02:00
2019-06-05 17:30:29 +02:00
2019-09-19 13:48:37 -07:00
2019-08-30 16:12:10 +02:00
2019-08-30 15:57:27 +02:00
2019-06-05 17:37:06 +02:00
2019-07-04 17:26:48 +02:00
2019-09-11 12:39:19 +02:00
2019-08-09 17:37:10 +02:00
2019-06-19 17:09:55 +02:00
2019-09-11 12:39:19 +02:00
2019-10-15 12:45:16 +02:00
2019-07-29 17:22:52 +01:00
2019-07-29 17:22:52 +01:00
2019-07-29 17:22:52 +01:00
2019-08-23 17:41:59 +02:00