[PATCH] arm64: If 'getrandom' syscall fails, don't error out - just warn and proceed.

Dave Young dyoung at redhat.com
Wed Oct 24 22:29:43 PDT 2018


Hi Bhupesh,

On 10/24/18 at 02:01pm, Bhupesh Sharma wrote:
[snip]
> Now, passing "nokaslr" explicitly in bootargs (whether of a primary or
> secondary kernel itself), is a different case altogether from the
> above error. If the primary kernel is boot'ed with "nokaslr" the
> 'kexec-tools' will not prepare the 'kaslr-seed' property for the
> secondary kernel. Also if "nokaslr" is being passed in secondary
> kernel's booatrags, the above error will be printed only if
> getrandom() syscall failed in NON_BLOCK mode.

I understand your point about kexec-tools and 2nd kernel are different
cases, but from user point of view, these two cases are combined.
If one does not want kaslr then kexec-tools can just skip getting the
seeds at all. 

Thanks
Dave



More information about the kexec mailing list