Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2856592rdb; Wed, 15 Nov 2023 12:36:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/UrEHpcY785syA/I7ErZ7Z/9UCbCP0cJ3HelFEGCxaKZ2V6RgzuFfeR/juVJ3norNFzp5 X-Received: by 2002:a17:902:d4c9:b0:1cc:4598:6f46 with SMTP id o9-20020a170902d4c900b001cc45986f46mr7323648plg.57.1700080576016; Wed, 15 Nov 2023 12:36:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700080576; cv=none; d=google.com; s=arc-20160816; b=R3e5PyaZN6+6My5h6ikQ0gWr4l+EBEXEL2aZi8oDdnETnSyao8nDtjaZilL0PUuzEb 4qHSahi5bxWA+yKkj2mPo/BetGcY7Tl+zU8cI5aU+N92iEVk1E5fkzsC2qu7czRJpSge tqlDb0b6AYDO4uB7OAvgpLU3txK/uAQlv2Yneuqk4P/9oI5F5OKTo1arBpnDKdVsd7oZ vkzUmmul2eUX8CIFP3IXubpWhx50rUUBCIYnJKX9/sPeA3Hh9ln8TK0kBBQ2t84t3ooZ xegGotHJQpk2l1SWetWsn4vtiPMUEmHenbv2J9WfFpQYzjSA2ZUEnvJiM9jUPgeJEse4 U7wA== 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=bBfIBy0C0Xw8EuCg23xxzvNunOkz3EZNldxDrxgTNMo=; fh=Mk/+hh3KXEiY642GJit3QcoQ60j/OUZTCvigu+jTRuo=; b=mmz3stST9AymwzhWbUmE0sl8AVyDDx2YWLiSNZ3+o4HT2SjePAA5KgDwb0xqAthJmv Y989lmRDs6Mp0zZ7P/MZUmEJKVipJsXjSz50t0yKo/jcl5JfL5BzyNVwCp2K68Od3xL3 QhNmkcVGt09WkUx3sESUjWTULVeNVSXqSRO2LmrW6Ollawy18VyoGqID+8RUJQ3lEo6x ej7dYSFqYuIzgl5EhZsixQQIJRfJpzUxQZLQ5crA79AHUwuk3Oy/mclYjczY738ps/1l GdgseFL59hiMlgLYy3++W4HDrxWejEaosiTJDtxeaS6nNKrjUJE8oCHvI2XKGxciUchr 1lag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=GcIR3b9q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id g4-20020a170902740400b001cc411b53f4si10200808pll.106.2023.11.15.12.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:36:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=GcIR3b9q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id D9D3C80958B4; Wed, 15 Nov 2023 12:35:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344465AbjKOUfM (ORCPT + 99 others); Wed, 15 Nov 2023 15:35:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344503AbjKOUex (ORCPT ); Wed, 15 Nov 2023 15:34:53 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5E27D7A; Wed, 15 Nov 2023 12:34:46 -0800 (PST) Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AFKTdTu023075; Wed, 15 Nov 2023 20:34:18 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=bBfIBy0C0Xw8EuCg23xxzvNunOkz3EZNldxDrxgTNMo=; b=GcIR3b9qPeac7WzhIHY1tOWA+a4hO1PVKipZwXPR4CAn2T39/XdAVc9kz06CT3gqX+TO yF9iZJ3yd5tJTDsmxzTeGgWU3Bn6brdgViqtIl0EQeeLNxDaubFtf95DME4cNzOpAEhk H8lAePfq/6yFH9oycjnA7J5vV3mgfh9H/Oc/rEMFgPBcgeOryO8yqDTzJ9Xsvhm5oxjf UDVupHQhHjkzHdB6PZJPCyOmuQ1Qj7yUDEo15DNVLN63vK6sPBNH/RhRV7I9ZDnzEic2 SsSezWzDNtlMaJV/1aKY2q1sjyTG54Xh4pYPd8/Ipn8BIo9LxqOwUmpIj6fhrHWBMcKF VA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ud52r8439-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 20:34:17 +0000 Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3AFKUIq6025708; Wed, 15 Nov 2023 20:34:17 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ud52r842t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 20:34:17 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3AFKIuWO010012; Wed, 15 Nov 2023 20:34:16 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3uakxt2ds4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 20:34:16 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3AFKYDek36045198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Nov 2023 20:34:13 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6A6AB20043; Wed, 15 Nov 2023 20:34:13 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1E0C020040; Wed, 15 Nov 2023 20:34:12 +0000 (GMT) Received: from heavy.boeblingen.de.ibm.com (unknown [9.179.9.51]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 15 Nov 2023 20:34:12 +0000 (GMT) From: Ilya Leoshkevich To: Alexander Gordeev , Alexander Potapenko , Andrew Morton , Christoph Lameter , David Rientjes , 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 03/32] kmsan: Disable KMSAN when DEFERRED_STRUCT_PAGE_INIT is enabled Date: Wed, 15 Nov 2023 21:30:35 +0100 Message-ID: <20231115203401.2495875-4-iii@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231115203401.2495875-1-iii@linux.ibm.com> References: <20231115203401.2495875-1-iii@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: JtgVFaj2CSjsbY-bGnFcv-BeNZNtZKL1 X-Proofpoint-ORIG-GUID: N2Kt8m8mfRl4GRFRsl6eHtmaF9f4tvzv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-15_20,2023-11-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 phishscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311150163 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 12:35:39 -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. Signed-off-by: Ilya Leoshkevich --- mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/Kconfig b/mm/Kconfig index 89971a894b60..4f2f99339fc7 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.41.0