aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorNikita Zhandarovich <[email protected]>2023-03-06 08:06:56 -0800
committerBorislav Petkov (AMD) <[email protected]>2023-03-16 12:22:25 +0100
commitcbebd68f59f03633469f3ecf9bea99cd6cce3854 (patch)
tree6529f1fae07f4989614f7db143bc379580b0f579 /tools/perf/scripts/python/bin/export-to-postgresql-report
parent0424a7dfe9129b93f29b277511a60e87f052ac6b (diff)
x86/mm: Fix use of uninitialized buffer in sme_enable()
cmdline_find_option() may fail before doing any initialization of the buffer array. This may lead to unpredictable results when the same buffer is used later in calls to strncmp() function. Fix the issue by returning early if cmdline_find_option() returns an error. Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE. Fixes: aca20d546214 ("x86/mm: Add support to make use of Secure Memory Encryption") Signed-off-by: Nikita Zhandarovich <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Acked-by: Tom Lendacky <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions