-
由 Johan Hovold 提交于
Do not try to refresh the RNG seed in case the firmware does not support setting variables. This is specifically needed to prevent a NULL-pointer dereference on the Lenovo X13s with some firmware revisions, or more generally, whenever the runtime services have been disabled (e.g. efi=noruntime or with PREEMPT_RT). Fixes: e7b813b3 ("efi: random: refresh non-volatile random seed when RNG is initialized") Reported-by: NSteev Klimaszewski <steev@kali.org> Reported-by: NBjorn Andersson <andersson@kernel.org> Tested-by: NSteev Klimaszewski <steev@kali.org> Tested-by: Andrew Halaney <ahalaney@redhat.com> # sc8280xp-lenovo-thinkpad-x13s Signed-off-by: NJohan Hovold <johan+linaro@kernel.org> Signed-off-by: NJason A. Donenfeld <Jason@zx2c4.com>
41a15855