Re: [x86/iopl PATCH] x86/ioperm: Fix use of deprecated config option

From: Thomas Gleixner
Date: Wed Nov 20 2019 - 17:34:15 EST


On Wed, 20 Nov 2019, Alexander Duyck wrote:
> From: Alexander Duyck <alexander.h.duyck@xxxxxxxxxxxxxxx>
>
> Fixes: 111e7b15cf10 ("x86/ioperm: Extend IOPL config to control ioperm() as well")
> Signed-off-by: Alexander Duyck <alexander.h.duyck@xxxxxxxxxxxxxxx>

Duh, yes.

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

> ---
> arch/x86/kernel/process.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
> index 7964d7db9366..bd2a11ca5dd6 100644
> --- a/arch/x86/kernel/process.c
> +++ b/arch/x86/kernel/process.c
> @@ -382,8 +382,7 @@ void tss_update_io_bitmap(void)
> if (test_thread_flag(TIF_IO_BITMAP)) {
> struct thread_struct *t = &current->thread;
>
> - if (IS_ENABLED(CONFIG_X86_IOPL_EMULATION) &&
> - t->iopl_emul == 3) {
> + if (IS_ENABLED(CONFIG_X86_IOPL_IOPERM) && t->iopl_emul == 3) {
> *base = IO_BITMAP_OFFSET_VALID_ALL;
> } else {
> struct io_bitmap *iobm = t->io_bitmap;
>
>