]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kaslr: Add a check that the random address is in range
authorArvind Sankar <nivedita@alum.mit.edu>
Tue, 28 Jul 2020 22:57:22 +0000 (18:57 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 31 Jul 2020 09:08:17 +0000 (11:08 +0200)
commitcdfdd95ab1f70d2fbcc6b1c8f9f03808ab65e667
treeb29fb9cddefee778da2e4494edf3d846e89e775a
parentb3ddcf52e8fc27563f75a426a9522626d383b0e4
x86/kaslr: Add a check that the random address is in range

Check in find_random_phys_addr() that the chosen address is inside the
range that was required.

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