aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>2018-06-19 20:47:32 +0200
committerBorislav Petkov <bp@suse.de>2018-11-19 10:45:03 +0100
commitf4ff25916c1186912e1b53c25861c8abc9f15687 (patch)
tree3aac0b18308d92374f691dc3f9f94e17d7c9c42b /tools/perf/scripts/python/export-to-sqlite.py
parentx86/microcode/AMD: Subtract SECTION_HDR_SIZE from file leftover length (diff)
downloadwireguard-linux-f4ff25916c1186912e1b53c25861c8abc9f15687.tar.xz
wireguard-linux-f4ff25916c1186912e1b53c25861c8abc9f15687.zip
x86/microcode/AMD: Add microcode container verification
Add container and patch verification functions to the AMD microcode update driver. These functions check whether a passed buffer contains the relevant structure, whether it isn't truncated and (for actual microcode patches) whether the size of a patch is not too large for a particular CPU family. By adding these checks as separate functions the actual microcode loading code won't get interspersed with a lot of checks and so will be more readable. [ bp: Make all pr_err() calls into pr_debug() and drop the verify_patch() bits. ] Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: x86-ml <x86@kernel.org> Link: http://lkml.kernel.org/r/3014e96c82cd90761b4601bd2cfe59c4119e46a7.1529424596.git.mail@maciej.szmigiero.name
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions