Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1674577

Re: [PATCH] x86/boot/KASLR: Skip relocation handling in no kaslr case

From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] x86/boot/KASLR: Skip relocation handling in no kaslr case
Date 2017-06-26 11:50 +0200
Message-ID <tWyOC-EC-19@gated-at.bofh.it> (permalink)
References <tWyOC-EC-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Baoquan He <bhe@redhat.com> wrote:

> Kdump kernel will reset to firmware after crash is trigered when
> crashkernel=xxM,high is added to kernel command line. Kexec has the
> same phenomenon. This only happened on system with kaslr code
> compiled in and kernel option 'nokaslr'is added. Both of them works
> well when kaslr is enabled.
> 
> When crashkernel high is set or kexec case, kexec/kdump kernel will be
> put above 4G. Since we assign the original loading address of kernel to
> virt_addr as initial value, the virt_addr will be larger than 1G if kaslr
> is disabled, it exceeds the kernel mapping size which is only 1G. Then
> it will cause relocation handling error in handle_relocations().

So instead of whacking yet another kexec mole, how could we turn this into a more 
debuggable warning (either during build or during the failed bootup) instead of a 
crash and reset (triple fault?) back to the BIOS screen?

If kexec/kdump wants to do crazy things they should at least be _debuggable_ in a 
straightforward manner.

Thanks,

	Ingo

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH] x86/boot/KASLR: Skip relocation handling in no kaslr case Ingo Molnar <mingo@kernel.org> - 2017-06-26 11:50 +0200
  Re: [PATCH] x86/boot/KASLR: Skip relocation handling in no kaslr case Baoquan He <bhe@redhat.com> - 2017-06-26 12:50 +0200
    Re: [PATCH] x86/boot/KASLR: Skip relocation handling in no kaslr case Ingo Molnar <mingo@kernel.org> - 2017-06-27 10:40 +0200
      Re: [PATCH] x86/boot/KASLR: Skip relocation handling in no kaslr case Baoquan He <bhe@redhat.com> - 2017-06-27 11:00 +0200

csiph-web