Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1834745imm; Mon, 3 Sep 2018 10:38:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbuMttvjDbUazio7o2meY6fUWlTr8NuQQO54waErHm5Qo6Gy57wccxN+fB1ZcygPplBQvfR X-Received: by 2002:a17:902:ba83:: with SMTP id k3-v6mr28725352pls.251.1535996323327; Mon, 03 Sep 2018 10:38:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535996323; cv=none; d=google.com; s=arc-20160816; b=UBSDhA5j1anGVRpKyjOgXp3ffA8WPvQMTtzN4bG3aqd69d/3+Sg9IUi7k9kbgq2fw4 AVnpOBP+zIXih1D+janBnK5QCsYj6gB4ZFPUWqCqpR7BiUBb09dPZ36Ja8k2ftNVO6rL +vw8sj90ZdqpzmEgkRYzltMB/J0ws1lryqNgk4DGJMkjahsO0CX2vLwpxZCYYAo4A12t 22X8JzwjaH78aYSw2H2wTn0wSCKOwEgvpuC09t/AA8cwJvRZ60VE8YYkiz6HcmRMsKjI bNhsYlg2ItcmXRs1/Rroe5tQM4y3n1JvEWPitA2euEfroitPjzLCgX5AJNgXL4roAjaE dVgg== 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=yIq3BTMiLHbDwoK3nalt9Kxx8gTOGIoNBrTCp52nzyw=; b=0BPZqoiCg22nSMKi9tlMb7D258pwp+Hep0mlXoU9gnrPZP8ilYUNjNrfHiooypPm6t QEwBe2XfnIHVHpEMkW8KDERNYyOst58rF5L5x5rHNY0WpIBtGmQMajyLt2HRpqsmG3Dz MjVYVuADC4idnWu/3YIkS0wyqQGDfY/eQDP1Csao5wxQg5XY2ltseM3q48RWgET4LEOX /gUc+E+8bROIeoBqdNDO01UbUOcQakt4SDNJiS/LWTvD6z3Hwhtht43h5W8wF1OnFpu7 ELcA3Te4SfOBXHhrt/xNBamBcGp0UY1mUjurJjhwOgI+3gINlfxdX7IHRz5B5sHFAw0o Lu4Q== 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 m86-v6si20015378pfj.48.2018.09.03.10.38.28; Mon, 03 Sep 2018 10:38:43 -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 S1731587AbeICV6a (ORCPT + 99 others); Mon, 3 Sep 2018 17:58:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48714 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728430AbeICV6a (ORCPT ); Mon, 3 Sep 2018 17:58:30 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A4A71A95; Mon, 3 Sep 2018 17:37:19 +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.18 087/123] s390/mm: fix addressing exception after suspend/resume Date: Mon, 3 Sep 2018 18:57:11 +0200 Message-Id: <20180903165723.209069269@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165719.499675257@linuxfoundation.org> References: <20180903165719.499675257@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.18-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); }