x86/ioperm: Fix io bitmap invalidation on Xen PV
authorAndy Lutomirski <luto@kernel.org>
Fri, 17 Jul 2020 23:53:55 +0000 (16:53 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 18 Jul 2020 10:31:49 +0000 (12:31 +0200)
commitcadfad870154e14f745ec845708bc17d166065f2
tree879e0402ec50885291708e574e56830130f424fb
parent81e96851ea32deb2c921c870eecabf335f598aeb
x86/ioperm: Fix io bitmap invalidation on Xen PV

tss_invalidate_io_bitmap() wasn't wired up properly through the pvop
machinery, so the TSS and Xen's io bitmap would get out of sync
whenever disabling a valid io bitmap.

Add a new pvop for tss_invalidate_io_bitmap() to fix it.

This is XSA-329.

Fixes: 22fe5b0439dd ("x86/ioperm: Move TSS bitmap update to exit to user work")
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/d53075590e1f91c19f8af705059d3ff99424c020.1595030016.git.luto@kernel.org
arch/x86/include/asm/io_bitmap.h
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt_types.h
arch/x86/kernel/paravirt.c
arch/x86/kernel/process.c
arch/x86/xen/enlighten_pv.c