Message ID | 20231115203401.2495875-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 7C8F7C072A2 for <linux-mm@archiver.kernel.org>; Wed, 15 Nov 2023 20:34:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C1B9B8002C; Wed, 15 Nov 2023 15:34:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B7CE980022; Wed, 15 Nov 2023 15:34:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9326D8002C; Wed, 15 Nov 2023 15:34:27 -0500 (EST) 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 6D66B80022 for <linux-mm@kvack.org>; Wed, 15 Nov 2023 15:34:27 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3F2F2A0972 for <linux-mm@kvack.org>; Wed, 15 Nov 2023 20:34:27 +0000 (UTC) X-FDA: 81461341374.27.6E95A29 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf06.hostedemail.com (Postfix) with ESMTP id D9C0018001A for <linux-mm@kvack.org>; Wed, 15 Nov 2023 20:34:24 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=lLa75Rz7; spf=pass (imf06.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=1700080465; 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=ALe+orXRFp48K8J9UFekuIwy9fPV1PAP+S2ziEgYlpk=; b=jl2BIj19wfhnybeTT+wVvap8YFV7jJSbsk8yDF8NEs+TpDJviHkxczCNejA9tjYchEXZIy Z1PpoGMOuJNOPa752nj3Rws4gwUVl99v36UUi70d+3C/diQ1B/ZTJwfD+RN2u1hFl7AXUf pLE7nUcq4aTR2KB68+OO8sqMzY7P3wQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1700080465; a=rsa-sha256; cv=none; b=vWtee23HV/6caZc42rx4Lf3hiwL/6r0rBm8wR/nBE2/9ZCNFIHqgrL98o+WvuSrOtB56hC GdAvQRbTf8qYUZzFzxPQAChwXP1UPKY3qrDvvNJfdhOZdjZjeitv/wFErILsoxSs6qkJI2 ImFIYtlUglL53i0C4AqbMEbG+x1dBY8= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=lLa75Rz7; spf=pass (imf06.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 Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AFKQk3k031373; Wed, 15 Nov 2023 20:34:17 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=ALe+orXRFp48K8J9UFekuIwy9fPV1PAP+S2ziEgYlpk=; b=lLa75Rz7SHDva/Y233ebGR0kBcbg8raDcle35V3naRto+dRymq9Ye3Vin6glSxdq+LyB xP3fFHVwzGP2WrpDLC9dY3nrBMcFkqldW8/yXHjnjgvZ/XHszMt11AqvsYgicw2W/Kxl ETLdOTr2JFCV5Ye8UNShOEBNZwTI3KGD950EUXq3iFBaTYN+1jeZvmkevl/OVl9WH0e7 /uc2sucHgE3Ze+0bSdD6t++UMPW8QXtdHVI6CNaBiRF9+zLwpFyAptJ4TJJYGwUIjz8M JJVEP2+4SfQqeBVZ/Vc5JDxMJ6ouLia5AkWERgkO/fSg9bYJevmIx/EucZ93bbzCkIjc Jg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ud4tk8ffh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 20:34:17 +0000 Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3AFKQrZH032053; Wed, 15 Nov 2023 20:34:16 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 3ud4tk8fer-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 20:34:16 +0000 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 3AFKIvbd015477; Wed, 15 Nov 2023 20:34:14 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3uamxnj0hr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 20:34:14 +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 3AFKYBkA20447746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Nov 2023 20:34:11 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8A2772004D; Wed, 15 Nov 2023 20:34:11 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3EC0620040; Wed, 15 Nov 2023 20:34:10 +0000 (GMT) Received: from heavy.boeblingen.de.ibm.com (unknown [9.179.9.51]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 15 Nov 2023 20:34:10 +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>, 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 02/32] kmsan: Make the tests compatible with kmsan.panic=1 Date: Wed, 15 Nov 2023 21:30:34 +0100 Message-ID: <20231115203401.2495875-3-iii@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231115203401.2495875-1-iii@linux.ibm.com> References: <20231115203401.2495875-1-iii@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: o7Re1uLxrmfZ98PzFum0KnGUcltBzKIe X-Proofpoint-GUID: hXQ9t0DNpe_h30_zYtji1RDR8Sah29gx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-15_20,2023-11-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 phishscore=0 adultscore=0 clxscore=1015 mlxlogscore=999 mlxscore=0 bulkscore=0 malwarescore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311150163 X-Stat-Signature: zjsq9iqw84k93deiiwaijxdoddnydcu5 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: D9C0018001A X-Rspam-User: X-HE-Tag: 1700080464-360394 X-HE-Meta: U2FsdGVkX18Ok5kHtHc8vsH9TSSdYVXBok7X7Hl6Pptm72lM/LMVR76zmdvtOG0p1PEReFJzB8DQIJDvgADU3/35cdrhYFpUya7Ooc5m0Hor7qZlF5aYhTx8FfJdNxIPq4bM1f43oMKe1gzdn25Lw6YUfSc3ZFczIoRdnch02fvs2i4mYGEC8TSxmFqCfEsf2pvpNnlGfaWvuxM3NivcfUQMIBCzjZfxT+qAj1Vu3duTlZ8sdQ0cGdfgdoz7wrOTZTSTUZ9clozezOW2RBCGSgLfzDqsK6oRQ5HeWK6qpaIEgWEMj8tNvWqwJ8w4nfBVyAO6G5MvR5u5unDzpd3kM/cn9GhCZS07zJkbWwXrxNxJzXYwOuFWdTwRKrAan5RtUywKIjFkB9f4ST7W2lZltmple03ieVGF+0cdMO7kVU7OgjSf0bz+D938s+iqdqc4+ZHLLntxwFYX6aPoFtQROD8fjOiEbjVFrR9cY5tFQKVCgOWWfyhDv22WWXVncev0ECz4Oq6Bg/u4v5FGa4E88qA7kZ7IOzNuvcdxPCjOT1VSIjmf1JyjTou3Hs4Wue2OXK4GqoMB0UL8LcI6mlBBaE/PU0JkRtcYmovq7GcggKtVB2n0fYCktwVeg+d1JZWcjia+WX665JuXLav2CXHI5ZzAbRY9tRC4MiKLC3NFopqxdIqdJwgV3/ZjPKPxe9fnUtPOYtuXTGfKp1HJ1as6e9y3HzK3Uf4FTwZG2B0cYFCNRL9kBfu9okn2IA0AJJZB0M2FVbRy9JuI18p8w6R6g8+9ot0qAueUVk3rkuPLFjBmDOz7NrDsQAYRf6/Au4azuJZb2+Hn33Kems3iq8Zy+PsIbW30XOLFaCh0jYhzjp9xiEE5EbLq9xVgiek7t6TSQR7nBQVv+dvhgTZKWs4sjpKxPmaMILUMx2MPXyzyAZ3bX9s6ZAvZKnJHbCq1pUahD3GsNphTk43U95EDOrR klCNdevw WIwTIQGvuvDLEpxJ94LqzvLbDweO1VcW9OFlj35BSDn35Ap1AVZSqKbcXahZ4C8cgoWcc+LyNQm92gThyTAzRp9rs300ZPLENmzxDG49a4XYAf/tKNuy6hlDX5CLrXrBerp1m0sBRIP/PpNDYKHJRjHJTBM+/OhRaeqDkiLxbeDpDPbACkkGqXflnJl1sbedeX3R8RnvUgPefxEij2Z/KmSnryA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, 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
|
On Wed, Nov 15, 2023 at 9:34 PM Ilya Leoshkevich <iii@linux.ibm.com> wrote: > > 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. Nice! > Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Reviewed-by: Alexander Potapenko <glider@google.com>
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 = {
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. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> --- mm/kmsan/kmsan_test.c | 5 +++++ 1 file changed, 5 insertions(+)