Commit b6085a86 authored by Eugene Surovegin's avatar Eugene Surovegin Committed by H. Peter Anvin
Browse files

x86, kaslr: export offset in VMCOREINFO ELF notes



Include kASLR offset in VMCOREINFO ELF notes to assist in debugging.

[ hpa: pushing this for v3.14 to avoid having a kernel version with
  kASLR where we can't debug output. ]
Signed-off-by: default avatarEugene Surovegin <surovegin@google.com>
Link: http://lkml.kernel.org/r/20140123173120.GA25474@www.outflux.net

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent cfbf8d48
......@@ -279,5 +279,7 @@ void arch_crash_save_vmcoreinfo(void)
VMCOREINFO_SYMBOL(node_data);
VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
#endif
vmcoreinfo_append_str("KERNELOFFSET=%lx\n",
(unsigned long)&_text - __START_KERNEL);
}
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