diff options
author | Johan Hovold <[email protected]> | 2022-12-16 10:15:14 +0100 |
---|---|---|
committer | Jason A. Donenfeld <[email protected]> | 2022-12-20 03:13:45 +0100 |
commit | 41a15855c1ee390a0ae9d0c29d32b451dd30a600 (patch) | |
tree | d3e2b4f0e9024d7b9d385782e18bcdaedbf1069b /scripts/generate_rust_analyzer.py | |
parent | 6bb20c152b6bf7dd8ffb248f33c2593fd9aeb318 (diff) |
efi: random: fix NULL-deref when refreshing seed
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: e7b813b32a42 ("efi: random: refresh non-volatile random seed when RNG is initialized")
Reported-by: Steev Klimaszewski <[email protected]>
Reported-by: Bjorn Andersson <[email protected]>
Tested-by: Steev Klimaszewski <[email protected]>
Tested-by: Andrew Halaney <[email protected]> # sc8280xp-lenovo-thinkpad-x13s
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions