Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1070241rwn; Thu, 8 Sep 2022 12:58:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR79wsQfEXUia8VLheOA6EyY8cmRQMAiPtqzeFtt1jhc9JXUia0FyZ31/S+e/0OU3ClFaIC+ X-Received: by 2002:a05:6512:1683:b0:497:a6f2:1ae5 with SMTP id bu3-20020a056512168300b00497a6f21ae5mr3350753lfb.7.1662667105461; Thu, 08 Sep 2022 12:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662667105; cv=none; d=google.com; s=arc-20160816; b=R2+/IAf/qRVK9w+PTpqPNOVmap9EasyEqYH+iJp3qmhluHVDzZbWHe7D2oPHTYoxMt cCY8MlVxxLsG1dncUtLb+rapegVoEI2S6nyM038ZaR6p52eu+HONSbgrb7qqfHOC3LLH lAluFPjFYPyCbe/MZAAueX0pZlzcdUV4Y22c7zLhEKNKD9LRmTzdHtvFIqDapYCXrh9Q AEZ1bb4BX0cpGmQ6AuQm74WGSqmrCwrgY8df/xiuxoxGMmfpr5mu0cWyxI/sBvvtrXW2 vp/C1f5EEs47gSOpbbonqtI8jrv7pkjOhCvBQ01/kfW3lo3mqUsoWHTJrNt5bIFy1NSX csLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XB8wq8cmJM3W2D3bgGyLOpFPHA6N5NVNF91TxaAI+Bw=; b=h8hV1DicCS7l+i4y5i7+7ZwWRSS1I8yHtFc4BfqqsuYX62V0Uj4TqQM76QZiIn2yV9 eULntaiT0kVMvMN0ZX4NKCpSNvAtMn5E+ols934zTwyCOEkDQbjqYW1v4glx6GHGRQFb xidlHPX0hZXftd6fayAfbg7Qi7Mtb7ISPqcnznIUVa3EIWyibH0birRZGcMLoTa0GFEC EkFuptsR1t+tPXQbW3Hzl1AqJrlE2I+DIWFF9ttybbugdR3RVBfG8NXtJSLxk7MeSLkH znBMZ4en5gj8j/dK1pgzmw+EymAqP2PY1N8UdxS23+x8TtLc1q531Wn7zkcmgfDeIGEr SGng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=fkM+7ixS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be30-20020a056512251e00b00496ee33e110si4164389lfb.114.2022.09.08.12.57.56; Thu, 08 Sep 2022 12:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=fkM+7ixS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232151AbiIHT35 (ORCPT + 99 others); Thu, 8 Sep 2022 15:29:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230334AbiIHT3x (ORCPT ); Thu, 8 Sep 2022 15:29:53 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F61613DED; Thu, 8 Sep 2022 12:29:51 -0700 (PDT) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 288JGgSZ031350; Thu, 8 Sep 2022 19:28:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=XB8wq8cmJM3W2D3bgGyLOpFPHA6N5NVNF91TxaAI+Bw=; b=fkM+7ixS5mOnOm+BtRuSbY3ZT6Gpq9BpqwSsVa5B0+bbDFKrR5E19L2NI+KkWhub56n+ uu4Xy2/kxOUiq9ncgE+WsF/QH4cef59ervtUKxnD1DuvowAxfyyfnA7iIeBShyWCUx2A fFw/9JHn32bHEJrbCeK1StNa1YLuGVPblssgYU/22J6goDwpS+HeHLKPaKQEok/6Im7x Byub8qop3LlT6IRUwqaDlGsv5d40lNX9rtaD1AK7kxYMZQPdx8NsfhkpjoN+Txvp3c7r ECECxku9q7+Gp48LvOx2rTQqV53TY2Wo7M8tms4XfCBe0hl1xfBNK6sNGmADWL2oayFB Mg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3jfpdnrd2e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Sep 2022 19:28:52 +0000 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 288JI54T036616; Thu, 8 Sep 2022 19:28:51 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3jfpdnrd1m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Sep 2022 19:28:51 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 288JNUuO011438; Thu, 8 Sep 2022 19:28:48 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma06fra.de.ibm.com with ESMTP id 3jbx6hw72v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Sep 2022 19:28:48 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 288JPDSv33423776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 8 Sep 2022 19:25:13 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 36CB4AE045; Thu, 8 Sep 2022 19:28:46 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 87EFDAE04D; Thu, 8 Sep 2022 19:28:43 +0000 (GMT) Received: from linux.ibm.com (unknown [9.145.32.24]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 8 Sep 2022 19:28:43 +0000 (GMT) Date: Thu, 8 Sep 2022 22:28:41 +0300 From: Mike Rapoport To: Dionna Amalie Glaze Cc: Dave Hansen , Tom Lendacky , Mel Gorman , Vlastimil Babka , "Kirill A. Shutemov" , Borislav Petkov , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Dario Faggioli , Mike Rapoport , David Hildenbrand , Marcelo Cerri , tim.gardner@canonical.com, Khalid ElMously , philip.cox@canonical.com, the arch/x86 maintainers , Linux Memory Management List , linux-coco@lists.linux.dev, linux-efi , LKML Subject: Re: [PATCHv7 02/14] mm: Add support for unaccepted memory Message-ID: References: <20220614120231.48165-3-kirill.shutemov@linux.intel.com> <8cf143e7-2b62-1a1e-de84-e3dcc6c027a4@suse.cz> <20220810141959.ictqchz7josyd7pt@techsingularity.net> <2981e25e-9cda-518a-9750-b8694f2356b5@amd.com> <984e07ed-914f-93ca-a141-3fc8677878e0@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: nN1RgLu1rMJ3m3ZEc6DjIOZxZ6m46gbw X-Proofpoint-GUID: lBIoRw29rMgak1wV_9EoP1zBzLH4qjei X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-08_11,2022-09-08_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 suspectscore=0 phishscore=0 malwarescore=0 adultscore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 clxscore=1015 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209080068 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 08, 2022 at 09:23:07AM -0700, Dionna Amalie Glaze wrote: > > > > Looks like the first access to the memory map fails, although I think > > it's not in INIT_LIST_HEAD() but rather in init_page_count(). > > > > I'd start with making sure that page_alloc::memmap_alloc() actually returns > > accepted memory. If you build kernel with CONFIG_DEBUG_VM=y the memory map > > will poisoned in this function, so my guess is it'd crash there. > > > > That's a wonderful hint, thank you! I did not run this test > CONFIG_DEBUG_VM set, but you think it's possible it could still be > here? It depends on how you configured your kernel. Say, defconfig does not set it. -- Sincerely yours, Mike.