From patchwork Fri Jun 21 00:24:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Leoshkevich X-Patchwork-Id: 13706565 Return-Path: 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 8EFDBC2BA18 for ; Fri, 21 Jun 2024 00:26:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 54B5C8D00F8; Thu, 20 Jun 2024 20:26:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4F96D8D00EC; Thu, 20 Jun 2024 20:26:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 372BE8D00F8; Thu, 20 Jun 2024 20:26:48 -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 214688D00EC for ; Thu, 20 Jun 2024 20:26:48 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id C65A41C0717 for ; Fri, 21 Jun 2024 00:26:47 +0000 (UTC) X-FDA: 82253005254.21.17BB079 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf17.hostedemail.com (Postfix) with ESMTP id 82EBF40016 for ; Fri, 21 Jun 2024 00:26:45 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=cp3Nojk1; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf17.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=iii@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718929597; a=rsa-sha256; cv=none; b=4ZBQKTAPbBzKr8fZIrRQ9EsT7qLoJ7bTiwvuLEn6+F1ZEWAqA4xGu9MtcIKV3QuHWiA4Ih 09SRmWUfLE9zBwaqaLnjNpCSCMEIB11D3tDPJGugS0xFp1TGIAl8UTR5sKcBFwv6qnXI4g DIjyMCJ6Yd/1pu7a2x32R7UAIG7weV0= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=cp3Nojk1; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf17.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.156.1 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=1718929597; 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=kXSH7HTFHUNQhtqNRKyspjcgV33+/ZDljIDJYGO0K7jwnCXOlA7oe1Knesw5okektfFGWH +B0SDz3zrFzdbAZnI6PPgbqToWb8GSmXJS7E7myQu0Fhk1yr80GWcMs2Kq7cSaBPDt2bmb Vg8dy3yETUb2mPdogekjCVo9xL6g/zI= 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 45KNQmMG030138; Fri, 21 Jun 2024 00:26:30 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=cp3Nojk1uyr3q45Jorn3+mo7AmkBK xgsssvQ8/9waypfqg5z6JkN2pTEwH5EetvwvyhaQlEptRVmHru1UjRK8rlS8IuD5 CmnNUOKdSUD9f43mww/aZQEaMVXA0jQwz+SSgAtnHsBmm1VbwQAiCp1iGkoKyT60 seuk1dNYfqHVgusVyGL6vqiwBtQ9XPStCNRfeTuspNeVzGBekM4SFP3OgKbdHy3e tYu1lJHv/9RjD4i8sfpWATWoq3UoKVu8WiGcTvytE7zyNWza+x/sjyZX+hxmHdd9 RKQqEjy27YAmPC7VUGqFDOLLmP79AYzl+PrdDoTo8dS4BPKBd7wDe6tOw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yvw8c06yn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:29 +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 45L0QQwd022515; Fri, 21 Jun 2024 00:26:29 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yvw8c06ye-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:29 +0000 (GMT) Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45KLdxwq007658; Fri, 21 Jun 2024 00:26:28 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3yvrspamn7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:27 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45L0QMWn49742080 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jun 2024 00:26:24 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6DBD22004B; Fri, 21 Jun 2024 00:26:22 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4A5792004D; Fri, 21 Jun 2024 00:26:21 +0000 (GMT) Received: from heavy.ibm.com (unknown [9.171.10.44]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 21 Jun 2024 00:26:21 +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 v6 02/39] kmsan: Make the tests compatible with kmsan.panic=1 Date: Fri, 21 Jun 2024 02:24:36 +0200 Message-ID: <20240621002616.40684-3-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240621002616.40684-1-iii@linux.ibm.com> References: <20240621002616.40684-1-iii@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: PiMadrv0_ZCFAt1YGkJeTR4kAUvMQsGB X-Proofpoint-GUID: FRW7TOOkANa6sIxj3Ucz5e72WDq6F4rz 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-20_11,2024-06-20_04,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 spamscore=0 impostorscore=0 clxscore=1015 adultscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406210001 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 82EBF40016 X-Stat-Signature: y8qh9pjd8wr4ot9fzxnf33kddn7cuk5w X-Rspam-User: X-HE-Tag: 1718929605-344723 X-HE-Meta: U2FsdGVkX1/oDEunkLAcGAZjEXNaYYCj6I0TUFR3JuxU8xM8uj+PXLsZlePVJsOrsxbq8JbTk/6E65hFHDOGRKX4WJXFBytmVEVMw4s/h+0xQXRuymsZ3NgpNcZJ/odxfrysk1ncbhWqvlc06b2XA94vupjDbeQfMm57FojaqPcbV/9NSRME7bnQW/dnzlupFA+i7izDRW4CtoFrUGsM6aTePTt0cJHULIwoNs6/wu0WuQvsfSfA3dJLOOvhJQFeULlW1E1EKrHzsIkIpH3H99opyue6Rk/e8J9IApNFTTC5yvNjqPVTiUx7kXILL/QMfxyUp0kfj89+BixZCnFpf97zbPxdLfjPGSddCFaBH/SJ4/b1neA8VmoOkNIXlyS0Ne9LAEf1EIFRA5DJiR7j75Vj1P2ftSHYf9ScrRXBYnrjTgQXVIWlUnCfXj/j6VvR9YgaSIibC3mnH4uuexIvPOBBr415eGhShnFn5k+QWvJcWfSbn8iCr281C9JCAGMAVRbiDSn89DGUaoEWUoDi02+IfrjNpttQqs+XcSFsDEGTL7cZjKZwPC6E0fpL/bTEYsG0G3ym2eEIwTsjntDJKpZZcCq0ZNzVB/3EJSVKx+wUBuSJdzBVH5hPRm6LONiB+Sf3/knTKhpwIJ3Z7aCNzrWz0C16mUwMo8NEqbbWhZ9RtC5hXNyNbAv5XRVVNI19QtoZ5b7I7MbYealXx1kHW2ARqtiQOdPHGzC6+bG+aBQOD+oUOJDYfdVwZSN1Mhg4hrhlIOoVYcOivTcq0Hx0NG0T8NoAtSij/K7x1mvG/r2G+9tqYSvpiic27nmwVGGjcY1CeIUO8wjWHRNysKNPUj9B1I/FT8C4Du99ZYd1ojZ05TlxzjlDEEI47afaSPrOejc8bDkqFPsEWFfT/uz/54KRaEgJFtuaPN7QTmgXxkhglPKPdNQEthBeBp9VUTGXDcHzBRYw6SQGiqGemfo XBlZ3Rfy dqxsi3NTYwAofCB6cHT/0MoY3e/XlpANhqV89B2aCLLCkm0qYu2NEQNx9JxX/p85HYWsP8cjQkQdOQZres5TZnqgQq5X+bblvV2hFtOeqwHSOaFN4GvLuftJbjyn38OG5Y6atqrwqtKtP8Nc5rR4eTxS24Eop/6wWtGDlCCVs7si6IZ7Dz8NLRRHj/k3erSy4nRytLAfQxHyaXXaQxkFfxOYZAbJ02z/DLdvY2XX+y0I8jOeyGDrbA6piYnXBbPkPR1OE2BRCuc1rJt39DV2v2Y8szm0Bu7SP3/+JfqkanFlUijBCw1Nvcp8Jo0exiAMFFCRlw3p/2+bVut4xyRMY27G2am2wQ5PYPL1yoZnDC5AIiMwmhnT7NLwCnQ== 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: List-Subscribe: List-Unsubscribe: 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 = {