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)
commitf49236ae424d499d02ee3ce35fb9130ddf95b03f
treeb29fb9cddefee778da2e4494edf3d846e89e775a
parent0eb1a8af01d6264cf948d67c8bff15e2eb859355
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