All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] x86, kaslr: export offset in VMCOREINFO ELF notes
@ 2014-01-23 17:31 Kees Cook
  2014-01-25  7:47 ` Ingo Molnar
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Kees Cook @ 2014-01-23 17:31 UTC (permalink / raw)
  To: crash-utility
  Cc: linux-kernel, Dave Anderson, Andrew Honig, Eugene Surovegin,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, Yinghai Lu

From: Eugene Surovegin <surovegin@google.com>

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

Signed-off-by: Eugene Surovegin <surovegin@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
---
v2:
 - make sure "From:" got sent correctly
---
 arch/x86/kernel/machine_kexec_64.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c
index 4eabc160696f..679cef0791cd 100644
--- a/arch/x86/kernel/machine_kexec_64.c
+++ b/arch/x86/kernel/machine_kexec_64.c
@@ -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);
 }
 
-- 
1.7.9.5


-- 
Kees Cook
Chrome OS Security

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-02-26  1:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-23 17:31 [PATCH v2] x86, kaslr: export offset in VMCOREINFO ELF notes Kees Cook
2014-01-25  7:47 ` Ingo Molnar
2014-01-27 14:15   ` Adrian Hunter
2014-01-27 15:25     ` Ingo Molnar
2014-01-27 15:56       ` Adrian Hunter
2014-01-27 16:19         ` Peter Zijlstra
2014-01-27 16:22           ` Peter Zijlstra
2014-01-27 18:41             ` Andrew Honig
2014-01-27 19:33               ` Peter Zijlstra
2014-02-21 20:25 ` Kees Cook
2014-02-26  1:06 ` [tip:x86/urgent] " tip-bot for Eugene Surovegin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.