Commit a3e1c3bb authored by Lianbo Jiang's avatar Lianbo Jiang Committed by Ingo Molnar

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: default avatarLianbo Jiang <lijiang@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Acked-by: default avatarDave Young <dyoung@redhat.com>
Link: https://lore.kernel.org/r/20200804044933.1973-2-lijiang@redhat.com
parent 4c7bfa38
...@@ -230,7 +230,7 @@ static int elf_header_exclude_ranges(struct crash_mem *cmem) ...@@ -230,7 +230,7 @@ static int elf_header_exclude_ranges(struct crash_mem *cmem)
int ret = 0; int ret = 0;
/* Exclude the low 1M because it is always reserved */ /* 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) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment