x86/speculation/mds: Eliminate leaks by trace_hardirqs_on()
authorZhenzhong Duan <zhenzhong.duan@oracle.com>
Sun, 23 Jun 2019 03:35:04 +0000 (11:35 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 26 Jun 2019 13:01:50 +0000 (15:01 +0200)
commitab3765a050f7bea942f114d07278e1775e38199b
tree3bfe2cbae0cfa73b09643f245fdd4180bcd667dc
parent4b972a01a7da614b4796475f933094751a295a2f
x86/speculation/mds: Eliminate leaks by trace_hardirqs_on()

Move mds_idle_clear_cpu_buffers() after trace_hardirqs_on() to ensure
all store buffer entries are flushed.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: bp@alien8.de
Cc: hpa@zytor.com
Cc: jgross@suse.com
Cc: ndesaulniers@google.com
Cc: gregkh@linuxfoundation.org
Link: https://lkml.kernel.org/r/1561260904-29669-2-git-send-email-zhenzhong.duan@oracle.com
arch/x86/include/asm/mwait.h