From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938758AbcHJSxy (ORCPT ); Wed, 10 Aug 2016 14:53:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:42556 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964946AbcHJSxo (ORCPT ); Wed, 10 Aug 2016 14:53:44 -0400 Date: Wed, 10 Aug 2016 09:50:15 +0200 (CEST) From: Jiri Kosina X-X-Sender: jkosina@pobox.suse.cz To: "Rafael J. Wysocki" cc: "Rafael J. Wysocki" , Thomas Garnier , Linux PM list , the arch/x86 maintainers , Linux Kernel Mailing List , Yinghai Lu , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Kees Cook , Pavel Machek , Kernel Hardening , Borislav Petkov Subject: Re: [Resend][PATCH] x86/power/64: Always create temporary identity mapping correctly In-Reply-To: <2010434.TyoHiO9eal@vostro.rjw.lan> Message-ID: References: <2206547.eDj3RJQyE5@vostro.rjw.lan> <2010434.TyoHiO9eal@vostro.rjw.lan> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Aug 2016, Rafael J. Wysocki wrote: > For the lack of better ideas, below is a patch to try. > > It avoids the possible issue with the restore kernel's identity mapping overlap > with restore_jump_address by creating special super-simple page tables just > for the final jump to the image kernel. > > It is on top of the $subject patch. My test box still works with this applied, > but then it worked without it as well. > > If it doesn't help, the identity mapping created by set_up_temporary_mappings() > is still not adequate for some reason most likely and we'll need to find out > why. Unfortunately, still with $subject patch + this one, triple fault and reboot after reading the hibernation image. Due to being slightly out of ideas currently, I'll play a little bit more with the relocation offsets to see whether that makes any difference. -- Jiri Kosina SUSE Labs