diff options
author | Borislav Petkov <bp@suse.de> | 2021-12-17 16:49:25 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-12-20 11:41:02 +0100 |
commit | 1acd85feba81084fcef00b73fc1601e42b77c5d8 (patch) | |
tree | f5a39a5f3974870a599097ff5650c56b28919571 /arch/x86/include/asm/mce.h | |
parent | x86/mce: Mark mce_start() noinstr (diff) | |
download | linux-1acd85feba81084fcef00b73fc1601e42b77c5d8.tar.xz linux-1acd85feba81084fcef00b73fc1601e42b77c5d8.zip |
x86/mce: Check regs before accessing it
Commit in Fixes accesses pt_regs before checking whether it is NULL or
not. Make sure the NULL pointer check happens first.
Fixes: 0a5b288e85bb ("x86/mce: Prevent severity computation from being instrumented")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20211217102029.GA29708@kili
Diffstat (limited to 'arch/x86/include/asm/mce.h')
0 files changed, 0 insertions, 0 deletions