-
- Downloads
kexec: move vmcoreinfo out of the kernel's .bss section
As Eric said, "what we need to do is move the variable vmcoreinfo_note out of the kernel's .bss section. And modify the code to regenerate and keep this information in something like the control page. Definitely something like this needs a page all to itself, and ideally far away from any other kernel data structures. I clearly was not watching closely the data someone decided to keep this silly thing in the kernel's .bss section." This patch allocates extra pages for these vmcoreinfo_XXX variables, one advantage is that it enhances some safety of vmcoreinfo, because vmcoreinfo now is kept far away from other kernel data structures. Link: http://lkml.kernel.org/r/1493281021-20737-1-git-send-email-xlpang@redhat.com Signed-off-by:Xunlei Pang <xlpang@redhat.com> Tested-by:
Michael Holzheu <holzheu@linux.vnet.ibm.com> Reviewed-by:
Juergen Gross <jgross@suse.com> Suggested-by:
Eric Biederman <ebiederm@xmission.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Dave Young <dyoung@redhat.com> Cc: Hari Bathini <hbathini@linux.vnet.ibm.com> Cc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/ia64/kernel/machine_kexec.c 0 additions, 5 deletionsarch/ia64/kernel/machine_kexec.c
- arch/s390/kernel/machine_kexec.c 1 addition, 0 deletionsarch/s390/kernel/machine_kexec.c
- arch/s390/kernel/setup.c 0 additions, 6 deletionsarch/s390/kernel/setup.c
- arch/x86/kernel/crash.c 1 addition, 1 deletionarch/x86/kernel/crash.c
- arch/x86/xen/mmu_pv.c 2 additions, 2 deletionsarch/x86/xen/mmu_pv.c
- include/linux/crash_core.h 2 additions, 2 deletionsinclude/linux/crash_core.h
- kernel/crash_core.c 22 additions, 4 deletionskernel/crash_core.c
- kernel/ksysfs.c 1 addition, 1 deletionkernel/ksysfs.c
Loading
Please register or sign in to comment