aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2022-05-15 13:39:34 +0200
committerBorislav Petkov <[email protected]>2022-05-17 09:25:25 +0200
commita7fed5c0431dbfa707037848830f980e0f93cfb3 (patch)
treef915d1b77fa76c9d4ef18b0c3f7a0164665e97dc /lib/mpi/mpi-sub-ui.c
parent203d8919a9eda5d1bc68ac3cd7637588334c9dc1 (diff)
x86/nmi: Make register_nmi_handler() more robust
register_nmi_handler() has no sanity check whether a handler has been registered already. Such an unintended double-add leads to list corruption and hard to diagnose problems during the next NMI handling. Init the list head in the static NMI action struct and check it for being empty in register_nmi_handler(). [ bp: Fixups. ] Reported-by: Sean Christopherson <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions