aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-02-21 09:48:49 +0100
committerIngo Molnar <mingo@kernel.org>2020-02-26 15:31:43 +0100
commitbe36f9e7517e17810ec369626a128d7948942259 (patch)
tree6e406504b5c2be8fd04d103a9a601ec0fa1da316 /include
parent8319e9d5ad98ffccd19f35664382c73cea216193 (diff)
efi: READ_ONCE rng seed size before munmap
This function is consistent with using size instead of seed->size (except for one place that this patch fixes), but it reads seed->size without using READ_ONCE, which means the compiler might still do something unwanted. So, this commit simply adds the READ_ONCE wrapper. Fixes: 636259880a7e ("efi: Add support for seeding the RNG from a UEFI ...") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: linux-efi@vger.kernel.org Cc: Ingo Molnar <mingo@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20200217123354.21140-1-Jason@zx2c4.com Link: https://lore.kernel.org/r/20200221084849.26878-5-ardb@kernel.org
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions