From: Pratyush Anand <panand@redhat.com>
To: ats-kumagai@wm.jp.nec.com
Cc: Pratyush Anand <panand@redhat.com>,
keescook@chromium.org, bhe@redhat.com, dyoung@redhat.com,
kexec@lists.infradead.org, yinghai@kernel.org, mingo@kernel.org
Subject: [Makedumpfile PATCH 0/2] Fix refiltering when kaslr enabled
Date: Thu, 27 Apr 2017 11:45:14 +0530 [thread overview]
Message-ID: <cover.1493272570.git.panand@redhat.com> (raw)
Hi All,
We came across another failure in makedumpfile when kaslr is enabled. This
failure occurs when we try re-filtering. We try to erase some symbol from a
dumpfile which was copied/compressed from /proc/vmcore using makedumpfile.
We have very limited symbol information in vmcoreinfo. So symbols to be
erased may not be available in vmcoreinfo and we look for it in vmlinux.
However, symbol address from vmlinux is a static address which differs
from run time address with KASLR_OFFSET. Therefore, reading any "virtual
address of vmlinux" from vmcore is not possible.
These patches finds runtime KASLR offset and then calculates run time
address of symbols read from vmlinux.
Since, I am not an expert of x86, and these patches touch x86 part of
makedumpfile, therefore I have CCed x86 experts. Please, provide your
review comment and let me know if you think there could have been a better
way to resolve this issue.
thanks
~Pratyush
Pratyush Anand (2):
makedumpfile: add runtime kaslr offset if it exists
x86_64: calculate page_offset in case of re-filtering
arch/x86_64.c | 45 +++++++++++++++++++++++++++++++++++++++++++--
erase_info.c | 1 +
makedumpfile.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
makedumpfile.h | 15 +++++++++++++++
4 files changed, 103 insertions(+), 2 deletions(-)
--
2.9.3
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next reply other threads:[~2017-04-27 6:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-27 6:15 Pratyush Anand [this message]
2017-04-27 6:15 ` [Makedumpfile PATCH 1/2] makedumpfile: add runtime kaslr offset if it exists Pratyush Anand
2017-04-28 5:40 ` Xunlei Pang
2017-04-28 6:00 ` Pratyush Anand
2017-04-27 6:15 ` [Makedumpfile PATCH 2/2] x86_64: calculate page_offset in case of re-filtering Pratyush Anand
2017-04-28 6:26 ` [Makedumpfile PATCH 0/2] Fix refiltering when kaslr enabled Baoquan He
2017-04-28 6:52 ` Atsushi Kumagai
2017-05-09 13:22 ` Pratyush Anand
2017-05-10 8:07 ` Atsushi Kumagai
2017-05-12 2:43 ` Pratyush Anand
2017-05-16 2:05 ` Atsushi Kumagai
2017-05-22 7:56 ` Pratyush Anand
2017-05-23 3:09 ` Atsushi Kumagai
2017-05-23 3:57 ` Pratyush Anand
2017-05-24 6:11 ` Atsushi Kumagai
2017-05-24 6:28 ` Pratyush Anand
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=cover.1493272570.git.panand@redhat.com \
--to=panand@redhat.com \
--cc=ats-kumagai@wm.jp.nec.com \
--cc=bhe@redhat.com \
--cc=dyoung@redhat.com \
--cc=keescook@chromium.org \
--cc=kexec@lists.infradead.org \
--cc=mingo@kernel.org \
--cc=yinghai@kernel.org \
/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 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.