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: 22fe5b04 ("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
Showing
- arch/x86/include/asm/io_bitmap.h 16 additions, 0 deletionsarch/x86/include/asm/io_bitmap.h
- arch/x86/include/asm/paravirt.h 5 additions, 0 deletionsarch/x86/include/asm/paravirt.h
- arch/x86/include/asm/paravirt_types.h 1 addition, 0 deletionsarch/x86/include/asm/paravirt_types.h
- arch/x86/kernel/paravirt.c 2 additions, 1 deletionarch/x86/kernel/paravirt.c
- arch/x86/kernel/process.c 2 additions, 16 deletionsarch/x86/kernel/process.c
- arch/x86/xen/enlighten_pv.c 12 additions, 0 deletionsarch/x86/xen/enlighten_pv.c
Loading
Please register or sign in to comment