From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:44192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbeLDNjl (ORCPT ); Tue, 4 Dec 2018 08:39:41 -0500 Date: Tue, 4 Dec 2018 14:39:38 +0100 From: Greg Kroah-Hartman To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Andy Lutomirski , Linus Torvalds , Jiri Kosina , Tom Lendacky , Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , Tim Chen , Andi Kleen , Dave Hansen , Casey Schaufler , Asit Mallick , Arjan van de Ven , Jon Masters , Waiman Long , Dave Stewart , Kees Cook Subject: Re: [PATCH 4.14 098/146] x86/process: Consolidate and simplify switch_to_xtra() code Message-ID: <20181204133938.GA4749@kroah.com> References: <20181204103726.750894136@linuxfoundation.org> <20181204103730.767674414@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Tue, Dec 04, 2018 at 12:14:13PM +0100, Thomas Gleixner wrote: > On Tue, 4 Dec 2018, Greg Kroah-Hartman wrote: > > --- a/arch/x86/kernel/process_32.c > > +++ b/arch/x86/kernel/process_32.c > > @@ -234,7 +234,6 @@ __switch_to(struct task_struct *prev_p, > > struct fpu *prev_fpu = &prev->fpu; > > struct fpu *next_fpu = &next->fpu; > > int cpu = smp_processor_id(); > > - struct tss_struct *tss = &per_cpu(cpu_tss_rw, cpu); > > > > /* never put a printk in __switch_to... printk() calls wake_up*() indirectly */ > > > > @@ -266,12 +265,7 @@ __switch_to(struct task_struct *prev_p, > > if (get_kernel_rpl() && unlikely(prev->iopl != next->iopl)) > > set_iopl_mask(next->iopl); > > > > - /* > > - * Now maybe handle debug registers and/or IO bitmaps > > - */ > > - if (unlikely(task_thread_info(prev_p)->flags & _TIF_WORK_CTXSW_PREV || > > - task_thread_info(next_p)->flags & _TIF_WORK_CTXSW_NEXT)) > > - __switch_to_xtra(prev_p, next_p, tss); > > + switch_to_extra(prev_p, next_p); > > This is missing the hunk below. > > Thanks, > > tglx > > 8<------------------ > > diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c > index 67cecc9a2b6f..c2df91eab573 100644 > --- a/arch/x86/kernel/process_32.c > +++ b/arch/x86/kernel/process_32.c > @@ -59,6 +59,8 @@ > #include > #include > > +#include "process.h" > + > void __show_regs(struct pt_regs *regs, int all) > { > unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L; Thanks, now updated. greg k-h