[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200728225722.67457-1-nivedita@alum.mit.edu>
Date: Tue, 28 Jul 2020 18:57:01 -0400
From: Arvind Sankar <nivedita@...m.mit.edu>
To: Kees Cook <keescook@...omium.org>, x86@...nel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH v3 00/21] x86/kaslr: Cleanup and small bugfixes
v2->v3:
- Fix the first patch: command line size should be strlen + 1 to account
for terminating NUL. Avoid calling add_identity_map if cmdline was
NULL, though it should do nothing in that case anyway.
- Add a patch to drop the check to see if there are arguments we care
about before parsing the command line.
- Split up patches (Ingo/Kees).
- The gb_huge_pages change now also gets rid of parsing the argument
altogether for 32-bit.
- Slot number is changed to unsigned long instead of unsigned int
(Kees).
- Make everything u64 instead of trying to use 32-bit on x86-32, and add
check in find_random_phys_addr to make sure the address is within the
required range (Ingo/Kees).
v1->v2:
- Fix a bug in the bugfix 5/8: overlap.start can be smaller than
region.start, so shouldn't subtract before comparing.
Arvind Sankar (21):
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 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
arch/x86/boot/compressed/kaslr.c | 233 +++++++++++++------------------
arch/x86/boot/compressed/misc.h | 4 +-
2 files changed, 102 insertions(+), 135 deletions(-)
--
2.26.2
Powered by blists - more mailing lists