From: tip-bot for Eugene Surovegin <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, surovegin@google.com,
hpa@zytor.com, mingo@kernel.org, keescook@chromium.org,
tglx@linutronix.de, hpa@linux.intel.com
Subject: [tip:x86/urgent] x86, kaslr: export offset in VMCOREINFO ELF notes
Date: Tue, 25 Feb 2014 17:06:46 -0800 [thread overview]
Message-ID: <tip-b6085a865762236bb84934161273cdac6dd11c2d@git.kernel.org> (raw)
In-Reply-To: <20140123173120.GA25474@www.outflux.net>
Commit-ID: b6085a865762236bb84934161273cdac6dd11c2d
Gitweb: http://git.kernel.org/tip/b6085a865762236bb84934161273cdac6dd11c2d
Author: Eugene Surovegin <surovegin@google.com>
AuthorDate: Thu, 23 Jan 2014 09:31:20 -0800
Committer: H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Tue, 25 Feb 2014 16:57:47 -0800
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: Eugene Surovegin <surovegin@google.com>
Link: http://lkml.kernel.org/r/20140123173120.GA25474@www.outflux.net
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
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 4eabc16..679cef0 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);
}
prev parent reply other threads:[~2014-02-26 1:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-23 17:31 [PATCH v2] " 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-bot for Eugene Surovegin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-b6085a865762236bb84934161273cdac6dd11c2d@git.kernel.org \
--to=tipbot@zytor.com \
--cc=hpa@linux.intel.com \
--cc=hpa@zytor.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=surovegin@google.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome