Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753706AbdLNVTQ (ORCPT ); Thu, 14 Dec 2017 16:19:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:60092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753605AbdLNVTK (ORCPT ); Thu, 14 Dec 2017 16:19:10 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AD32421877 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=luto@kernel.org From: Andy Lutomirski To: X86 ML Cc: Borislav Petkov , "linux-kernel@vger.kernel.org" , Pavel Machek , "Rafael J. Wysocki" , Zhang Rui , Jarkko Nikula , Linus Torvalds , Josh Poimboeuf , Andy Lutomirski Subject: [PATCH urgent 0/3] __restore_processor_state() fixes Date: Thu, 14 Dec 2017 13:19:04 -0800 Message-Id: X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 626 Lines: 16 __restore_processor_state() was spaghetti code, made no sense, and had bugs. And I broke resume on 32-bit systems. This series cleans it up and fixes it (hopefully!). Andy Lutomirski (3): x86/power/64: Use struct desc_ptr for the IDT in struct saved_context x86/power/32: Move SYSENTER MSR restoration to fix_processor_context() x86/power: Make restore_processor_context() sane arch/x86/include/asm/suspend_32.h | 8 +++- arch/x86/include/asm/suspend_64.h | 19 ++++++-- arch/x86/power/cpu.c | 99 ++++++++++++++++++--------------------- 3 files changed, 67 insertions(+), 59 deletions(-) -- 2.13.6