Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1907imd; Fri, 26 Oct 2018 04:10:54 -0700 (PDT) X-Google-Smtp-Source: AJdET5dHMOIzXEvEYu9RGBkegstZ2vXRbu0t0MmOrslVfX3/JbLlR2KoipOe4CZOuMUKVqFcDTfp X-Received: by 2002:a62:1196:: with SMTP id 22-v6mr3251911pfr.178.1540552254539; Fri, 26 Oct 2018 04:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540552254; cv=none; d=google.com; s=arc-20160816; b=gtIgZ2D3YKYiVgTfOhKa7LsKI9VmgltoYLU6wMCnA73I6VOOwgcX8eFgPs+xhFmjLr eD5JVyq/2yhRznpyeSL7FnKLxjO6ajqaQxyxm0oQQzVjwtXqYWejY8F0R9JrcTISeULR tExLqB5qD9WNZ67xZhfTPPCCF1I4p5CH7EyeCWy/qRdgQkPeXUu88+obQkerKJOyLXNS r+jZUIZ8d9thOgNAadxVYONDFvbunesednGkM9+dhauziM52iN940tpATzijkLl+txul ga5ypSdgfypME8a5Gd3b7JW+LUh6NgW0s8bG6whBNUZGZQcf1S/supiU52YOxkFicV7+ B4UQ== 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=QR/mSxlW5VHNprQmF3DSNA44p8YzT3Nep5XIP3NrfGU=; b=tnpobVGLz4pYvHV4k3g5lUoxp/NC1vEA8xnGwO7b515xkcuW5PicFsg0v5GLs+Qz3n SpCmiuDYqcNmQp2O7xEdmWvAAd3iQh4sZapW+HKh36unLjahUZc+OxqU9znD3aiyTNlQ FTBpinhQAGm6gYlzc2YXwORd/E40xYbW6fWQYIbsGsbcKoHbxa2Tt6gZueSUH7RBeCdW ZrmsCEtgaCrDRj20dDygIqtw7XcvFmKq/fnVHaDHbYyQKs5kxTfes2xsltJ5k7ex/Xxa 5v5hWuuSv7mFxH5zRlkPkfajoFScie5rTTZm3UI8+dk0NH0lRe1vYk2NoXo7g5m771SZ zGSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ORX8+31s; 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 p15-v6si10242457plr.364.2018.10.26.04.10.37; Fri, 26 Oct 2018 04:10:54 -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=ORX8+31s; 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 S1727608AbeJZTqC (ORCPT + 99 others); Fri, 26 Oct 2018 15:46:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:39904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbeJZTqC (ORCPT ); Fri, 26 Oct 2018 15:46:02 -0400 Received: from localhost (unknown [167.98.65.38]) (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 108922075D; Fri, 26 Oct 2018 11:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540552162; bh=4W+kYVQTmfxXr195VHfoRBCL+1VQUQEegvLQTU4ExZs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ORX8+31sQZcFAztthFKAfIWhV04Zl3+1I9SygmVviGsY7zNNi1WbEtEleOqwK+01U ER8MTfElkHBBOi5JwP8hy9sOemBGU0SHVIFuiHjR33V8udc1vN4qYPmDpAbhNCTxCi yBDhXHJQOKJe9Ha4sLg8sgut5GBJfqWkHA6RLR7U= Date: Fri, 26 Oct 2018 07:09:20 -0400 From: Sasha Levin To: Pavel Machek Cc: Greg KH , stable@vger.kernel.org, linux-kernel@vger.kernel.org, Gerald Schaefer , Martin Schwidefsky Subject: Re: [PATCH AUTOSEL 4.14 02/15] s390/hibernate: fix error handling when suspend cpu != resume cpu Message-ID: <20181026110920.GF2015@sasha-vm> References: <20181022102026.40869-1-sashal@kernel.org> <20181022102026.40869-2-sashal@kernel.org> <20181026090543.GC20200@amd> <20181026092214.GA4307@kroah.com> <20181026101549.GA30955@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181026101549.GA30955@amd> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 26, 2018 at 12:15:49PM +0200, Pavel Machek wrote: >On Fri 2018-10-26 10:22:14, Greg KH wrote: >> On Fri, Oct 26, 2018 at 11:05:43AM +0200, Pavel Machek wrote: >> > On Mon 2018-10-22 06:20:13, Sasha Levin wrote: >> > > From: Gerald Schaefer >> > > >> > > [ Upstream commit 55a5542a546238354d1f209f794414168cf8c71d ] >> > > >> > > The resume code checks if the resume cpu is the same as the suspend cpu. >> > > If not, and if it is also not possible to switch to the suspend cpu, an >> > > error message should be printed and the resume process should be stopped >> > > by loading a disabled wait psw. >> > > >> > > The current logic is broken in multiple ways, the message is never printed, >> > > and the disabled wait psw never loaded because the kernel panics before that: >> > > - sam31 and SIGP_SET_ARCHITECTURE to ESA mode is wrong, this will break >> > > on the first 64bit instruction in sclp_early_printk(). >> > > - The init stack should be used, but the stack pointer is not set up correctly >> > > (missing aghi %r15,-STACK_FRAME_OVERHEAD). >> > > - __sclp_early_printk() checks the sclp_init_state. If it is not >> > > sclp_init_state_uninitialized, it simply returns w/o printing anything. >> > > In the resumed kernel however, sclp_init_state will never be uninitialized. >> > >> > Stable patches should fix one bug, and one bug only. >> >> So should upstream patches, but the rule of "stable patches match >> upstream identically" overrules this :) > >a) There is no such rule for upstream. I invite you to read the docs in Documentation/process/ where you'll find gems like "Each logically independent change should be formatted as a separate patch". >b) You should split the patch if it is important enough. > >c) The "stable patches match upstream identically" rule does not >exist. Check the documentation. The rule in question here is that every patch that goes into -stable must be upstream. If we were to split this patch, it would create 2+ patches that do not exist upstream, thus breaking our own rules. Anyway, given that this is an upstream issue, I'll also invite you to have this discussion with the maintainer of the subsystem this patch went into; you raise a valid concern which can hopefully be addressed by that maintainer. -- Thanks, Sasha