From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH v2] x86: Load __USER_DS into DS/ES after resume Date: Tue, 16 Jun 2015 11:13:33 +0200 Message-ID: <20150616091333.GA6448@amd> References: <20150612075013.GA8759@gmail.com> <20150612083625.GA22760@gmail.com> <20150613070359.GB26502@gmail.com> <20150614065635.GA5294@gmail.com> <20150614074922.GA30290@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:49359 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933075AbbFPJNg (ORCPT ); Tue, 16 Jun 2015 05:13:36 -0400 Content-Disposition: inline In-Reply-To: <20150614074922.GA30290@gmail.com> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Ingo Molnar Cc: Linus Torvalds , Denys Vlasenko , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Srinivas Pandruvada , the arch/x86 maintainers , linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Andy Lutomirski , Brian Gerst , Peter Anvin > > That second KERNEL should be USER. > > Yeah, doh :-/ Updated patch below. > > Thanks, > > Ingo Acked-by: Pavel Machek Tested-by: Pavel Machek [of course, it worked for me before, so I only tested it also works with the patch.] Rafael, can you apply it? Pavel > diff --git a/arch/x86/kernel/acpi/wakeup_32.S b/arch/x86/kernel/acpi/wakeup_32.S > index 665c6b7d2ea9..0c26b1b44e51 100644 > --- a/arch/x86/kernel/acpi/wakeup_32.S > +++ b/arch/x86/kernel/acpi/wakeup_32.S > @@ -12,11 +12,13 @@ ENTRY(wakeup_pmode_return) > wakeup_pmode_return: > movw $__KERNEL_DS, %ax > movw %ax, %ss > - movw %ax, %ds > - movw %ax, %es > movw %ax, %fs > movw %ax, %gs > > + movw $__USER_DS, %ax > + movw %ax, %ds > + movw %ax, %es > + > # reload the gdt, as we need the full 32 bit address > lidt saved_idt > lldt saved_ldt -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html