diff options
author | Laura Abbott <labbott@redhat.com> | 2016-09-22 00:25:04 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-09-22 11:17:22 +0200 |
commit | ca219452c6b8a6cd1369b6a78b1cf069d0386865 (patch) | |
tree | b2b7de70e9429cf33bbe50698dbbdfa25362fe2e /Documentation/arm64 | |
parent | arm64: migrate exception table users off module.h and onto extable.h (diff) | |
download | linux-ca219452c6b8a6cd1369b6a78b1cf069d0386865.tar.xz linux-ca219452c6b8a6cd1369b6a78b1cf069d0386865.zip |
arm64: Correctly bounds check virt_addr_valid
virt_addr_valid is supposed to return true if and only if virt_to_page
returns a valid page structure. The current macro does math on whatever
address is given and passes that to pfn_valid to verify. vmalloc and
module addresses can happen to generate a pfn that 'happens' to be
valid. Fix this by only performing the pfn_valid check on addresses that
have the potential to be valid.
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'Documentation/arm64')
0 files changed, 0 insertions, 0 deletions