summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2021-07-28 15:32:31 +0000
committerMarc Zyngier <maz@kernel.org>2021-07-29 17:33:04 +0100
commitfacee1be7689f8cf573b9ffee6a5c28ee193615e (patch)
treefe98937e7a51d4879e8149ac85f053626ed8b545 /fs/btrfs/inode.c
parent5cf17746b302aa32a4f200cc6ce38865bfe4cf94 (diff)
KVM: arm64: Fix off-by-one in range_is_memory
Hyp checks whether an address range only covers RAM by checking the start/endpoints against a list of memblock_region structs. However, the endpoint here is exclusive but internally is treated as inclusive. Fix the off-by-one error that caused valid address ranges to be rejected. Cc: Quentin Perret <qperret@google.com> Fixes: 90134ac9cabb6 ("KVM: arm64: Protect the .hyp sections from the host") Signed-off-by: David Brazdil <dbrazdil@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20210728153232.1018911-2-dbrazdil@google.com
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions