Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1827737imm; Mon, 3 Sep 2018 10:28:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZxXXUD9QlisLQc6aaitpY+WTEd2DYyOf4inJoo8GL/XQcmKshi0R3dLgWf1EV+PMpN2V/i X-Received: by 2002:a65:6102:: with SMTP id z2-v6mr27514441pgu.46.1535995690514; Mon, 03 Sep 2018 10:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995690; cv=none; d=google.com; s=arc-20160816; b=p5ZyYeNujb1yifCInUvuegvgtVp8kffBdTk6nUFJp8iNHJaa/e5+5T70VFunlNIDQK yfL11qRdgT4vseOU74rJjB1PXsAZYynKUU+iRfwP3oLucGwtTaAOEARy6GPNyGzCnflA ktHooROF4RcIPLM2bSd37cUn1pPbBXWKC7UYOS8FPqY/JHIsbO1KOi18HTCtbcOwHq7H S/X0t1+242QZDItZ3dr6U/ktU75O4RZ3SfjDWIpHtklzTBdNV1mliHcF47a+w8833zJv 6Rai2ZRqJMhQZcoLjefITM9LNuozsk1Iw3h5ejWDY9oVk6vvHN4gczNGMCMesb9ogP27 VnVg== 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 :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=4xbDWcGmzCR3CDF5ZCiDHudPF9yykqZndBGJ8UFvGFM=; b=y0jBeJnFS/UcnzkOqz2KH+nGULCuzSdDckluoM6YPGqX6mQoG8zhHfA5IUqb72IqIA 9w6pIUR1S7eLYUvN1tIlyFbcFZFIfsl3/tUcr3/AFbR5bPTe3+Gr7wYVOQOQOFXgVVNf 5lTiUBcn2x1rvGlqwP2uhvSdt+fejzxvduBya2563x+p2JVnu/1aE69HulNbgi1vKhgf skFfOTL4gtS9GmoStHhW48WBFNB2w567vuT+y42KfnapqfAgo/htMKCgJWmmn4QCwfKN oMfpB8gaFJuapOMzIvrrjUHURAnJNuJTwdw23W810ixE89B09r2iwWlfGTmSdtuI5wR9 PvrQ== 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 e1-v6si4209738pgl.75.2018.09.03.10.27.55; Mon, 03 Sep 2018 10:28:10 -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 S1730881AbeICVsA (ORCPT + 99 others); Mon, 3 Sep 2018 17:48:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45958 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728587AbeICVr7 (ORCPT ); Mon, 3 Sep 2018 17:47:59 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C7ECBD24; Mon, 3 Sep 2018 17:26:51 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiko Carstens , Gerald Schaefer , Martin Schwidefsky Subject: [PATCH 4.14 142/165] s390/mm: fix addressing exception after suspend/resume Date: Mon, 3 Sep 2018 18:57:08 +0200 Message-Id: <20180903165702.661228722@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gerald Schaefer commit 37a366face294facb9c9d9fdd9f5b64a27456cbd upstream. Commit c9b5ad546e7d "s390/mm: tag normal pages vs pages used in page tables" accidentally changed the logic in arch_set_page_states(), which is used by the suspend/resume code. set_page_stable(page, order) was changed to set_page_stable_dat(page, 0). After this, only the first page of higher order pages will be set to stable, and a write to one of the unstable pages will result in an addressing exception. Fix this by using "order" again, instead of "0". Fixes: c9b5ad546e7d ("s390/mm: tag normal pages vs pages used in page tables") Cc: stable@vger.kernel.org # 4.14+ Reviewed-by: Heiko Carstens Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky Signed-off-by: Greg Kroah-Hartman --- arch/s390/mm/page-states.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/s390/mm/page-states.c +++ b/arch/s390/mm/page-states.c @@ -271,7 +271,7 @@ void arch_set_page_states(int make_stabl list_for_each(l, &zone->free_area[order].free_list[t]) { page = list_entry(l, struct page, lru); if (make_stable) - set_page_stable_dat(page, 0); + set_page_stable_dat(page, order); else set_page_unused(page, order); }