Re: [PATCH] MIPS: KASLR: Fix handling of NULL FDT

2016-10-17 Thread Sergei Shtylyov
Hello. On 10/17/2016 01:04 PM, Matt Redfearn wrote: If platform code returns a NULL pointer to the FDT, initial_boot_params will not get set to a valid pointer and attempting to find the /chosen node in it will cause a NULL pointer dereference and the kernel to crash immediately on startup - wi

Re: [PATCH] MIPS: KASLR: Fix handling of NULL FDT

2016-10-17 Thread James Hogan
Hi Matt, On Mon, Oct 17, 2016 at 11:04:54AM +0100, Matt Redfearn wrote: > If platform code returns a NULL pointer to the FDT, initial_boot_params > will not get set to a valid pointer and attempting to find the /chosen > node in it will cause a NULL pointer dereference and the kernel to crash > im

[PATCH] MIPS: KASLR: Fix handling of NULL FDT

2016-10-17 Thread Matt Redfearn
If platform code returns a NULL pointer to the FDT, initial_boot_params will not get set to a valid pointer and attempting to find the /chosen node in it will cause a NULL pointer dereference and the kernel to crash immediately on startup - with no output to the console. Fix this by checking that