diff options
author | Lianbo Jiang <[email protected]> | 2020-08-04 12:49:31 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2020-08-07 01:32:00 +0200 |
commit | a3e1c3bb24e2ff2927af5e30c2bebe669bb84196 (patch) | |
tree | 5d9c604dee52a56c20e9c55b2f21b8af349643d4 | |
parent | 4c7bfa383efd837d4ab8f86ef05886959ed8bfe5 (diff) |
x86/crash: Correct the address boundary of function parameters
Let's carefully handle the boundary of the function parameter to make
sure that the arguments passed doesn't exceed the address range.
Signed-off-by: Lianbo Jiang <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Acked-by: Dave Young <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | arch/x86/kernel/crash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c index fd87b59452a3..a8f3af257e26 100644 --- a/arch/x86/kernel/crash.c +++ b/arch/x86/kernel/crash.c @@ -230,7 +230,7 @@ static int elf_header_exclude_ranges(struct crash_mem *cmem) int ret = 0; /* Exclude the low 1M because it is always reserved */ - ret = crash_exclude_mem_range(cmem, 0, 1<<20); + ret = crash_exclude_mem_range(cmem, 0, (1<<20)-1); if (ret) return ret; |