James Morse
e8688ba387
arm64: KVM: Device mappings should be execute-never
...
Since commit 2f6ea23f63 ("arm64: KVM: Avoid marking pages as XN in
Stage-2 if CTR_EL0.DIC is set"), KVM has stopped marking normal memory
as execute-never at stage2 when the system supports D->I Coherency at
the PoU. This avoids KVM taking a trap when the page is first executed,
in order to clean it to PoU.
The patch that added this change also wrapped PAGE_S2_DEVICE mappings
up in this too. The upshot is, if your CPU caches support DIC ...
you can execute devices.
Revert the PAGE_S2_DEVICE change so PTE_S2_XN is always used
directly.
Fixes: 2f6ea23f63 ("arm64: KVM: Avoid marking pages as XN in Stage-2 if CTR_EL0.DIC is set")
Signed-off-by: James Morse <james.morse@arm.com >
Signed-off-by: Marc Zyngier <maz@kernel.org >
2019-08-27 18:16:02 +01:00
..
2019-07-31 00:09:10 +02:00
2019-01-23 22:14:56 +01:00
2019-06-19 17:09:55 +02:00
2019-07-08 09:54:55 -07:00
2019-02-06 10:05:20 +00:00
2019-08-01 14:59:48 +01:00
2019-07-03 10:50:21 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-01-10 11:11:46 +00:00
2019-02-26 16:57:59 +00:00
2019-07-05 13:03:29 +01:00
2019-07-08 16:12:03 -07:00
2019-07-08 16:12:03 -07:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2017-11-02 11:10:55 +01:00
2019-05-14 19:52:52 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:07 +02:00
2019-07-08 09:54:55 -07:00
2019-07-08 09:54:55 -07:00
2019-06-19 17:09:07 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-07-31 18:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:07 +02:00
2017-11-02 11:10:55 +01:00
2019-08-02 11:55:50 +01:00
2019-06-05 17:36:37 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-07-31 18:13:46 +01:00
2019-07-22 10:33:42 +01:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:07 +02:00
2019-02-11 11:07:49 +01:00
2019-07-08 09:54:55 -07:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-05-30 11:26:41 -07:00
2019-06-19 17:09:07 +02:00
2019-07-08 09:54:55 -07:00
2017-11-02 11:10:55 +01:00
2019-06-14 14:20:27 -06:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2017-11-02 11:10:55 +01:00
2018-08-03 12:14:09 +02:00
2019-07-08 09:54:55 -07:00
2019-06-19 17:09:07 +02:00
2018-12-28 12:11:43 -08:00
2019-05-30 11:32:33 -07:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:07 +02:00
2019-05-30 11:26:41 -07:00
2019-07-26 15:40:38 +01:00
2019-07-05 13:03:29 +01:00
2019-06-19 17:09:07 +02:00
2019-07-05 13:57:25 +01:00
2019-07-12 15:35:14 -07:00
2019-07-05 13:57:25 +01:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-04-24 15:30:40 +01:00
2019-02-07 23:10:45 +01:00
2017-09-18 11:20:19 +01:00
2018-03-27 13:14:49 +01:00
2019-08-01 15:53:10 +01:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2018-07-06 13:18:18 +01:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2018-09-03 16:50:35 +02:00
2018-05-07 07:15:41 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-07-12 11:05:45 -07:00
2019-07-08 09:54:55 -07:00
2019-08-27 18:16:02 +01:00
2019-06-19 17:09:07 +02:00
2019-08-08 18:38:20 +01:00
2019-04-16 16:28:01 +01:00
2018-12-07 12:35:53 +00:00
2019-05-30 11:26:41 -07:00
2019-06-19 17:09:07 +02:00
2019-07-22 15:24:16 +01:00
2019-06-19 17:09:07 +02:00
2019-08-01 14:59:48 +01:00
2019-04-16 16:28:01 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-22 21:21:07 +02:00
2019-07-08 09:54:55 -07:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2017-11-02 11:10:55 +01:00
2018-12-12 18:45:31 +00:00
2019-07-22 11:44:15 +01:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2017-11-02 11:10:55 +01:00
2018-11-01 11:01:40 +01:00
2019-05-29 13:45:59 +01:00
2019-06-19 17:09:07 +02:00
2019-07-16 19:23:22 -07:00
2019-06-19 17:09:07 +02:00
2019-07-08 09:54:55 -07:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2018-09-10 11:05:47 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-07-11 10:09:44 -07:00
2019-07-11 10:09:44 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:07 +02:00
2019-06-22 21:21:09 +02:00
2019-06-19 17:09:07 +02:00
2019-04-16 16:28:01 +01:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:55 +02:00