Skip to content

Commit d9a9855

Browse files
hormstorvalds
authored andcommitted
always reserve elfcore header memory in crash kernel
elfcore header memory needs to be reserved in a crash kernel. This means that the relevant code should be protected by CONFIG_CRASH_DUMP rather than CONFIG_PROC_VMCORE. Signed-off-by: Simon Horman <horms@verge.net.au> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 85a0ee3 commit d9a9855

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎arch/ia64/kernel/efi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ kdump_find_rsvd_region (unsigned long size, struct rsvd_region *r, int n)
13351335
}
13361336
#endif
13371337

1338-
#ifdef CONFIG_PROC_VMCORE
1338+
#ifdef CONFIG_CRASH_DUMP
13391339
/* locate the size find a the descriptor at a certain address */
13401340
unsigned long __init
13411341
vmcore_find_descriptor_size (unsigned long address)

‎arch/ia64/kernel/setup.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ reserve_memory (void)
352352
}
353353
#endif
354354

355-
#ifdef CONFIG_PROC_VMCORE
355+
#ifdef CONFIG_CRASH_KERNEL
356356
if (reserve_elfcorehdr(&rsvd_region[n].start,
357357
&rsvd_region[n].end) == 0)
358358
n++;
@@ -496,9 +496,7 @@ static int __init parse_elfcorehdr(char *arg)
496496
return 0;
497497
}
498498
early_param("elfcorehdr", parse_elfcorehdr);
499-
#endif
500499

501-
#ifdef CONFIG_PROC_VMCORE
502500
int __init reserve_elfcorehdr(unsigned long *start, unsigned long *end)
503501
{
504502
unsigned long length;

0 commit comments

Comments
 (0)