diff options
author | Maciej S. Szmigiero <[email protected]> | 2018-09-13 12:01:52 +0200 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2018-11-19 10:55:12 +0100 |
commit | 413c89154c6759cbd5e17febd04c187470613173 (patch) | |
tree | 8b15a4dddb1fad3daf22f9324b74cb0dccbeeb57 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 39cd7c17f9bc3fe3737dacd4225eeabe56df197c (diff) |
x86/microcode/AMD: Check the equivalence table size when scanning it
Currently, the code scanning the CPU equivalence table read from a
microcode container file assumes that it actually contains a terminating
zero entry.
Check also the size of this table to make sure that no reads past its
end happen, in case there's no terminating zero entry at the end of the
table.
[ bp: Adjust to new changes. ]
Signed-off-by: Maciej S. Szmigiero <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions