x86/xen: fix upper bound of pmd loop in xen_cleanhighmap()
authorJuergen Gross <jgross@suse.com>
Thu, 23 Jun 2016 05:12:27 +0000 (07:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 22:32:50 +0000 (23:32 +0100)
commit506750b71b422b278be54a4645414affc7bf19d5
tree0915d2ceedc3945aefcf87da8a55068a9054c172
parentf014225af8ed6adf75035e9dd76d82874854bf0f
x86/xen: fix upper bound of pmd loop in xen_cleanhighmap()

commit 1cf38741308c64d08553602b3374fb39224eeb5a upstream.

xen_cleanhighmap() is operating on level2_kernel_pgt only. The upper
bound of the loop setting non-kernel-image entries to zero should not
exceed the size of level2_kernel_pgt.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/x86/xen/mmu.c