Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3177883yba; Tue, 16 Apr 2019 06:23:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbhEiC8CRue/j30McVWVLk6s6CIIz5/90nrG1TTgIQp+q2SHtDpn2IcqZegOEihPJfc42t X-Received: by 2002:a65:6389:: with SMTP id h9mr76965011pgv.398.1555421011462; Tue, 16 Apr 2019 06:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555421011; cv=none; d=google.com; s=arc-20160816; b=aiOHYtA8cG/kH6WaKLXnSwRaZigpt9NJCMbm72ub48AhLsiskBk2tQjUoRCl0KmuaO IEQ4nQrGDPA7meeqIXB+Ygkkio37eQfLX+TSc4W0zMffsUJGoEdQQB8Ta0ii8hmhqZuZ cTB3H7gr/RXPDESduaER8TmpI0KuNWDt3WvtXgcOhaksW1ji+WqtCe5bnPYcEqPmm0eN N62d+tTMoCbGpIhMdIiFAkp6GIuPnN2S/DGEOBH8iA5tgn8L2lmWSqnvLyOGYJEL2x9Y O0dSM67pL9SqkO/TAP3VBaGRbxftEfBn/xG/6WzJo+q84dQvIp1nIZ2bEg7tewalN8Hr pLfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WrRPtabFAqFYRblHwwRsHJKg7VbmbpWqlyZ9qecaN48=; b=r+oVH0r1TiwxT8gdfmE4WQuTbzPYtsbXkMxOxq0nRe96+F+MuMafZN+o3GD1jTWl89 YKI3aBCFPxROy4pGoIeYyMx0tQNKnoxGl/T4Pc7dSKOlgJh7qMibf0mMTwDYg2NtYdNv XzFUM4fJhTPwNXHSYf1KQqIWAbLJ/aGRZh98sXWKpM13c75v0B4utsdGd9Le/KweNLgT 1ouMpPxQ0WUNK44V8qAxcccuUiXoeX+ZgkaQCFYnakhyUgkMMMI0F8+I1a6JCwr4fFKS Y6snuZP4CwOuKB6hvQ5hGqa2gaHZRCpYMQov2LQuY072zNlEBFNPgGn7XT7G67xkkOtY QwxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YmauViKr; 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 w7si41610782plp.341.2019.04.16.06.23.15; Tue, 16 Apr 2019 06:23:31 -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=YmauViKr; 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 S1726946AbfDPNWG (ORCPT + 99 others); Tue, 16 Apr 2019 09:22:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:36146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbfDPNWG (ORCPT ); Tue, 16 Apr 2019 09:22:06 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 DD8372077C; Tue, 16 Apr 2019 13:22:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555420925; bh=b+hZZXkghxVJ0R/7hRLTSdMoo41Ex8NN8b1hb1zTjNM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YmauViKrdzdc0nz4Szt87QdgFkgNih2tYaRpMyJUs95ACybZ2BJZF7tOnu+5fC4lO NHiS6yDUOHQlT9pD/FGzAlgT4rTtKaAHk/lAUsQvhLPSU1LQYSGci5lHLlhd3E6dNv l0pF1FCkOoiouGnIglXYgSn9TW0CZKewrMobxH54= Date: Tue, 16 Apr 2019 09:22:03 -0400 From: Sasha Levin To: Pavel Machek Cc: Andy Lutomirski , Greg Kroah-Hartman , LKML , stable , Jarkko Nikula , "Rafael J. Wysocki" , Thomas Gleixner , Borislav Petkov , Josh Poimboeuf , Peter Zijlstra , "Rafael J. Wysocki" , Zhang Rui , Ingo Molnar , Linus Torvalds Subject: Re: [PATCH 4.14 05/69] x86/power: Make restore_processor_context() sane Message-ID: <20190416132203.GY11568@sasha-vm> References: <20190415183726.036654568@linuxfoundation.org> <20190415183727.581656002@linuxfoundation.org> <20190415200452.GA25908@amd> <20190416115644.GA7009@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190416115644.GA7009@amd> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 16, 2019 at 01:56:44PM +0200, Pavel Machek wrote: >On Mon 2019-04-15 13:18:56, Andy Lutomirski wrote: >> On Mon, Apr 15, 2019 at 1:04 PM Pavel Machek wrote: >> > >> > On Mon 2019-04-15 20:58:23, Greg Kroah-Hartman wrote: >> > > [ Upstream commit 7ee18d677989e99635027cee04c878950e0752b9 ] >> > > >> > > My previous attempt to fix a couple of bugs in __restore_processor_context(): >> > > >> > > 5b06bbcfc2c6 ("x86/power: Fix some ordering bugs in __restore_processor_context()") >> > > >> > > ... introduced yet another bug, breaking suspend-resume. >> > > >> > > Rather than trying to come up with a minimal fix, let's try to clean it up >> > > for real. This patch fixes quite a few things: >> > >> > 5b06bbcfc2c6 fixed theoretical bug; rather than porting it to stable >> > than fixing it up, it would be better not to port it to stable in the >> > first place or simply revert it there. >> >> Are you sure about that? The bug was reported by real users who had >> their systems really crash: >> >> https://lore.kernel.org/lkml/?q=0fede9f9-88b0-a6e7-1027-dfb2019b8ef2%40linux.intel.com >> >> https://lore.kernel.org/lkml/CA+55aFwsMuHUBQz5kDNwRf17JnasXMWjvmLq5qXGH-694yeq1w@mail.gmail.com/ >> >> And we had a report that the bug got backported: >> >> https://lore.kernel.org/stable/20190407160005.djiw4reapwvbxmgo@debian/ >> >> And if we're going to backport some of the fix, we should definitely >> backport the whole set to avoid having the -stable kernels be in a >> state that was never in any released kernel. > >I agree it should be all or nothing. And I may have been slightly >confused. > >Anyway: 5b06bbcfc2c6 is fix for ca37e57bbe0cf, and that one is for >"mostly harmless warning" (quoting changelog). ca37e57bbe0cf is not >present in 4.4.178, I believe best solution is not to add that one in >the first place, so we don't have to fix it up. 5b06bbcfc2c6 describes in it's commit message two bugs that it fixes: one, as you pointed out, is fixing an issue introduced by ca37e57bbe0cf. The other one which to my understanding is unrelated to ca37e57bbe0cf, is fixing "resume when the userspace process that initiated suspect had funny segments", and provides a straightforward test case for that issue. -- Thanks, Sasha