Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5655112rdb; Wed, 13 Dec 2023 15:39:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1XtnLuTx4BNlHCa9yDi4n+in/oR9zp6PU6FAT3hlk2FkB4EnQ3X0YJaoiCTHjRNVl/jgD X-Received: by 2002:a05:6358:51ca:b0:16b:fa51:4862 with SMTP id 10-20020a05635851ca00b0016bfa514862mr9080750rwl.29.1702510781926; Wed, 13 Dec 2023 15:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702510781; cv=none; d=google.com; s=arc-20160816; b=GJKDlagBeV04cjgTGMrcu+GULg/YmJnGJK3CshbKBsIsj8NhjZfTgkqho3fu4FKP5b TY2OAyJ4VfXzLfArYejfPUF34BJSL8c0yPJ+Bsz+5vqaJx4PaNWgtNYcLgxqfH/8WqdK W9ZEpVLxzlD43G0umJc6OHWFlX+Jpvhbm5tFxPLUahfrAwe4b/AnCqx5KElybNrp64m6 tBcOXf8XF/Oaiy27AGka9LNIbv3ySLNqIMMqKv2CZxei/9lsDEq/Sd2W+OCfLOn/m1Z0 zdX6X3vZAcWsGuJT93DSQyRaQNJLm18xTWb9V96ikNgAE9ie6eUOyTwMASZCCT+WOXq0 TV0A== 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=UxznJChHj/qk4O/4D3mha/igyOisfZ8+E1sbSyzHNyg=; fh=TQATEbdDZNcnk8L2eDP6eFL9HlexFaHIexhR1TH2IlY=; b=IdsjvtKtiATKpZeEARRg5gNRxEZlaHBOOC0QY8V8QL/idsdfNKM2kgrtIWQ4Ft2qJp bHgJGymuOH07YZ8QKYBCSp9YTPvDCaSlBRGR3PrcUIgFW21VZTQt2KXYMyvif5Qev127 Rl7gw34aupYcRLMTzstRrVEwanD1OE1mxDfx99f1FfPq+4Wn8BEv18iDAk12mLCkSuuo oQop9s8Q2+d9GGaMiRTjeduEFRiNaS+oWt4CRiGbvmxTNVHYuSJVnw55ULpzJ+kiC0cP f6Xpa6mFXTsZ/jcLGohHL8rqlJREFf0M8h6cHy03MHTW7U2eeBm2LUsEcTLP01bM+0rx dktA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=FfpgmgNX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id jc15-20020a17090325cf00b001d36663e180si263617plb.74.2023.12.13.15.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 15:39:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=FfpgmgNX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 37BD281C19E3; Wed, 13 Dec 2023 15:39:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442939AbjLMXhf (ORCPT + 99 others); Wed, 13 Dec 2023 18:37:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442886AbjLMXhJ (ORCPT ); Wed, 13 Dec 2023 18:37:09 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85B2D1A6; Wed, 13 Dec 2023 15:37:08 -0800 (PST) Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BDMN7xQ008801; Wed, 13 Dec 2023 23:36:51 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=UxznJChHj/qk4O/4D3mha/igyOisfZ8+E1sbSyzHNyg=; b=FfpgmgNXwAK82ip/EFZvgNsTJUk0qLvzsyPSPkQE4GZaoCqRp8geZ4Bj6K811h8SL++n KOGbxHsOzXkY+kj4y8DDAanwUAr+AjrvH/9IFHwI6jKct1G5UMonQF7GTquhKaGXH+pN Hn9qACYe1eVNN5tUusSUcBYDiberxC5eTv9T67r59JOn0ByPl+cdhP+GC99Pkc5wGP/M 1qIbE67hQuhswGRtkG83GeQ4+LlgZGEh7q/1MX3+TpPiUWBZldsnBgUlcd6FiuSNMtXv pTTxXcc7Mcm4ZmCAf62Rdqra+BwBE2ziLk3AjZGknAWGN1g295p7dDYeN6kv9a79e5g6 WQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uynbt1cxy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 23:36:51 +0000 Received: from m0353724.ppops.net (m0353724.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3BDMmcZx011171; Wed, 13 Dec 2023 23:36:50 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 3uynbt1crw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 23:36:49 +0000 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 3BDMntFL014808; Wed, 13 Dec 2023 23:36:16 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3uw42kg1x3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 23:36:16 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3BDNaDQM8192580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2023 23:36:13 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 273E120043; Wed, 13 Dec 2023 23:36:13 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B61F820040; Wed, 13 Dec 2023 23:36:11 +0000 (GMT) Received: from heavy.boeblingen.de.ibm.com (unknown [9.171.70.156]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 13 Dec 2023 23:36:11 +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 v3 02/34] kmsan: Make the tests compatible with kmsan.panic=1 Date: Thu, 14 Dec 2023 00:24:22 +0100 Message-ID: <20231213233605.661251-3-iii@linux.ibm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231213233605.661251-1-iii@linux.ibm.com> References: <20231213233605.661251-1-iii@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: VCykK3Okb8hn_WnDc5FlYpZFRwxwi3I7 X-Proofpoint-ORIG-GUID: 7xvJa3gpgWWQD7mxJFyGQAeo7HxdwKpE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-13_14,2023-12-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 clxscore=1015 bulkscore=0 mlxscore=0 spamscore=0 suspectscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312130167 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 13 Dec 2023 15:39:32 -0800 (PST) It's useful to have both tests and kmsan.panic=1 during development, but right now the warnings, that the tests cause, lead to kernel panics. Temporarily set kmsan.panic=0 for the duration of the KMSAN testing. Reviewed-by: Alexander Potapenko Signed-off-by: Ilya Leoshkevich --- mm/kmsan/kmsan_test.c | 5 +++++ 1 file changed, 5 insertions(+) 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 = { -- 2.43.0