summaryrefslogtreecommitdiff
path: root/arch/arm64/Makefile
diff options
context:
space:
mode:
authorGeorge Spelvin <lkml@SDF.ORG>2020-03-30 17:38:01 +0000
committerWill Deacon <will@kernel.org>2020-04-28 13:55:51 +0100
commit99ee28d99607d15c6b88c4a9b9fb4a9f0ebf598c (patch)
tree7715e2cea292b716d4042c947891333a6cadbd30 /arch/arm64/Makefile
parent348a625deef13d7f8537b9704d29d05cafdd8e72 (diff)
downloadlwn-99ee28d99607d15c6b88c4a9b9fb4a9f0ebf598c.tar.gz
lwn-99ee28d99607d15c6b88c4a9b9fb4a9f0ebf598c.zip
arm64: kexec_file: Avoid temp buffer for RNG seed
After using get_random_bytes(), you want to wipe the buffer afterward so the seed remains secret. In this case, we can eliminate the temporary buffer entirely. fdt_setprop_placeholder() returns a pointer to the property value buffer, allowing us to put the random data directly in there without using a temporary buffer at all. Faster and less stack all in one. Signed-off-by: George Spelvin <lkml@sdf.org> Acked-by: Will Deacon <will@kernel.org> Cc: Hsin-Yi Wang <hsinyi@chromium.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: linux-arm-kernel@lists.infradead.org Link: https://lore.kernel.org/r/20200330173801.GA9199@SDF.ORG Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/Makefile')
0 files changed, 0 insertions, 0 deletions