Message ID | 20240619154530.163232-17-iii@linux.ibm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 258DAC27C53 for <linux-mm@archiver.kernel.org>; Wed, 19 Jun 2024 16:26:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A0DA98D0082; Wed, 19 Jun 2024 12:26:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9BC958D0066; Wed, 19 Jun 2024 12:26:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 835FC8D0082; Wed, 19 Jun 2024 12:26:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 63B3C8D0066 for <linux-mm@kvack.org>; Wed, 19 Jun 2024 12:26:37 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id E5430A13E0 for <linux-mm@kvack.org>; Wed, 19 Jun 2024 16:26:36 +0000 (UTC) X-FDA: 82248166392.14.B955F53 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf04.hostedemail.com (Postfix) with ESMTP id AD4A04000F for <linux-mm@kvack.org>; Wed, 19 Jun 2024 16:26:34 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=oaI1BWLm; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf04.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=iii@linux.ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718814385; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=MbSV/0QgndyxPpucafkqjoUk93XB7CWZmEyrMAmxEI4=; b=ZIo/5/MV/Wv/OkvdlicQuT8mwtiT/dcw4M43WI1O1b5uS7KwcFW3QxUGzuid0r4N9GCPzy 9zCLa+9HXMHmJahlDGKKG7zBE6cSrTnhLCH/dmUt2L7ByfKyBOIspIwVkrcQGllsa6qgZu 8rLocQx4nLJSsN8DXunjsLadX1FA1yg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718814385; a=rsa-sha256; cv=none; b=I+UZ0+lN1H0Bqmn8WPXuxOfjUWfLK8EIdIRHD3YGrFGhx73ZjSqcu7yUIO5CcHLtt44rcj 7NaBCAnmrufW4WnsV7QllCWNxbLTlOKE8U2cknFn67+oBf7/hIbskjiaVKamsDpIih9T+v y2XSqm33/u7V7bQRxio8C8nR2Lidjkg= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=oaI1BWLm; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf04.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=iii@linux.ibm.com Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45JCwmVF011453; Wed, 19 Jun 2024 15:45:47 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=MbSV/0QgndyxP pucafkqjoUk93XB7CWZmEyrMAmxEI4=; b=oaI1BWLm0ml9p6BNsoNLQN8Y0RG6j RRGxx2ZL516sQoAicr68GnNOFCbCsnckbNy40YhEe28tjVv01DGqDEhS2a/I3AlM VHLJpqdpvKDzR5mGWWpE3HUMqjbGx0uOMjzdSiE1S8FxrJKpwe+PTqsaUgMtHReQ 9iS2GGn1Sp+mjXlXgPzLc4sbuOFukf4kfmcuwgCUFcmHp7y8e9w4TcIydGW6CNwV zNPbYaNUeHcYn17f7oqYQh6BTR9SZynx2PsYQTo12dkiJsDeP/v/89islMU6A3Bh OalkGLab/QzD7at8/HN3afzzpShW5HAsTwpJW4KGDScuUn6FfFKgKwIqw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yuyt98h3v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:47 +0000 (GMT) Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45JFjkpC015380; Wed, 19 Jun 2024 15:45:46 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yuyt98h3s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:46 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45JEEYfH011022; Wed, 19 Jun 2024 15:45:45 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3yspsndtn1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:45 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45JFjdqf33620576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jun 2024 15:45:41 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 721292004E; Wed, 19 Jun 2024 15:45:39 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2345A20067; Wed, 19 Jun 2024 15:45:39 +0000 (GMT) Received: from black.boeblingen.de.ibm.com (unknown [9.155.200.166]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 19 Jun 2024 15:45:39 +0000 (GMT) From: Ilya Leoshkevich <iii@linux.ibm.com> To: Alexander Gordeev <agordeev@linux.ibm.com>, Alexander Potapenko <glider@google.com>, Andrew Morton <akpm@linux-foundation.org>, Christoph Lameter <cl@linux.com>, David Rientjes <rientjes@google.com>, Heiko Carstens <hca@linux.ibm.com>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, Marco Elver <elver@google.com>, Masami Hiramatsu <mhiramat@kernel.org>, Pekka Enberg <penberg@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Vasily Gorbik <gor@linux.ibm.com>, Vlastimil Babka <vbabka@suse.cz> Cc: Christian Borntraeger <borntraeger@linux.ibm.com>, Dmitry Vyukov <dvyukov@google.com>, 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 <mark.rutland@arm.com>, Roman Gushchin <roman.gushchin@linux.dev>, Sven Schnelle <svens@linux.ibm.com>, Ilya Leoshkevich <iii@linux.ibm.com> Subject: [PATCH v5 16/37] mm: slub: Let KMSAN access metadata Date: Wed, 19 Jun 2024 17:43:51 +0200 Message-ID: <20240619154530.163232-17-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240619154530.163232-1-iii@linux.ibm.com> References: <20240619154530.163232-1-iii@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: X1A64wlGihlD-vkt6OPN4QbqSNyzZDYi X-Proofpoint-GUID: QwrJ4a0sDZe-t-98SqnNYovNNBktH9kb 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-19_02,2024-06-19_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406190115 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: AD4A04000F X-Stat-Signature: dh774weur71ox378yu34esiam1izyudw X-Rspam-User: X-HE-Tag: 1718814394-522309 X-HE-Meta: U2FsdGVkX18LFsf0gHSDblpBeU7xSpFAm+7A88qCGymJUP6mPgM+SdGwz86Wt6Ouf3mCjjHbReInBMY+GvrMRKNYtiqZ1mcwTbM69tNuUO70xQr5fSEB0wACGxk3bkrB7VUZA2cq8GsL5EjEYKli//6bdPdLUx/EigLLOGyFk9e/9BCOccFaCDcFVaekAEtdLsuytWxdBDdfPjJc8Qu6pjw1v1BdopPQPt3ssEWMNgao1q7QaJtJII+FowppatlLbbVdfXbeCtZ8iA612g9xp3fTvij4cabG+9AfA5DthSPK+aJo2pKs317Z3RW71W3I93ZyxBN4qhbegTZ0V1NocxYwN6404srz6g6MyMVJnjK2t6yG49JNjlbZSzZ6i4eMYKT2ygQjTK1IC/Dzf9pFHUjuGwTG4VYaY7eAGsoZRnkEBimz2fnkAz/fiYHA/V3UD2NKzD4Y7pDH9q3JR3QCRHBCesLKwn2V6RvmITo4DZl9YlCKsubZ/0mvOVMl0t4lBJQvGcCEs6rnifFH5Q4HfnGedis2OTGglEXxkONMoTW48s8kNcwE6R91IlJB9kXLjcImsi9FsxVcAdJtiP/0/QSv4Q2ey/z2MMrs7hSQVyMGoUT2Be0tiPdwSSPi1LYc5JBmDiD8d33CQhZNDQkHigA6XxhWhVNn2GCLTf3gvrD8pgpgz261TWR12NUuASIJ6tq1+Wc8x7kIXtLYUDfYRnJo62KqYQeBXezJZ4vE/Drz18Z4n4zXmeLemM4+xtY38AdTUrb0a/W/wb4KYxSOHA1jgVSkzwsNdKn/yfhoaOHRlrtMTIgdGieLcWTl2MUUpjK5e9jcVtN9nkCav3AqSklNtSD3jEqK5riRf2ZZLiENf+E3y05Ulm/aCw9fmS0FwZfOg582ZVdE3Qluk5jU2udmXD9DOuZ6jQOsFJRsrsz/2jbWcwwCwXnZf6uogf2eF2nzOfxfCq7QiTSzi0A QTgQlCQz sdlxNfOLW4obdGkRZfKGWRdn85uTTnsBh3kE4j3hrIfyL23Wek2LwZrzSGqrw5L1aCF4uxvPRCnFNDFrEtzIwzTFXCE2Ay1D1CWN3qQtZ2jOr2H9WrBOKICnd91/TmA8e4fKr51l7p8fuColovJxomaBAH3D+gxmuuEIUIEhsJYqKZMaq7RUeFE8VdXaKW4/Q3e/u8AxrwBoWfJE6Mz0pvz/wRtyN8D2TkwsCTlDhUlrs4q8rYdhHG6A77JpLJ7s8sVMV1TxbNQkhbvZWK0nhnGzLOQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000006, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
kmsan: Enable on s390
|
expand
|
diff --git a/mm/slub.c b/mm/slub.c index 1134091abac5..b050e528112c 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -829,10 +829,12 @@ static int disable_higher_order_debug; static inline void metadata_access_enable(void) { kasan_disable_current(); + kmsan_disable_current(); } static inline void metadata_access_disable(void) { + kmsan_enable_current(); kasan_enable_current(); }