Message ID | 20240619154530.163232-3-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 39089C27C53 for <linux-mm@archiver.kernel.org>; Wed, 19 Jun 2024 15:46:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0F1246B02F1; Wed, 19 Jun 2024 11:46:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 02B7A6B02F9; Wed, 19 Jun 2024 11:46:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B74C86B02F6; Wed, 19 Jun 2024 11:46:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 7FC3C6B02EB for <linux-mm@kvack.org>; Wed, 19 Jun 2024 11:46:01 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 29A111A07FE for <linux-mm@kvack.org>; Wed, 19 Jun 2024 15:46:01 +0000 (UTC) X-FDA: 82248064122.11.BDEBEBC Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf15.hostedemail.com (Postfix) with ESMTP id CD13FA0017 for <linux-mm@kvack.org>; Wed, 19 Jun 2024 15:45:58 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=OWZMRIJe; spf=pass (imf15.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=iii@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718811948; 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=v73BMs0EqfMCwxJniJdo3jdaknlggr5A1qJ50X9w6PM=; b=vq9m81QtMR/o3DvWPrKciioCSE3CIyW/F0O/c14NkP33gOfnkWz+NZyL900Img4/sKVwWB A3FbSBQeWNBd4RIwc0XFmuD9Zw7Krfb+Gwl0ffDzS9l70aI/8T2HKx0t1GG3Wn4fuebi8r n3O8RY1mfwEc4KqOqUXTXVdSTfTEyJs= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=OWZMRIJe; spf=pass (imf15.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=iii@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718811948; a=rsa-sha256; cv=none; b=N4ekjEN4GUqAkxgzTZLIobYyVF2UI/tavTvcKDD8iSnTFB8jWT5LCGs/i2qPLNPhMPj8tk AnqqhPZzSfvdNULei8b1MBaGwPAYTxGxZEQfb3lm3AcA+F0stAZDyYAx+O6WIQZH72m75V yUzrBe3FdcyPBr0BM4vmDvr8YaAQFHc= Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45JFStjf014449; Wed, 19 Jun 2024 15:45:42 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=v73BMs0EqfMCw xJniJdo3jdaknlggr5A1qJ50X9w6PM=; b=OWZMRIJenFRKIXmoBsRfNNP/vqp7Q VM8KqR8viA6gB03Z0/Q/r/WFLzEA0oIP+pgzQBhH8aPTz03JO2OT1izE9Y/YeC4H 5yOOfP4yKLyMyDYvKVt93hzBdcnagHwBs9V0vQudfdeud94G+l/+2C+PWN4Po96P L7Im13oCt4hAgVAKCiI1mRrnboV/5UlIDOd+4ZYVp5aLQb/Tv3RmdyOtAeLejhFi AvQ6QuNIWNQipP12mMRFoOGKUStlND7JUnvEaak2/8pM1oDofllGqqL2FmbiAq/M bK7puXBZafHowT2ZhTbmEAw1laLGmwpcwsGiASW7GYzyo0a/ekFv6ulAQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yv20gg1fy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:42 +0000 (GMT) Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45JFjfNR008972; Wed, 19 Jun 2024 15:45:41 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 3yv20gg1ft-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:41 +0000 (GMT) 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 45JEuVWH009478; Wed, 19 Jun 2024 15:45:40 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3ysqgmwmkr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:40 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45JFjY6D42205454 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jun 2024 15:45:36 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8AF5E2004E; Wed, 19 Jun 2024 15:45:34 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3A76020049; Wed, 19 Jun 2024 15:45:34 +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:34 +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 02/37] kmsan: Make the tests compatible with kmsan.panic=1 Date: Wed, 19 Jun 2024 17:43:37 +0200 Message-ID: <20240619154530.163232-3-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: RWsOexlj7_0iWLLyvnapnr06durS79vv X-Proofpoint-GUID: gZnZrvku0DfDeUyU90WAlNuPdsXG4CTD 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 spamscore=0 clxscore=1015 impostorscore=0 bulkscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406190115 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: CD13FA0017 X-Stat-Signature: t1fr4wuuiuhmz3am9unfyy3d34mcn6b7 X-Rspam-User: X-HE-Tag: 1718811958-348145 X-HE-Meta: U2FsdGVkX1/Nk9CIhF1QJ31LkjPHP4San5uvvAMUMQyoG1Xf+sCI1euudOg8bvNDp8bll5RVdRd6fI7cfgOvM8IHyWXhqHkf0+aPWbXp3JTsarXOXniznjS1gIMo4KYsss8yqp+R33ISkTBhKR121buin3XfocEdqYRrP7qVDuaBts3OVcO0LLADpJj27VvasdOHZhJw8sVPDUQ799i1T9q3AvMDFjhGTwYvFPZjk4uxuqKDrRRqPOgxwPn745RaUg+HTlwPAsKRBn7jb5gaQcquCjpA9a1uoZ+RA7W3DGeVB+5/uinA92/kofVYAKKu1ivS8zt6WzDi3AeQYpebH/Zf3JtrfdiuhKsqmRSpAt4GzxbnMybIHuz+EOVvYEch9vNjAiVGQEuAk1yNcvek7O+xyHyZFik+e2zZoQP13kRv4nns70qCZw/V+4t2TghMqhuKsvi3kzSaqI94pZcXRYIJfZ88QmN9J4cTlyaZhSSTAANRIsdoZgdIbl9WnDuPiF+cszUgH3h41EquvNpwdQ5tpCoiWXi6+hAnqN4N1R/dlSxYOsd5BQM00vYy6sO/81aaAgEizBWOLvXkkRFGEeWDI2gVKGlC/xvrW5n+3rvlo58JJqQ3HyYX1ws6PriPqQ5HbEvwyzj0HYycvcSYAWmj25uu9djMU+od2t+x/Cri203UYkzsxqyIsATtUYfeVWBpXwd6zWGSE6lFOMejSWx11oyvlWPqa1qjdrbOBqa4ePO44zUccEh6dxAFXeYkGiZQSdiqAneMds4jrmSYk4ip+DYd+21GPkMU3V7hZDMFLKbvtbyyEH1ZMnJ0n7PxjyZccNk5FxFQJWHezSwrvEW0gYfi+a6bAy/TQZJF53DrcdJ0OtpYdsEDWsBo+GzdMu8zReHlXcf70LngMPjE8sBXCOD0pAB1RgAor09Ye8rEmhH3HiNqxszeQvHOxol15YqAcFyrYBPetUntGkl O82wp83/ P8yQDgZVwNjKHsruRyzO+fzFT6D4LUVlR0cSInpRgSFYJ8jTH3P53WZjwhrmPBs2XEJKGyjllHUajDja14XBRrgkp7nP/vIcjoPzQL3K+DpiFdqDgn1QwskygHLrZKPV5lrw+z3VjBdvPOD7H8a2IYyFS5Y6KDOU/s3ZMF0O4Ds75Wt2ZGJ/dcXFOJhVpqrn0ID+f/7Om5EWiLN8suRWft/RqsCftp0U//uAOrmmHq8tKHrateI1v2nte/G6zFO0UV/aC56/AkEnVOfugyb+NA1Bd5AYOcW+98AAEeH7rm6nJzzcpPfu/s2ouStYADvbIbdX/oB5XcqtQBSY= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000026, 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/kmsan/kmsan_test.c b/mm/kmsan/kmsan_test.c index 07d3a3a5a9c5..9bfd11674fe3 100644 --- a/mm/kmsan/kmsan_test.c +++ b/mm/kmsan/kmsan_test.c @@ -659,9 +659,13 @@ static void test_exit(struct kunit *test) { } +static int orig_panic_on_kmsan; + static int kmsan_suite_init(struct kunit_suite *suite) { register_trace_console(probe_console, NULL); + orig_panic_on_kmsan = panic_on_kmsan; + panic_on_kmsan = 0; return 0; } @@ -669,6 +673,7 @@ static void kmsan_suite_exit(struct kunit_suite *suite) { unregister_trace_console(probe_console, NULL); tracepoint_synchronize_unregister(); + panic_on_kmsan = orig_panic_on_kmsan; } static struct kunit_suite kmsan_test_suite = {