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

In case of an overlap, the beginning of the region should be used even
if it is exactly image_size, not just strictly larger.

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-6-nivedita@alum.mit.edu
arch/x86/boot/compressed/kaslr.c