diff options
author | Robin Murphy <robin.murphy@arm.com> | 2018-02-05 18:34:19 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2018-02-07 01:53:34 +0300 |
commit | 4d8efc2d5ee4c9ccfeb29ee8afd47a8660d0c0ce (patch) | |
tree | 74800afc7ba67d3e7ec3935b218d0c81c5459249 /mm/Kconfig.debug | |
parent | 51369e398d0d33e8f524314e672b07e8cf870e79 (diff) | |
download | linux-4d8efc2d5ee4c9ccfeb29ee8afd47a8660d0c0ce.tar.xz |
arm64: Use pointer masking to limit uaccess speculation
Similarly to x86, mitigate speculation past an access_ok() check by
masking the pointer against the address limit before use.
Even if we don't expect speculative writes per se, it is plausible that
a CPU may still speculate at least as far as fetching a cache line for
writing, hence we also harden put_user() and clear_user() for peace of
mind.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'mm/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions