diff options
author | 2018-07-19 15:32:42 +0200 | |
---|---|---|
committer | 2018-11-19 10:51:05 +0100 | |
commit | 2b8d34b1ece506a9bbd47b56d266ee020a0c65ac (patch) | |
tree | ff3b76052e8c87292a99aeb42a4ea3282ae16075 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | x86/microcode/AMD: Cleanup verify_patch_size() more (diff) | |
download | wireguard-linux-2b8d34b1ece506a9bbd47b56d266ee020a0c65ac.tar.xz wireguard-linux-2b8d34b1ece506a9bbd47b56d266ee020a0c65ac.zip |
x86/microcode/AMD: Concentrate patch verification
Add a verify_patch() function which tries to sanity-check many aspects
of a microcode patch supplied by an outside container before attempting
a load.
Prepend all sub-functions' names which verify an aspect of a microcode
patch with "__".
Call it in verify_and_add_patch() *before* looking at the microcode
header.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: x86@kernel.org
Link: https://lkml.kernel.org/r/20181107170218.7596-7-bp@alien8.de
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions