summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/lapic.c
diff options
context:
space:
mode:
authorAnshuman Khandual <anshuman.khandual@arm.com>2019-07-17 01:27:30 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2019-07-17 04:23:22 +0200
commit6b95ab4218bfa59bc315105127ffe03aef3b5742 (patch)
tree5423404840a8be072840dfb1a4b109757003fb12 /arch/x86/kvm/lapic.c
parentlib: introduce test_meminit module (diff)
downloadlinux-6b95ab4218bfa59bc315105127ffe03aef3b5742.tar.xz
linux-6b95ab4218bfa59bc315105127ffe03aef3b5742.zip
mm/ioremap: check virtual address alignment while creating huge mappings
Virtual address alignment is essential in ensuring correct clearing for all intermediate level pgtable entries and freeing associated pgtable pages. An unaligned address can end up randomly freeing pgtable page that potentially still contains valid mappings. Hence also check it's alignment along with existing phys_addr check. Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Toshi Kani <toshi.kani@hpe.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Chintan Pandya <cpandya@codeaurora.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
0 files changed, 0 insertions, 0 deletions