Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5654093rdb; Wed, 13 Dec 2023 15:37:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IHo5RTFrfzNIR1eFa2BKSEqcklh9HuUm8qKRKARBh18Fb7rQX9+gKxPnV1da62rAznXtz60 X-Received: by 2002:a17:90b:2792:b0:285:8d5c:9114 with SMTP id pw18-20020a17090b279200b002858d5c9114mr6237044pjb.19.1702510640592; Wed, 13 Dec 2023 15:37:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702510640; cv=none; d=google.com; s=arc-20160816; b=ixvSUFSGFsHZeDjLpgruz50r2UaakqU5+BtKH2k5HL6RH92oDzOHtNnQ4xLfVcN0Vh +Darnsff7OjyDRdNiu52afgUaEXfcCprMhdYoO2t3drZ2dYHBmJjF/kM1yMTvhkJ+pQI hhzvy5QWYJ401xgyjKEo0z05Vs4wWIr6btf0/JEN1cHvtlDxGofEzBEI40sdlYD3DPky jkw/ANa/B6KNAxWrBmTVa3ct2zdPGge0A3AktQOIB6imkF4yFSIiXsQf3t9e3MeHqWUQ ey3/WM3yE2kcgQmTEfjDty3cnNQlfXkQrM2mgQ/c4YQtkRtfvbH4ObP8zndy+4Clli6e YrPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Z5O8Oyz1u5coxJjuRobnuKDvdBCO6+4EcuvOmOBBFBE=; fh=TQATEbdDZNcnk8L2eDP6eFL9HlexFaHIexhR1TH2IlY=; b=iVnza+M8JsxUXAOkExhlbJrD9Kgks/LGDnjDVPACZKqLHtr0FlfivlwWcTqD8R0kis RCas4JiFuUzzYNZBSVILFhnLw/O0vWlO1JIVuZcrcgh18eNB5xfA2HxoVcj2Q+a1vFPH hrI/ldzqF247KKDfHWwaxlaPsGTfXlV6rqLV6YNWZwWvBA4Ewjk3Gy9GoklUNqQtQ6PD W8xUg+eCcYT2vuceoxjsAJNUR/UeHGdhWmRjWoNnT1ma8OxP1JD4LYQzDQD3VBMmGf3r +RYbAnzt7bUbSUWeVw+6hpexk4pykKmH1JulAyM4zv00IaojegCr01KUMXe+TDLxSFpV 66Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="mVY/9tD0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id mu16-20020a17090b389000b002858ed80acfsi11805896pjb.131.2023.12.13.15.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 15:37:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="mVY/9tD0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C58C9802D2AE; Wed, 13 Dec 2023 15:37:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442666AbjLMXgh (ORCPT + 99 others); Wed, 13 Dec 2023 18:36:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229698AbjLMXgc (ORCPT ); Wed, 13 Dec 2023 18:36:32 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C1B2DB; Wed, 13 Dec 2023 15:36:39 -0800 (PST) Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BDMSDm6011159; Wed, 13 Dec 2023 23:36:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=Z5O8Oyz1u5coxJjuRobnuKDvdBCO6+4EcuvOmOBBFBE=; b=mVY/9tD0qao6kNBtKqn9TUpP/Mlu81LrQKVFhkU0DXDZPFNYUjbAWRSKsO36Fs5Wo4SE zT3kB8AEr+PkNkze5VIoEl0cQX2IMQS10Lho8+qsBonJJcmEoM6HLDOPAQ0mC5Jm/1yk SrDWxeUF9iRevSz954heL4LyIjAX2VPz3McPhhqq6/+tVRbWbccRND3l2xJNEn9DbZHY lekIT26VHEA9pPyIPZIF4WSx/0d7pGtuJgstH0ILxEEPC5sBeIXiNVWdbr17PmlSArI7 grcocZyVP0jq5tFizaOnsKS9+8zI0FgBDQI0Y+Od9YwB6OP2Yxo4iisWFcr2FdGe/l65 dA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uyne615w6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 23:36:19 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3BDN8eed015721; Wed, 13 Dec 2023 23:36:18 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uyne615vn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 23:36:18 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3BDMmrRV004390; Wed, 13 Dec 2023 23:36:17 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3uw4skm9v2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 23:36:17 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3BDNaEqH35586432 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2023 23:36:14 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AC49420043; Wed, 13 Dec 2023 23:36:14 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 41DEA20040; Wed, 13 Dec 2023 23:36:13 +0000 (GMT) Received: from heavy.boeblingen.de.ibm.com (unknown [9.171.70.156]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 13 Dec 2023 23:36:13 +0000 (GMT) From: Ilya Leoshkevich To: Alexander Gordeev , Alexander Potapenko , Andrew Morton , Christoph Lameter , David Rientjes , Heiko Carstens , Joonsoo Kim , Marco Elver , Masami Hiramatsu , Pekka Enberg , Steven Rostedt , Vasily Gorbik , Vlastimil Babka Cc: Christian Borntraeger , Dmitry Vyukov , Hyeonggon Yoo <42.hyeyoo@gmail.com>, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Mark Rutland , Roman Gushchin , Sven Schnelle , Ilya Leoshkevich Subject: [PATCH v3 03/34] kmsan: Disable KMSAN when DEFERRED_STRUCT_PAGE_INIT is enabled Date: Thu, 14 Dec 2023 00:24:23 +0100 Message-ID: <20231213233605.661251-4-iii@linux.ibm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231213233605.661251-1-iii@linux.ibm.com> References: <20231213233605.661251-1-iii@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 9rPRRruputKRP1BekQQbFplEPzlvd90M X-Proofpoint-ORIG-GUID: W8Hp7aCZKiJ8ZMAB_wKYIX6dD5FMb6mj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-13_14,2023-12-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 clxscore=1015 malwarescore=0 mlxscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 lowpriorityscore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312130166 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 15:37:14 -0800 (PST) KMSAN relies on memblock returning all available pages to it (see kmsan_memblock_free_pages()). It partitions these pages into 3 categories: pages available to the buddy allocator, shadow pages and origin pages. This partitioning is static. If new pages appear after kmsan_init_runtime(), it is considered an error. DEFERRED_STRUCT_PAGE_INIT causes this, so mark it as incompatible with KMSAN. Reviewed-by: Alexander Potapenko Signed-off-by: Ilya Leoshkevich --- mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/Kconfig b/mm/Kconfig index 57cd378c73d6..712bcf5f1d20 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -985,6 +985,7 @@ config DEFERRED_STRUCT_PAGE_INIT depends on SPARSEMEM depends on !NEED_PER_CPU_KM depends on 64BIT + depends on !KMSAN select PADATA help Ordinarily all struct pages are initialised during early boot in a -- 2.43.0