[GIT PULL] x86/kaslr changes for v5.10

From: Ingo Molnar
Date: Mon Oct 12 2020 - 13:12:04 EST


Linus,

Please pull the latest x86/kaslr git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-kaslr-2020-10-12

# HEAD: 76167e5c5457aee8fba3edc5b8554183696fc94d x86/kaslr: Replace strlen() with strnlen()

This tree cleans up and simplifies the x86 KASLR code, and
also fixes some corner case bugs.

Thanks,

Ingo

------------------>
Arvind Sankar (22):
x86/kaslr: Make command line handling safer
x86/kaslr: Remove bogus warning and unnecessary goto
x86/kaslr: Fix process_efi_entries comment
x86/kaslr: Initialize mem_limit to the real maximum address
x86/kaslr: Fix off-by-one error in __process_mem_region()
x86/kaslr: Drop redundant cur_entry from __process_mem_region()
x86/kaslr: Eliminate 'start_orig' local variable from __process_mem_region()
x86/kaslr: Drop redundant variable in __process_mem_region()
x86/kaslr: Drop some redundant checks from __process_mem_region()
x86/kaslr: Fix off-by-one error in process_gb_huge_pages()
x86/kaslr: Short-circuit gb_huge_pages on x86-32
x86/kaslr: Simplify process_gb_huge_pages()
x86/kaslr: Drop test for command-line parameters before parsing
x86/kaslr: Make the type of number of slots/slot areas consistent
x86/kaslr: Drop redundant check in store_slot_info()
x86/kaslr: Drop unnecessary alignment in find_random_virt_addr()
x86/kaslr: Small cleanup of find_random_phys_addr()
x86/kaslr: Make minimum/image_size 'unsigned long'
x86/kaslr: Replace 'unsigned long long' with 'u64'
x86/kaslr: Make local variables 64-bit
x86/kaslr: Add a check that the random address is in range
x86/kaslr: Replace strlen() with strnlen()


arch/x86/boot/compressed/kaslr.c | 238 +++++++++++++++++----------------------
arch/x86/boot/compressed/misc.h | 4 +-
2 files changed, 107 insertions(+), 135 deletions(-)