From patchwork Fri Jun 21 00:24:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Leoshkevich X-Patchwork-Id: 13706567 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 2202EC2BA18 for ; Fri, 21 Jun 2024 00:26:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0B7608D00FA; Thu, 20 Jun 2024 20:26:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 040108D00EC; 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 DB4618D00FB; Thu, 20 Jun 2024 20:26:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id AD0498D00EC for ; Thu, 20 Jun 2024 20:26:48 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 4C681140678 for ; Fri, 21 Jun 2024 00:26:48 +0000 (UTC) X-FDA: 82253005296.24.987273F Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf06.hostedemail.com (Postfix) with ESMTP id 0E417180003 for ; Fri, 21 Jun 2024 00:26:45 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=ggoX2Pks; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf06.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=iii@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718929598; a=rsa-sha256; cv=none; b=jnMXV9zbI/OA9sO1ogSPQJYbUcA7OqVwTaNq6M+tJAMw85tBvfs+7uvMC41t8D6evnT9gc ouou4Ca9lqZmr8GAi3r9dmiCgD72AlKO30SueExo5StWSeIaDlKzg/lw6+tAnjPd+eCQ4b mlEcscCr/EPPvIUsepgmU3t1XiAlvJc= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=ggoX2Pks; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf06.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.158.5 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=1718929598; 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=ah4xfVCHNViASZu9OS8C5bCxAH6NMTO/t1qMSUm0DA8=; b=PyOQXjVP63YDHMM5ce2Lr+PB3B9LiOj7dtCCwrjZ5nS3loxtN9H7X6bjwyYlhqG0V75scH a7T+cUFWUyiiaNbZhi8tpdF90QZp3aoLJ6uDLZJjJ2wWFsNL8uCpwBy6saTXhpZeJPNuXu k3dnpMzrheuY/HJkCqdWxdeKZMHxrxo= Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45KNufV2003803; Fri, 21 Jun 2024 00:26:39 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=ah4xfVCHNViAS Zu9OS8C5bCxAH6NMTO/t1qMSUm0DA8=; b=ggoX2Pksfiz39yEC7CqMLNdghd9Hn 9tk6/wM+ZTr+PWsNNhjk8GfhsFSoXmUNFgXY1Xy6bjwqkPRm+iEznu7EHCm6MB/p wrnUqOBjxcLWYR6WAGKk6J3IOywsQQHYcfS59dbF4QKvHybe+gB4SPJKOg5BfGeq fx9HIpiiw7TpOyGWn6n0KZjNHLDw74t0ndJ0f7VMZuQgIl2qQU/QGZ6i49oxdaQi lE1bBtPu/E5lvQdv6SBQjbjoh5B2QR7H81QsnrUkEGR8Tz76l8oWM568UOFpCIOG KFqMboyLbYmwQZbYkG/MmA2l9nVPvwkSHf2WdrLggThRRvrizJEiwO3Gw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yvvrr07sx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:39 +0000 (GMT) Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45L0Qc7G016947; Fri, 21 Jun 2024 00:26:38 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 3yvvrr07st-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:38 +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 45L0FLa7019941; Fri, 21 Jun 2024 00:26:38 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3yvrqujnwn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:37 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45L0QWMu51053006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jun 2024 00:26:34 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 32A8A2004B; Fri, 21 Jun 2024 00:26:32 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 144C620040; Fri, 21 Jun 2024 00:26:31 +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:30 +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 10/39] kmsan: Export panic_on_kmsan Date: Fri, 21 Jun 2024 02:24:44 +0200 Message-ID: <20240621002616.40684-11-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-GUID: -Q14BQ2YT5_Te4RHh-dfpK1esFV--JR1 X-Proofpoint-ORIG-GUID: WQTMj1N_z0nQDf3HOEeVuLpEFkVxIMQc 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 clxscore=1015 priorityscore=1501 impostorscore=0 adultscore=0 malwarescore=0 spamscore=0 mlxscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406210001 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 0E417180003 X-Stat-Signature: oagfaw3nbkqgh71hznzcib3eqhpm6t1h X-Rspam-User: X-HE-Tag: 1718929605-784200 X-HE-Meta: U2FsdGVkX18k0WMfLnbPpcH8JBPnLvo5g9mN6Q+X2jbfpWahVWv5FL7cnTb4QgFQIxZd35WcKrLCsKda98F8YsAiUExovrHT3oyIFeHUQtcBJ1w8oi+rNyGqSbpod5yvjxeXaDUX4NH57PE0CZ8Jx8K7ZP7KVFvz5nkcJb2E+tTDjmhZdKozr5KAOT9JWFQrFOHgHK0q87k0/LJZ34B/zMhCI6r8unYd6V0efAai5moNQh9tPU0vzfappjvL9Ninb/qUYbq0lPnLYlH5aYNQw3gd1XlcQji7Due/3ikhkEy5A4BuopSchw1iyjKbGuITwxsPVviiN1TA/o8pcmVzaV9qVcwRD6PWSFmPv5nNxlmOiFg54ec7S+t9fylQaXfG9Yfeqk44SPS8xpNugrykdXlHmn+sRkQF+BJquXN/+ALh4VPrs64G9VgCtQv8CqKI6J7DK+bbe6HT/3hLzuaAhQti+nNyuayG2dKm9T+ZExXnBCnCWPyn6oh5xCCX0TrFZIzOlQXsn+70u+QSRDcHSrtNTz8NCXWNlREQkIU8A778Pl4L+8yqj/jlXlralv4bpByNMMyS57DXo+XHdwvLCLjmpXOhTagH9iAjgkP6jdCZSt1V7Plx7yHI1lfq9YpyxT2nrcG76SEhxVBCtYCsT1qDgl/pqeyldy7IO86UWSulkuHWoJ9p6qk1H17rbPs+e07mW7VUBEZ8DgzAbyKasTQM7YWa8wyzbVsDzpdWQoeI9MS0bgUn76j98k+L/kbWQm+4bWdpR1l1zDlxhSxBJUBX5lwtjKahdbeturTnLjf7Ms65W3Xx/1IgWSXuHhercAog7HeMPDO50VnFfEUKZtNwKrURR6KUaEoyld30yFT2yfrGwfExAcvNIRvouwaZkqqUSSZQohZ6nkyjCLIPOAxhocoOkIY19NIuBuTLrH0B2li2fKJPhglfVAuoa/IaFth8QYb5g/IB2tWTRng 9pKkTBZ4 xKHWiqLuG9MUfl7FQO6tUDt8uvVk1iHB8hHl2oap8nx7cbw1LWXTC2LQrCsp//ywgZoWe35qTvLrUheGjuw1Iv8XQpyDZ06FbG5tE48FSMxdzTo5KLoI3h9anoEDrI8fTFbal2Fx2sCiKb8hcJ82BmZZeAqn7RSXsKuMmzpiZGqoQtwVq+jSrOyj+PSF06Y9vbs0Ok3X1ov2MG2mQ4rWZtiVwCyufxBxGEycvEvWHq/zIdhknIHZrPvO8bf98LzRZxFE9D8cyW16rTvh51WwfvAdb3TbQFJG1ci7lgPAADhpq2xADxZ/EfB6S/LqRUaNDmQXj X-Bogosity: Ham, tests=bogofilter, spamicity=0.000736, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: When building the kmsan test as a module, modpost fails with the following error message: ERROR: modpost: "panic_on_kmsan" [mm/kmsan/kmsan_test.ko] undefined! Export panic_on_kmsan in order to improve the KMSAN usability for modules. Reviewed-by: Alexander Potapenko Signed-off-by: Ilya Leoshkevich --- mm/kmsan/report.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/kmsan/report.c b/mm/kmsan/report.c index 02736ec757f2..c79d3b0d2d0d 100644 --- a/mm/kmsan/report.c +++ b/mm/kmsan/report.c @@ -20,6 +20,7 @@ static DEFINE_RAW_SPINLOCK(kmsan_report_lock); /* Protected by kmsan_report_lock */ static char report_local_descr[DESCR_SIZE]; int panic_on_kmsan __read_mostly; +EXPORT_SYMBOL_GPL(panic_on_kmsan); #ifdef MODULE_PARAM_PREFIX #undef MODULE_PARAM_PREFIX