Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp236650lqs; Thu, 13 Jun 2024 08:43:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjDLDse+W4NufJTlrJ33rziV9LzFwz2C2IRaXqo6mSiUKEJD8SYyj3tZabs23USMD/AV5zuys20uVEQE+oRmazF9SZ9iPbLNYTylabUA== X-Google-Smtp-Source: AGHT+IEbHFEvJq3pwW2rLb+yiAAUphIOXlQBoPFP/fUesb3cTD8PtDEosBno8N3VmaE7wVNojaKH X-Received: by 2002:a81:5b07:0:b0:615:1691:14e6 with SMTP id 00721157ae682-62fbd79bfb5mr51038007b3.41.1718293430989; Thu, 13 Jun 2024 08:43:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718293430; cv=pass; d=google.com; s=arc-20160816; b=aymp8uyYwPsX+cbw+n0NMeMHqysBomrB0yGESN1wg0t9KvVEXkX5z/ACwHMId6+AqY +9W2Mv3hyZKr2H6dW+vu309xeVnIa1ttCughIhAE20etjBnfwWu1jRUpaNJNM+n2Hd7n a0eL8QNUOtseS1R/aOnqjxTMdVIjXO2UzMj6YMavpuCOmQuw8CR/ABPbOKbyL30KcXhL 9c7DhohZ/8GCiPoWjaymtz2BPcE7ZqUmxIUbMgen7wHK0/Srxr37S9+qgXrGA3zbPoDg tWKsZPiDN/IImXNAz+1ngNuYrxdqiWWLnFL43qsJGxJxsxzu/oIfm2M1B7w8YGkXE6S0 3FHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ah4xfVCHNViASZu9OS8C5bCxAH6NMTO/t1qMSUm0DA8=; fh=TQATEbdDZNcnk8L2eDP6eFL9HlexFaHIexhR1TH2IlY=; b=oo0R3iTsmS5l2D8tgGbEZM9BMi8KONAk/uUWRlM34LEfWCfeLlBej/1hilhGTJKrnk dAmN32URrCIjjm+h5uzsscrSt0YWDUebqo43PgrWWozhzPjsi0mxndM3DSLl8gNc5ogv ci1uqp3WNc73vQspYBj2y/9HbsVeQ3TmWKqhg1FBxGK3njFEUsAZT0uvAYHhwlhMbanR z/X/UjThHN5MOkH+QmDJXuo1UY0ZEuENNCmtCfwHu8joqatDKDQp6nQThlUJjT0Da3pG IJeuBPTUDih2oIsbOhzaR2OBecLoHXQMydcKN0ka78QwOoR+qnTvo0Lr5d3u4QjY4OC5 VMHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=troVXxaN; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-213577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5afd48bsi17730466d6.277.2024.06.13.08.43.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 08:43:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=troVXxaN; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-213577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B1F951C2462B for ; Thu, 13 Jun 2024 15:43:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93A6D15687D; Thu, 13 Jun 2024 15:40:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="troVXxaN" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E2C114A622; Thu, 13 Jun 2024 15:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718293216; cv=none; b=jYBTw3yjcUuQHgs7kVWgEGMLW39oW6N709sDnZhqbI5wqhVk0/f0YbSCgds3RkyJ6tkzp7EE0wblCxUsiPxOq4IOac2iTIqMVMOeXiukrDNnyOndsqOsuNhowGhEh2XnwoivtZ5A7AOSEcYef+IP70+KPEbdARCg9MNzm6w4Ufk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718293216; c=relaxed/simple; bh=cXejuEluh+BjX1Ar6e5P4JKZqCjqJdrKYUKKBgQTaXk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=D6mUglocBFOeXo5JTdqj5p15AmQlH2fxLGOt2Vs1oP50gWO9v0kcsKi0P9C8IdBzpABCWpowrMLWYHJARJbtHnEkL7Zu1NBx7cWIkwMTn8UTsKDGQeTytgdPZ493je8h2zb1HkbiXEBYb7c1zNBY1h3nzSdjpMdV6/UxOjsDvUk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=troVXxaN; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com 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 45DFRoY1006807; Thu, 13 Jun 2024 15:39:46 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=troVXxaNbgzxGWhk7XYAZr17qmQZX cmghgrcvp3x0Qj8PkFCe1lJw11YOdMq9/yJ9Z5JPmNgVnK2W5sLpMqVZQbaTgilT uGCIGKG/F+yKen/HFAo0hXtjCr9Lfu5t0X4gm2AEFg2s2y2kJlpe1RRq/Vxjxt1q +zWwB+LFum8A7DVh0ktOEkge5NQPJQt2YVpswMnXXvAvQUrJzz0gRdejC4APqw0F FgpGeyokZSg6Qz4gFrM7MafUnYd/5hD34JjqKXRvFkpLPgdR4Nfsa7Rbfpi8aYzt b8UpYKrzwB2SHGdBNzcEMFQj0rdlArkcTbE8M5oDOgtOjjjpgXO9wTFPQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yqrext11u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:45 +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 45DFaxqb025357; Thu, 13 Jun 2024 15:39:45 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yqrext11k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:45 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45DEAZNk008701; Thu, 13 Jun 2024 15:39:43 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3yn4b3rk0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:43 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45DFdc7915794538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Jun 2024 15:39:40 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6548120063; Thu, 13 Jun 2024 15:39:38 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E59CB2004E; Thu, 13 Jun 2024 15:39:37 +0000 (GMT) Received: from black.boeblingen.de.ibm.com (unknown [9.155.200.166]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 13 Jun 2024 15:39:37 +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 v4 10/35] kmsan: Export panic_on_kmsan Date: Thu, 13 Jun 2024 17:34:12 +0200 Message-ID: <20240613153924.961511-11-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240613153924.961511-1-iii@linux.ibm.com> References: <20240613153924.961511-1-iii@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 8H9Swu2UbKpTOjizZoXfoiXZhZd_152j X-Proofpoint-ORIG-GUID: 3KQYIeFe4kOCnIUd0Jz6JFn5smodzH8f 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-13_09,2024-06-13_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406130112 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 -- 2.45.1