From patchwork Fri Jun 21 11:34:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Leoshkevich X-Patchwork-Id: 13707326 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 062B3C2BBCA for ; Fri, 21 Jun 2024 11:37:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F189A6B0110; Fri, 21 Jun 2024 07:37:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EBFD28D0157; Fri, 21 Jun 2024 07:37:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C22B86B0113; Fri, 21 Jun 2024 07:37:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 75E0A6B0111 for ; Fri, 21 Jun 2024 07:37:30 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 2CEF9160D9A for ; Fri, 21 Jun 2024 11:37:30 +0000 (UTC) X-FDA: 82254695460.17.B60360E Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf18.hostedemail.com (Postfix) with ESMTP id 46BF61C0011 for ; Fri, 21 Jun 2024 11:37:26 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=TmuWzqBj; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf18.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=1718969840; a=rsa-sha256; cv=none; b=CAeNtuuhUZu/tlK82d5VbHqUdgoIUlon1jY8Qv96ylpiSDkj6VAicdesCmXtXfmEGmLsjP nGfmFfvoV6Lj39e4W+/UxcJzlgCwdIdPsgbWnshBs1s8ZUuM6hL5UuG4CgIt4hQM7LUIzj 7BTiuPBSCi9v8Z7hLAF6kAMrwvu61ss= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=TmuWzqBj; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf18.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=1718969840; 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=1jtS7H6gjbGKjabEvE9MdqxtpOiUyo8LV5uBCWHwZgTxtkjD4Rb8/oZy/OMkB4DA26F5sd W0YILVCDUQ1f+8bvOTmIaYKuZ7ZplZqCVi5aFLyFi8IaXKnXKouZ6PV0LtV2BNMCArqExU 0H0DkqgqshTaH65j6UtChC+ik4Rl/rg= Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45L9vTqn003912; Fri, 21 Jun 2024 11:37:18 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=TmuWzqBjxXu+yhewQzmvVT1ExN5fn YnQ2LW0HgiqqKwtBUnyRqOX0dY6a8+UmSJ7hjoq78KAhxl0kn0BaB1VjLrjEYlpL lBXpQ0Bo7R8Q94erE9yy1KqlovSY/AmlwqUGzNAhm0iMCTvCyfWotXyCT5oxCzhE KeBtBFaDfDPzu19RvlMXz3gQcSmtKYF2xZrjYMLVZKAOyp60a6gAsgcJtz2D8TW+ 8XmiG4QEj/J+JaI6AtNSlP/h5t99BQ9wQTYrgTNng+lk7dOY/yVmUQJnwwOiq8kM YeEdENWkKZ65WHQUwH8P++VYwaqSiQA5SqA+FZo2DH4psrJ0RNnspWLKA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yw49cgpw3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:18 +0000 (GMT) Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45LBXCYC017744; Fri, 21 Jun 2024 11:37:17 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yw49cgpvy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:17 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45L9ITH9019974; Fri, 21 Jun 2024 11:37:16 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3yvrqupvyh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:16 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45LBbAq548628064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jun 2024 11:37:12 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4FADC2004D; Fri, 21 Jun 2024 11:37:10 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BB2742004F; Fri, 21 Jun 2024 11:37:09 +0000 (GMT) Received: from black.boeblingen.de.ibm.com (unknown [9.155.200.166]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 21 Jun 2024 11:37:09 +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 v7 02/38] kmsan: Make the tests compatible with kmsan.panic=1 Date: Fri, 21 Jun 2024 13:34:46 +0200 Message-ID: <20240621113706.315500-3-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240621113706.315500-1-iii@linux.ibm.com> References: <20240621113706.315500-1-iii@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: z80Vy_rqUrEB7pD3VgizD3Nec6VCI77p X-Proofpoint-ORIG-GUID: 73JqdirNA9Gc3nOItCCEysTgBSv4zoyr 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-21_04,2024-06-21_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 priorityscore=1501 suspectscore=0 clxscore=1015 phishscore=0 impostorscore=0 malwarescore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406210084 X-Rspamd-Queue-Id: 46BF61C0011 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: ujnrqng559ojhjuupmurnmxnka558jjt X-HE-Tag: 1718969846-371553 X-HE-Meta: U2FsdGVkX18qG4XLsmSkD7aK0uYlz77gdsD/BMZvmUiTsDWmlx6yIpjmqM5+CsyA3MhZTQewOZFuKDDAmCrya0gIBb15InyWW9j85SmPOtJX2OZ2pgilQU3kfb6XkFMFc5SMzThfOCLeQzKL43bcxq3vDe7ZUgdqvwPzVlJFeTD1iT3dJ+Tzxudy47Mitaprtp6+lfW1bVaUfClF6vMb2A2a/zczJZVmbTor9LbNEdXUatAi6+mQ3dgZglCd5N1fHBOIKA5AGBvdE+COA9dIy7wnbY55RCptBf+yttZGKfy3GuoBxg+AJMEnaZIhA2Ca5ploLBU/stT/L/EiPHswZJN55MbtTU8DwneFAnAwHZYDSM0d4EmVzx7IAvzlHK2gZpcqdq2GfoYoj9nCGw43SYj5UGdplO33QaSQ4+DYI44SshkX5A38Zj0VVIMesLVBMmmMSKjY3LcyZMxnf8WvFJiwBpoGFqzO+caV8rE19Sx7t/XWXhMaARC8YHQDNDzvxDKtpBXekPPX+rWagX/OgqjjvLfLUWp9Z+eMQ6ulHOX/IKUEAAxi1UzzALk/FY6/nRJ04BAgOUs40RUf2rJBCyXvcuGqBdrVQmoi7/CHlCmokxhyCz7HLUiMUaeyPCVKd0wQIcmwICb0FK1fibA7tEwEyDmPwBXvSPkPtmhvmTsk68ija/OotlQ6BEe9hZt6Aom9baEeMFfM/z7rSo9p/w3pcJfZXxcE8BaFn94Z8Zzt/NTUd3Wa5bDXHKC5Rcs7pIzwiQBXaHpqaEDhE/hA20ctDwsHr+RtJl8WCbEIGTd11mL8V5KMP5l8HgeWagwWlpTArmqh8SPjYdT8C1C1I6AgKU50JqFTtWzzqHEcu9+J+IV22e8g0hrdC/Q3dykT09442IkLEtd3AQrM0dmsrat7ngA0dN7AdD81OfGvnjnA5Cxk6ZTbQ0bMBJifx0FFCjed0kiXYvIuIwRu9Mf xElp9rRk afcHXamM4B718L3SP038r97ST2HUGCWy503OyzgFJmkNUbGdTUyzpeS7AXHuwmzA4YVvG2Aj3FmcG6DaQ8XpdQocCw29FiD59zBmrlFoxWsv5zhaLc7BkmoFCRn7G65yf8QySuSlqbNbjp+0gWhU5bwPnQxpoNiedPBxUWx8mufYhcRanO0hV+6lhCDIK6d2Ixex1tPEm8YG+5yjCLkCk4Y8EygmpkUxnFLZapYfH+kO02t7ToFqcyjnnJ95TMdfcGGqNwFoGphV93waBWtF4xe9C8VF+qTpm/znaVQLGxpNRLlyyvcnMZApQEQ3RH7ULevR2fdUUaT8JqLUoe8JHZsPpVJ9FQX0ZrzLV 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 = {