From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF57CC4707F for ; Thu, 27 May 2021 18:46:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ADB7B613D1 for ; Thu, 27 May 2021 18:46:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ADB7B613D1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=u2ZTzMS4nRDJOF7Jwv5zSjVbvFcMAwaS8v/0E8Ncjf8=; b=h9hWiPnWiOstjUun+XTgLDFDxl 0YMZWMDNGKpzlipi3pOAhJ63gdh6ssgd5d0lirg+lqcw6h7zfWgUqqaIBDSdq7XLLH6BG88WF/GFV YNUE5/9FeT2nmA7AkWpkA4yjFYW4hrMcFvVkFtRdXAP96uXUZPu1HC3FHBE/A0czorvApQFX1kGFg BO3PKOLIxWIkd3V3xcWumbMmDyzDkIa054n4btwuhTu2ydo01a8kaLErSChTZh3n1BwERAqkXVUXk ALD5kcUPaq8HAOe3UDuE50ov+Y04laGkEvipdN/Uzy0SNOp8iT8kGSbwbPXAfIg/bOqlLarGwO28u XtlYWASA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmKvS-008Z24-VI; Thu, 27 May 2021 18:40:12 +0000 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmJYQ-007y8c-Cv for linux-arm-kernel@lists.infradead.org; Thu, 27 May 2021 17:12:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622135535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8Tj882GRDYNKA/Odur5I8qEQKwf2uVi6wQUPaTSmUGk=; b=HrCJpxEGjNmvGTuHgWD5CAt6PACA4sihNoSY0/sQY/ZzPddTY1rqJ9gOqHpuGAQm/Lkr9g Bo40t6dAnWbktp9i/Vm1YcuwLYjxNFHIFzRRPdDNgsqw1a6kyEzFqiNA6PhTMZ1WuFEW5l PxVFKhA9AGLdJhd2Nyu56tnIbPsxCDk= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-101-bI_Iyhy-P8iXHof4CdVtaQ-1; Thu, 27 May 2021 13:12:13 -0400 X-MC-Unique: bI_Iyhy-P8iXHof4CdVtaQ-1 Received: by mail-wr1-f69.google.com with SMTP id j33-20020adf91240000b029010e4009d2ffso192547wrj.0 for ; Thu, 27 May 2021 10:12:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=8Tj882GRDYNKA/Odur5I8qEQKwf2uVi6wQUPaTSmUGk=; b=OgFcM+ojdS/e2ewVs2oEkp6a4G64Gsg4ygYNct2XE8k+785wk4NvrFPv0a/OrforUz tsRYnWHolcc5Luwvd1vTR5pEG4ISmSYcOGBimDAuS2dfvxwoXHOQdvEDWEq3YpYIecoG dsP+HfgIjUWZLjK0LUaSR9eo0sNnCwL9jJoy6euaYo4oVuXd0B8zj+5aqflFC7lhOLVc pvRHPb4vwWHSl5VI6kul97VTkt0f4InSntevsh89A6Aji6/63F+Us4RbsXv9v6E/yI7r N6BONJk9zwGuhqh0DKs4ouGcHq7EbsG+Tcy+ijD6CBgLAFJyj4meS67JMHV4WD6V3fZQ ldug== X-Gm-Message-State: AOAM533j7NxXwp6ZbX/cT67HKzgG6QcI7HtFGgAY1cREcwWONmdYnSxy vivTQ0GHO8EDtUD3EFM3iAyLYGtY9ij0s08T7ywioEDaqFvItpYdXDSlEPdjWIDkBT0h+p+AAzN pBgvvwVXa7QtIx7o74HuwrbabVloHyoATTsQPUroemOvqFsWQfr6eZHlVvNH8IvnqLfoKK9UkyF kDK9b6iV8= X-Received: by 2002:a1c:3d05:: with SMTP id k5mr4669362wma.9.1622135532255; Thu, 27 May 2021 10:12:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfH6a8f34/9c06VAR9VtQNYysw/6uRvDZUrv050Ei6nDvYjtR9kqnXZGaQdB/PD53PwEWPHA== X-Received: by 2002:a1c:3d05:: with SMTP id k5mr4669322wma.9.1622135531909; Thu, 27 May 2021 10:12:11 -0700 (PDT) Received: from [192.168.3.132] (p4ff230a8.dip0.t-ipconnect.de. [79.242.48.168]) by smtp.gmail.com with ESMTPSA id l8sm4338822wry.55.2021.05.27.10.12.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 May 2021 10:12:11 -0700 (PDT) Subject: Re: Arm64 crash while reading memory sysfs To: Mike Rapoport , Qian Cai Cc: Andrew Morton , Catalin Marinas , Anshuman Khandual , Ard Biesheuvel , Linux Memory Management List , Will Deacon , Marc Zyngier , Linux Kernel Mailing List , Linux ARM References: From: David Hildenbrand Organization: Red Hat Message-ID: <3a5fa459-cd00-8a65-3ee1-debc51424a7c@redhat.com> Date: Thu, 27 May 2021 19:12:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210527_101218_576285_19132B99 X-CRM114-Status: GOOD ( 15.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org >> [ 259.216661][ T1417] test_pages_in_a_zone: pfn 8000 is not valid >> [ 259.226547][ T1417] page:00000000f4aa8c5c is uninitialized and poisoned >> [ 259.226560][ T1417] page dumped because: VM_BUG_ON_PAGE(PagePoisoned(p)) > > Can you please try Anshuman's patch "arm64/mm: Drop HAVE_ARCH_PFN_VALID": > > https://lore.kernel.org/lkml/1621947349-25421-1-git-send-email-anshuman.khandual@arm.com > > It seems to me that the check for memblock_is_memory() in > arm64::pfn_valid() is what makes init_unavailable_range() to bail out for > section parts that are not actually populated and then we have > VM_BUG_ON_PAGE(PagePoisoned(p)) for these pages. > Oh, that makes sense to me. -- Thanks, David / dhildenb _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel