Re: [PATCH v2] arm64: Add support for 4level 4K page translations table

2016-01-06 Thread Pratyush Anand
Hi Azriel, Thanks for the quick v2. On 06/01/2016:04:32:28 PM, Azriel Samson wrote: > Add PUD translation for 4 level page tables. > > Signed-off-by: Mansi Patel > Signed-off-by: Azriel Samson > Signed-off-by: Sameer Goel > --- > This change targets the arm64_support branch of Pratush Anand's

Kexec_file_load failed with "Missing required AuthAttr"

2016-01-06 Thread Dave Young
Hi, I saw the warning "Missing required AuthAttr" when testing kexec, known issue? Idea about how to fix it? The kernel is latest linus tree plus sevral patches from Toshi to cleanup io resource structure. in function pkcs7_sig_note_set_of_authattrs(): if (!test_bit(sinfo_has_content_ty

Re: [PATCH v2 2/2] kexec: Provide arch_kexec_protect(unprotect)_crashkres()

2016-01-06 Thread Xunlei Pang
On 01/07/2016 at 10:36 AM, Minfei Huang wrote: > On 01/07/16 at 10:14am, Xunlei Pang wrote: +static int +kexec_mark_range(unsigned long start, unsigned long end, bool protect) +{ + struct page *page; + unsigned int nr_pages; + + /* For physical range: [start, e

Re: [PATCH v2 2/2] kexec: Provide arch_kexec_protect(unprotect)_crashkres()

2016-01-06 Thread Minfei Huang
On 01/07/16 at 10:14am, Xunlei Pang wrote: > >> +static int > >> +kexec_mark_range(unsigned long start, unsigned long end, bool protect) > >> +{ > >> + struct page *page; > >> + unsigned int nr_pages; > >> + > >> + /* For physical range: [start, end] */ > >> + if (!start || !end || start > end)

Re: [PATCH v2 2/2] kexec: Provide arch_kexec_protect(unprotect)_crashkres()

2016-01-06 Thread Xunlei Pang
On 01/07/2016 at 10:14 AM, Xunlei Pang wrote: > On 01/07/2016 at 01:08 AM, Minfei Huang wrote: >> On 01/06/16 at 05:50pm, Xunlei Pang wrote: >>> diff --git a/arch/x86/kernel/machine_kexec_64.c >>> b/arch/x86/kernel/machine_kexec_64.c >>> index 819ab3f..cda867d 100644 >>> --- a/arch/x86/kernel/mach

Re: [PATCH v2 2/2] kexec: Provide arch_kexec_protect(unprotect)_crashkres()

2016-01-06 Thread Xunlei Pang
On 01/07/2016 at 01:08 AM, Minfei Huang wrote: > On 01/06/16 at 05:50pm, Xunlei Pang wrote: >> diff --git a/arch/x86/kernel/machine_kexec_64.c >> b/arch/x86/kernel/machine_kexec_64.c >> index 819ab3f..cda867d 100644 >> --- a/arch/x86/kernel/machine_kexec_64.c >> +++ b/arch/x86/kernel/machine_kexec

[PATCH v2] arm64: Add support for 4level 4K page translations table

2016-01-06 Thread Azriel Samson
Add PUD translation for 4 level page tables. Signed-off-by: Mansi Patel Signed-off-by: Azriel Samson Signed-off-by: Sameer Goel --- This change targets the arm64_support branch of Pratush Anand's repository at: https://github.com/pratyushanand/makedumpfile.git arch/arm64.c | 46 ++

Re: [PATCH v2 2/2] kexec: Provide arch_kexec_protect(unprotect)_crashkres()

2016-01-06 Thread Minfei Huang
On 01/06/16 at 05:50pm, Xunlei Pang wrote: > diff --git a/arch/x86/kernel/machine_kexec_64.c > b/arch/x86/kernel/machine_kexec_64.c > index 819ab3f..cda867d 100644 > --- a/arch/x86/kernel/machine_kexec_64.c > +++ b/arch/x86/kernel/machine_kexec_64.c > @@ -536,3 +536,44 @@ overflow: > return

[PATCH v2 1/2] kexec: Introduce a protection mechanism for the crashkernel reserved memory

2016-01-06 Thread Xunlei Pang
For the cases that some kernel (module) path stamps the crash reserved memory(already mapped by the kernel) where has been loaded the second kernel data, the kdump kernel will probably fail to boot when panic happens (or even not happens) leaving the culprit at large, this is unacceptable. The pat

[PATCH v2 2/2] kexec: Provide arch_kexec_protect(unprotect)_crashkres()

2016-01-06 Thread Xunlei Pang
Implement the protection method for the crash kernel memory reservation for the 64-bit x86 kdump. Signed-off-by: Xunlei Pang --- arch/x86/kernel/machine_kexec_64.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/arch/x86/kernel/machine_kexec_64.c b/ar