Message ID | 20240613153924.961511-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 790C4C27C75 for <linux-mm@archiver.kernel.org>; Thu, 13 Jun 2024 15:39:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A90C6B00A4; Thu, 13 Jun 2024 11:39:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 71C2F6B00A8; Thu, 13 Jun 2024 11:39:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 40A826B00A4; Thu, 13 Jun 2024 11:39:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id F1D636B00A7 for <linux-mm@kvack.org>; Thu, 13 Jun 2024 11:39:51 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 6BF3E12018E for <linux-mm@kvack.org>; Thu, 13 Jun 2024 15:39:51 +0000 (UTC) X-FDA: 82226275782.10.42F08F4 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf13.hostedemail.com (Postfix) with ESMTP id 3F1D920007 for <linux-mm@kvack.org>; Thu, 13 Jun 2024 15:39:49 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=Xg3HEhtN; spf=pass (imf13.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.158.5 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=1718293188; 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=rLYOBoT1cmvol8BIp5Z+O4p/9c8Bb1BGIHNBBlAUYnJ1A31bj3rkOBLosQWZHDZomMhY/e HWBY+YKs7N+tuUs4gT6Pudv4kZwoKK4mmn/+m0SifqHAPKtYbxnKSckmOJWomY47w0sU0v cFrZ0RDBOmm5jMc04Zub3/E6TyRFH5w= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=Xg3HEhtN; spf=pass (imf13.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.158.5 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=1718293188; a=rsa-sha256; cv=none; b=4IprNRAIEv8aXFnU3fxVJ3d00DwDNi1ZVj+k4WePQtp+ACEiwASLMQk+rm5Yvu+rLnXFaf 7gkBrVB5qeL4aOMD26t2+i7CkzlGzHm6K2RczxYtotNH5eWV5CfxYEi4TN3U97aVgAEVeo 0tdLcY4neuA4CzRl9hpQTVPLSjd5pqM= Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45DES8dv002382; Thu, 13 Jun 2024 15:39:41 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=Xg3HEhtNfw4Nggs6FgLxvW/orJyHi T4CAPSaP5Pa6GxF3CrmAY/YDBzM+/N6poCa64kZ4m1eRvOaDNa+6PDOJx01cljgS 8H1Bo49BayCQsOe7qbu2VBIQW5dYHBaaQx0hCdarYas8/M+CuOxe+iolWQQ/m5m/ ysqqDxXmJr32+PF98kbzTfRXDfhdH/6oc1hqSzApmH4O46EGRs8oyxQmvtf2H/3a 0u4AJvLKmryv0Xd8fmED/bGLURZwbVgznvYl/cO6VPkZEUtLxzSkc38j5X+ZziBo GfwnpgrrRBg1oW8OpE2RYv7ok8BEDtgHs3pvIu6J0dCtx7CdJDZ27+nWQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yr1rbgde1-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 m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45DFdeJI014227; Thu, 13 Jun 2024 15:39:40 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yr1rbgddx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:40 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45DEAZNg008701; Thu, 13 Jun 2024 15:39:39 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3yn4b3rk09-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:39 +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 45DFdYlL53281258 (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 F407F2005A; Thu, 13 Jun 2024 15:39:33 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 800F62004F; Thu, 13 Jun 2024 15:39:33 +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:33 +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 v4 02/35] kmsan: Make the tests compatible with kmsan.panic=1 Date: Thu, 13 Jun 2024 17:34:04 +0200 Message-ID: <20240613153924.961511-3-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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: CdYaY4n1sBSfG-XGjjLpn6owGrgb3SMW X-Proofpoint-GUID: Y8_1HwUsdyB2-FrEKBSNLoa0NfmRdcsp 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 mlxscore=0 malwarescore=0 spamscore=0 clxscore=1015 bulkscore=0 suspectscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406130112 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 3F1D920007 X-Stat-Signature: tb5oe9f1zdfyam41is9bqnd1hemnce55 X-HE-Tag: 1718293189-551634 X-HE-Meta: U2FsdGVkX18lIj6Ag2hxuXxVgmPHRZuPG/4EjYmu9+UZKfsnx48hWjgSUuJltk6+rc9eH84tEafG1reko0z4dmGcJwkEhgMNVXuCvAv76RyCBdFu+ZMcqo6WDisoqpXQpqonKkcthjCM2Zb2My4p6b5kuqDkz7whQRMapk3vKkIAxqllFjzVnBUWx2mtnzpExZrjdicDFJPK10H7soRt5HMPk6FKvfxyvxixJMy2IkJL5DXmOcqsW27y++JqdA659u1cLHKjUJVGnuALW8UNVjdB2lq2UFGSyCzL3NdBClGxL0arsPni4ayFD3dZ7R6eXSb3H5SQe7PLCCUSPVynbtBYB6dTaOBceMk/IyVA2zVxUxmFtM6sIRzP0p1omY+89HOvg9uEmkHy564Ncgt/H4iqavFKWQZG05GPKF6n0pnQ4BRoWb/VkigiMAeH+InEU3IXipCttbWPN4Nm3q0CNaMhyNSSDJbXyZaFVpY74+VdtsTn9cnliMlx1nj+ih2rhLpi4kLvn2wdxt/cRYTkAppMmbIh2P36It05Ph8tPrYAY5NGvFXrXYdyIq+GAvHpS6i8AdxOJrwmZwdG0Krt+yqK26foBUqdEl8qyA0unqIJYwyrpEidIlE0QQ1jDe5tSHsuEE7ntim7DjmktiqaZfVR8ym8xf2+8rkoMme1Zl5sTQL80MCctUoMmEJ3ffwATC+dLB1f8Udpc1LnjC2gwSTkoEarTFCnsKSk6+02ehdRDzYs4KUYVAD5YM6YGssdi8Xxp07XOPJz13mqoVJ66k4+p0denaJVEOE+cJnO4/vhKuR2Wsh1D8KM3i7+ZyNwGz5knOQN1ItVzxGvOCpk+wDFibf1yu960zMqivm4iCMmC15QyKT8FehxXIrGXp5/9c2EMwbXBIq6Rb/PPNTRRS6VYiNnOAjWobPlnANbIaSZYVdPX3SYtdCtkmCAw+0ZeNbDyLmoDCa6ntyx4HI SWTwv47s 3OUMbi6IGj1uWnBgUEf9ab3gZxu/GhtNbJH/mzkavOQZPaMQ2S2okYntcnLuUb6Zv67/DotNoD+QRp7Vw783VHu++ve/yQT9iDas3laWdO+/DpIacODnY9n0iv3NsupWlgtnDTbYCd9dAJ9K9n0jM23jfEjvnc1ISdFqHMT4WU/t7d69m5GOzrUsl9mkMQYDmGigF30hZg5/oUzcajKb7KUi5E7X4kVDOqTLnsHw6ecKvclT+Sj9gpRQth8gOxPmoOniKH7JDWmY0/Q3vxSecuUy6YJQlwLUeYo4GlDMRfhWQVyko3fasj9xhOJIUDkksd9SLmr6l5XqUkr45U+ClOPE8a3qVaKl+SAZGgg6N5amYZXhT+5TRZYIzBw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000016, 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 = {