Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp522550ybi; Fri, 31 May 2019 05:14:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcUnOdxdgusA5ft703wjdEdvmYOhZZh9lm2/VCcc270uYm+1O9nWIvLg6b4jE6nRX1RPu3 X-Received: by 2002:a62:ae0e:: with SMTP id q14mr9488238pff.164.1559304860155; Fri, 31 May 2019 05:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559304860; cv=none; d=google.com; s=arc-20160816; b=ATcqsn6Rbv2OEVaOHuaURPYuUMCL2WyjxDWrbiRvpkYzb1guTxyQhlDU6Qx7w5oRYW pRTxGhqAIRPgBwjkOYQsVbxCETpxJUvLId65fmUAWqc/afBaVQXnNPHzuhR0CHwj+RPT ORjmKi+UQ1T/+xZof0cz2gT2PkAvN+LiOpjgDXyxdTxt5Jg4QJ1x9MhFUlbXymAToIz9 VrggYdin/foPXiTKQIS2xN75Q7KMUhN1pmkQTSEjEF4sGFdLSImYS3e/32RioljuJ2kc CCp4iiyz/M4I73wfvybpX1wsVnXHlvDC9cfp1rhXWOTpC0oZjWBuQ6a9/wYH1iHGDLTX VJhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=8+amhCESfSiB1LBYb4kKcMYlISf1odKCqG9XPMMVkB8=; b=mCV5A3WTqB8X9vKDe0FLIj1y+qrdkJxVT4XHCovuTBlyUY47xUeovZdSxtANDPsCPO 2VrH3gpsFZFVn72z46B01NWfR3tLLuPFzG4CPCrQPdvURGaMqqHFeZhoFA9THSoEwCa6 cCykgfBm9bQ3Qkb3GRDEPdcGtaXkFJf2Jrxz8781OxWpdefg/Cvusq0dAmQZkm6EKaBR 4Tu4RNrI4WTOu9Mk1RngWBItzSFSFCKldvHGikowH0UGPfEIwQisAQ7T5TV6A0YtU/s5 nevm3DTriVdEusAR4NS3SehT49EPitYdxLHvUYeX7NVBgY9b/m6OXabUml302Fg0R5ux CnEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LJUT1u8n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si4596788pls.253.2019.05.31.05.14.02; Fri, 31 May 2019 05:14:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LJUT1u8n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727447AbfEaMKs (ORCPT + 99 others); Fri, 31 May 2019 08:10:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:39472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727327AbfEaMK0 (ORCPT ); Fri, 31 May 2019 08:10:26 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D4BB2685F; Fri, 31 May 2019 12:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559304625; bh=clAIEBmajpiQKktOEKSBKpbFw41J7aLzihGd1Cq4U9g=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=LJUT1u8nmKrWqTtqdGX7cDrBNk1X4cVcD5sgVhwJBPzSXBLNYDyOVx4lk82YnTS4B gFRwuZPOQwBm61NZd47QschHiuMnsQ2SatbFHoeGGLkwD1Z7+DXQI7HDiQmSl3PKjJ bchq8b9ilYkT2a+lkmhzedx7jr//JvmCaF+eAbkY= Date: Fri, 31 May 2019 14:09:57 +0200 (CEST) From: Jiri Kosina To: Josh Poimboeuf cc: "Rafael J. Wysocki" , Thomas Gleixner , the arch/x86 maintainers , "Rafael J. Wysocki" , Pavel Machek , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Peter Zijlstra , Linux PM , Linux Kernel Mailing List , Andy Lutomirski Subject: Re: [PATCH v4] x86/power: Fix 'nosmt' vs. hibernation triple fault during resume In-Reply-To: <20190531051456.fzkvn62qlkf6wqra@treble> Message-ID: References: <20190530233804.syv4brpe3ndslyvo@treble> <20190531051456.fzkvn62qlkf6wqra@treble> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 31 May 2019, Josh Poimboeuf wrote: > Something like this (not yet tested)? Maybe we could also remove the > resume_play_dead() hack? I tried to test this, but the resumed kernel doesn't seem to be healthy for reason I don't understand yet. Symptoms I've seen so far -- 'dazed and confused NMI', spontaneous reboot, userspace segfault. > diff --git a/arch/x86/include/asm/fixmap.h b/arch/x86/include/asm/fixmap.h > index 9da8cccdf3fb..1c328624162c 100644 > --- a/arch/x86/include/asm/fixmap.h > +++ b/arch/x86/include/asm/fixmap.h > @@ -80,6 +80,7 @@ enum fixed_addresses { > #ifdef CONFIG_X86_VSYSCALL_EMULATION > VSYSCALL_PAGE = (FIXADDR_TOP - VSYSCALL_ADDR) >> PAGE_SHIFT, > #endif > + FIX_MWAIT = (FIXADDR_TOP - VSYSCALL_ADDR - 1) >> PAGE_SHIFT, Two things to this: - you don't seem to fix x86_32 - shouldn't it rather be FIXADDR_TOP - VSYSCALL_ADDR + 1 instead? Thanks, -- Jiri Kosina SUSE Labs