Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp359757imm; Mon, 2 Jul 2018 12:53:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKft0EgklxrMFXGY9Tth3lmgmXC4DiXM2PWUL7ZqDnOIflNAmdQTrJQUmtLEltLEesOtcZT X-Received: by 2002:a17:902:708b:: with SMTP id z11-v6mr26940704plk.231.1530561229629; Mon, 02 Jul 2018 12:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530561229; cv=none; d=google.com; s=arc-20160816; b=nj7H2XSjsgA7Zxt2LGS3PQ+SLvB7n5j28BmR2aD015rbrodO+jeLz4GIEGIMqRPob+ 0KioC36lAnuqYLzEiRaz9t8LdNP85QsMpkaz2BLW5RjLtmNdjai+iBevIuzkzUvkscyX C7VT2+G/O+N9i1luqVddL+U76Z6JpndI2jRn5Tt1EFoX7wHSVUXg3iEmMnvzXzKjmv1N +DNvmSy0bY9dTCXt655Q6ftgE05lzD5rPwuG+Ygoo129kOJVR01kaY5qCeaWazVZ3M8k 0OnNYxCWst3u4V42ZP/ZkffmP+aXWGSXMQDg9ucqtGBlzuYCuonzpeX6zeL2W2NuwThS IiwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=mA4TvdP/VbgwF94KvgzP9oh+jttVTrXtO08AEcv9KSE=; b=rGX8eXCAuHxfQ2hjJMqEz0XV1aJhimbpWnxs5XCwrI5tf9xdfc55n98BpBR+aX4O5b reYp1b7FOGapiMJmPbeW8FdFKMOcoBQWsvFW8CrT8vJdV947Ppcl6IUavx9UiHcpGdRY wHXPXE+xy31erGBhdcyA+s86zDGZFI46ccQoygyBN+W6szeXunm6FsKi9+ynC6xytN6C nAdjkkae3/o+aTJSp+5bf6gl3Dqw1pV8R/Wx5Zb1AsftkfSzF30BpUGfPqhOFCjJTT/z Nq07RdurbV7GsizEmPv75+VPc4bdJV7LeCL1RGSKDVizlnEdoFmXSsWOrJ1x0dARYFy0 v5/Q== 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 u76-v6si3156668pfj.58.2018.07.02.12.53.34; Mon, 02 Jul 2018 12:53:49 -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 S1752972AbeGBTvw (ORCPT + 99 others); Mon, 2 Jul 2018 15:51:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56716 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752639AbeGBTvv (ORCPT ); Mon, 2 Jul 2018 15:51:51 -0400 Received: from akpm3.svl.corp.google.com (unknown [104.133.9.92]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 300B0D6E; Mon, 2 Jul 2018 19:51:51 +0000 (UTC) Date: Mon, 2 Jul 2018 12:51:50 -0700 From: Andrew Morton To: Pavel Tatashin Cc: steven.sistare@oracle.com, daniel.m.jordan@oracle.com, linux-kernel@vger.kernel.org, kirill.shutemov@linux.intel.com, mhocko@suse.com, linux-mm@kvack.org, mgorman@techsingularity.net, gregkh@linuxfoundation.org Subject: Re: [PATCH v2] mm: teach dump_page() to correctly output poisoned struct pages Message-Id: <20180702125150.a7b69e852d9b7bd52f1f451d@linux-foundation.org> In-Reply-To: <20180702180536.2552-1-pasha.tatashin@oracle.com> References: <20180702180536.2552-1-pasha.tatashin@oracle.com> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2 Jul 2018 14:05:36 -0400 Pavel Tatashin wrote: > If struct page is poisoned, and uninitialized access is detected via > PF_POISONED_CHECK(page) dump_page() is called to output the page. But, > the dump_page() itself accesses struct page to determine how to print > it, and therefore gets into a recursive loop. > > For example: > dump_page() > __dump_page() > PageSlab(page) > PF_POISONED_CHECK(page) > VM_BUG_ON_PGFLAGS(PagePoisoned(page), page) > dump_page() recursion loop. > > Fixes: f165b378bbdf ("mm: uninitialized struct page poisoning sanity checking") > > Signed-off-by: Pavel Tatashin > Acked-by: Michal Hocko Thanks. I added a cc:stable to make sure this gets into 4.17.x.