]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kaslr: Fix off-by-one error in process_gb_huge_pages()
authorArvind Sankar <nivedita@alum.mit.edu>
Tue, 28 Jul 2020 22:57:11 +0000 (18:57 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 31 Jul 2020 09:08:17 +0000 (11:08 +0200)
commit1925eb7df0fb075e9b4c67abbdb2f01ca8b18c25
tree131e70a443ebe7f9df748890e9675ea0d46d3837
parent7b03a1fc269bc6a4415eef8408921864646b3067
x86/kaslr: Fix off-by-one error in process_gb_huge_pages()

If the remaining size of the region is exactly 1Gb, there is still one
hugepage that can be reserved.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200728225722.67457-11-nivedita@alum.mit.edu
arch/x86/boot/compressed/kaslr.c