Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp579216ima; Fri, 26 Oct 2018 03:16:29 -0700 (PDT) X-Google-Smtp-Source: AJdET5ddCkEocDB4j66c6VsMNT0Y1ozNHz6/zCzxX4FbbPiFI4EqJDhTtRk8gZ5XNUTmaDwGIChy X-Received: by 2002:a63:396:: with SMTP id 144mr2943257pgd.68.1540548989362; Fri, 26 Oct 2018 03:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540548989; cv=none; d=google.com; s=arc-20160816; b=NKimdRZtS53bwWKPETdbjI4mvmVkUo2ZHG1LdCsGg4R5BMQXasutb9TmzmduD150t4 Lh+K2/U3BCUWV+D8Vds5s2gXp1c5nOa6NkdZza/jnbo9bI62XOBGiWGp+pHguJYrzxrc Gfoy536ooT52aORor3+8k76HRmvSihvkUpHjY42MMGuherO+47nXe/EmkSUC3u8dkrho dTnb7VwQInhkw9Te1jmTtrSM+KgXTqwAxjdpzww6Q/iqaduSjKcJZlSS0AMBWe/45eMo hb5keZriK8L8tiGtlBdlk8JdkXs/+glq3Y3yF50k6TKqekBJb37n0Sye5+a+pf1RvprT q4Kg== 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; bh=P6Vg/O/i39gVhmkLdiMaVlksypd6gOhpC1vSi5o6oJs=; b=qGC4RK7+UYW4fV//K81v/9hhMlyNc/ZouUDnHyrCM3wZZMUuVLzlosY7ikkqSCmJFz XPzp+4QZMkC4XTTtOYsJFGJQ/+UCvSgL74mdZxk0XAShYhSM30gLfWNe7oGoUC9Xwn5l uMXeUycFwQjHX1OqMwNkeRa2ZJI/6hV8K4lJ799Zsv+j4yNi9kNHsqCrvfYAIPbvnZSK VbAtljdCOqwgJhjPzdI4is1glMHnqFTiUmQl4ce3O130/TJK7vIaPpkdWrRd+Nz2g4HB LKFeQT5QYWNNVXhmI/jOJPVq+5xtT+whrGSNBhujNIAIVuXCIplVi5BHgIU0EjFCcKdQ 282w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1-v6si10902241plb.132.2018.10.26.03.16.13; Fri, 26 Oct 2018 03:16:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726815AbeJZSwV (ORCPT + 99 others); Fri, 26 Oct 2018 14:52:21 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:39239 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726402AbeJZSwV (ORCPT ); Fri, 26 Oct 2018 14:52:21 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C8146808BD; Fri, 26 Oct 2018 12:15:48 +0200 (CEST) Date: Fri, 26 Oct 2018 12:15:49 +0200 From: Pavel Machek To: Greg KH Cc: Sasha Levin , 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: <20181026101549.GA30955@amd> References: <20181022102026.40869-1-sashal@kernel.org> <20181022102026.40869-2-sashal@kernel.org> <20181026090543.GC20200@amd> <20181026092214.GA4307@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20181026092214.GA4307@kroah.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > > >=20 > > > [ Upstream commit 55a5542a546238354d1f209f794414168cf8c71d ] > > >=20 > > > The resume code checks if the resume cpu is the same as the suspend c= pu. > > > 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 stop= ped > > > by loading a disabled wait psw. > > >=20 > > > The current logic is broken in multiple ways, the message is never pr= inted, > > > and the disabled wait psw never loaded because the kernel panics befo= re that: > > > - sam31 and SIGP_SET_ARCHITECTURE to ESA mode is wrong, this will bre= ak > > > 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 anyth= ing. > > > In the resumed kernel however, sclp_init_state will never be uninit= ialized. > >=20 > > Stable patches should fix one bug, and one bug only. >=20 > So should upstream patches, but the rule of "stable patches match > upstream identically" overrules this :) a) There is no such rule for upstream. 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. :-( Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --SUOF0GtieIMvvwua Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlvS6VUACgkQMOfwapXb+vIGaACfRMWb1/mzL0L/XxOwmw/AphVV c8EAn3IOm0LpJdXe25NtRVXR1o09joha =z+53 -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--