Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp235231lqs; Thu, 13 Jun 2024 08:41:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVq3t7/i7jPXgMPWWTi7bhbe1ZdDrNz1wbdhqrKuao0qKyN3nAWVayGi3Np3Zus/ghV2WaC+2g+XTaMiwmx+fX4fs+WdQYL1cJb818efg== X-Google-Smtp-Source: AGHT+IEi44Xe9ygUDW6g5nNZaiU8ju9Bf1e0JPlF0iSEBZ/PtB174G6Yu6u3VjXTBE5JR+qP/AcG X-Received: by 2002:a50:d797:0:b0:57c:628a:1759 with SMTP id 4fb4d7f45d1cf-57cbd696acbmr136259a12.8.1718293281845; Thu, 13 Jun 2024 08:41:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718293281; cv=pass; d=google.com; s=arc-20160816; b=XzICnULZWXrIZMxhTqr5hOcMVInioKrOhIGWir+Kytf6Pxc4gBHQmeEB0j0a5zJIuN 4Dp7u92i2McDq6LQarmydE9n+rxBG/f6konPx4UW3x+qYN6lemlIgraHWcykpuCsnw9K xAe7dbIICuXc/FQBdi/n8FKtIYXG3+a1nnhdeAVGwLZYOXJ6olwIiY02ngA5P4ZbmQ/S 3100Kxx8VYmHAf4TgAvmNdnyP6zpKqWuK/RAvYukio44dm72yONOnA5dJAyYwm/tVGm6 +NgLT7zYWjvry8tahZlehYzoSHfPDnaLKlolJe5YdTUzwPxT2qvvIwVqfogXF+zMszqR JYzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=A5/DP3QFUFkYA2+5kJImY20b3CDMSHPGwimqBdu525I=; fh=TQATEbdDZNcnk8L2eDP6eFL9HlexFaHIexhR1TH2IlY=; b=CSGHp5wFbI7O4oaH4957cAq5fC0yrczIF2lFPg+zj0j6s+7I3AJXK3wBy8+f+Pne8b 2yQ20MT+iiS4aqQo3wFpm4ejUo72qMnr7K0w3JWDjVzMiOe0wDrq5n/QS//pv7Ftmepj jYi6qz3pXY7CQS7e5O8wki0jq2GXplkQSuWcsXzGp6AfgWPYrYahEpscE/LuUm+nc5OV mXR/8ifY0Q6jKKgFzBugfD3QeyzQwCe9MPflfiaB6JpHjDf3Ne8fzGLdH2s/oWRKVD1p xLHNrvAX9nNPxIoVYCR4VdC6uD0fae+6ZbxxfO/LGjns1ea6GdxPv9nVdR4DhQM27IlK voaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=KekhLxm6; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-213561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb7440924si819797a12.347.2024.06.13.08.41.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 08:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=KekhLxm6; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-213561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 90B501F23DB7 for ; Thu, 13 Jun 2024 15:41:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A349514A4F3; Thu, 13 Jun 2024 15:40:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="KekhLxm6" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2033F12DDA5; Thu, 13 Jun 2024 15:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718293211; cv=none; b=Yj0GZ8Z9iSA0v2sDqzVT1MJYuohW4ArIR/Og5vQ5agskqSaYFmePiUQg5vRD5KeUzBKPj8WkKhTmLydNBQKAjWN1A8+c0s+LmF8qh+FKN+eY3Apq9W+1659kImqR4DICXm0OaJCp6OI3/kL09WW1uXs1cstX6HuxfWHMuldfBsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718293211; c=relaxed/simple; bh=ipboqkWhb6x2P07CojXkYZHcIzuYK4vSYa18Kijv0dA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WvMaODpaJ4U6GNc1gosP/ysZuUy3NlMklo7Vwj5neSVAp9fpvc1hBJkysT9BKMqK7MIO/x7fSGIjseY6WocvybcgwiQKSDdjJnCvVHuWqDfsjzuMfkT0twlazwkJ7w0H29R9Iwe98/pR8IqFk2+JPlAiBDQayVJEoMdhXAp3gsk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=KekhLxm6; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45DFRYAU002831; Thu, 13 Jun 2024 15:39:43 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=A5/DP3QFUFkYA 2+5kJImY20b3CDMSHPGwimqBdu525I=; b=KekhLxm6CVvtnSZX0z6KEtIvwm8ZR OT4TfI8b0Yz+YP1+eMehz0iel4LBa66ZWdC4Cy5p1zs3+3+XgiXXjE3Pfel6eBOC 0RT5hKQF9xOGJwyPEpcPUS9htQtys7eI/X+waWmpVSeKhjqE1QIEQi/0nmkU37/B I6Sa9bLL7XjT3svhFM+kMEZwVDLzdjIkSig9jGxyyuF4P3b73Tkv4Hayw+PadE/O DaRWLXwZmwdJlTASuCqhoGhFKmrWMKlzfYKD+0HggTRyPY90G0mPDVnIH1SFBvHN mgDVNAnNbdYTcu4wO4DC9WWlwTgGSmKa9/uir8GRHLRv9TBeyM4OQ6wNg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yqrw11ymn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:42 +0000 (GMT) Received: from m0356517.ppops.net (m0356517.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45DFdfuc026422; Thu, 13 Jun 2024 15:39:42 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yqrw11ymg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:41 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45DF9UJu004368; Thu, 13 Jun 2024 15:39:40 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3yn2mq916b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:40 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45DFdYVb43385236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Jun 2024 15:39:36 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8819320063; Thu, 13 Jun 2024 15:39:34 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 12A2D20067; Thu, 13 Jun 2024 15:39:34 +0000 (GMT) Received: from black.boeblingen.de.ibm.com (unknown [9.155.200.166]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 13 Jun 2024 15:39:34 +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 v4 03/35] kmsan: Disable KMSAN when DEFERRED_STRUCT_PAGE_INIT is enabled Date: Thu, 13 Jun 2024 17:34:05 +0200 Message-ID: <20240613153924.961511-4-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240613153924.961511-1-iii@linux.ibm.com> References: <20240613153924.961511-1-iii@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: ohH4Wf6GBU_oLonoZfUiQF3dUEI7gZ3l X-Proofpoint-ORIG-GUID: WaDxr-0abG3R8ki6jMioCFv3al33-FAR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-13_09,2024-06-13_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 malwarescore=0 spamscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 priorityscore=1501 mlxlogscore=999 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406130112 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 b4cb45255a54..9791fce5d0a7 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -946,6 +946,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.45.1