diff options
author | Lianbo Jiang <lijiang@redhat.com> | 2020-08-04 12:49:31 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-08-07 01:32:00 +0200 |
commit | a3e1c3bb24e2ff2927af5e30c2bebe669bb84196 (patch) | |
tree | 5d9c604dee52a56c20e9c55b2f21b8af349643d4 | |
parent | 4c7bfa383efd837d4ab8f86ef05886959ed8bfe5 (diff) | |
download | linux-a3e1c3bb24e2ff2927af5e30c2bebe669bb84196.tar.gz linux-a3e1c3bb24e2ff2927af5e30c2bebe669bb84196.tar.bz2 linux-a3e1c3bb24e2ff2927af5e30c2bebe669bb84196.zip |
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 <lijiang@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Dave Young <dyoung@redhat.com>
Link: https://lore.kernel.org/r/20200804044933.1973-2-lijiang@redhat.com
-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; |