From patchwork Thu Dec 15 16:26:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13074332 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 9732EC2D0CC for ; Thu, 15 Dec 2022 16:27:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D0D208E0003; Thu, 15 Dec 2022 11:27:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CBCBA8E0002; Thu, 15 Dec 2022 11:27:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BD2838E0003; Thu, 15 Dec 2022 11:27:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id A9EB98E0002 for ; Thu, 15 Dec 2022 11:27:21 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 890111A06D1 for ; Thu, 15 Dec 2022 16:27:21 +0000 (UTC) X-FDA: 80245070682.08.4F1923E Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf01.hostedemail.com (Postfix) with ESMTP id 839674001B for ; Thu, 15 Dec 2022 16:27:18 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=PhIKLFHQ; spf=pass (imf01.hostedemail.com: domain of arnd@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1671121638; 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:references:dkim-signature; bh=/Iel13MP9rIkj4OT0LqhWZFBUWlSMXK5V+GEL7Ux6UQ=; b=xz1pSffm9ZNjL4vyMRsCmbjzx83VLAHGvXEOsAu9O//QzGlQNTPZvOiDz0UQce8/C5V/dr MkXKk2vrG2z3oZEPBNsLiqWSjsFpUjL412ESHE7XCNzNT6JZ+CAqxuBHOECH/AJ8shVn3C lMGjzUtM4ggHzzuM5pbZ202B7pett8M= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=PhIKLFHQ; spf=pass (imf01.hostedemail.com: domain of arnd@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1671121638; a=rsa-sha256; cv=none; b=gWtNbXpKOz0QrDcc98aq38+bumyFGkEUaDGJfG6pLC+snVMZm/3AXRJrK2dAomU7XD7vUw oJ1kMQtUEjyrgLdPavw8HAYkc6HP+vc4uC47uyfl3DjtIUOsh2tgqGC+Bb0aTz5xuw9XnN qRH2Q377UiN+hxJwQYWpefiKoFz+G0s= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D3536B81AAC; Thu, 15 Dec 2022 16:27:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFDD6C433D2; Thu, 15 Dec 2022 16:27:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671121635; bh=BfenddMZffflFBpCkDgdfkrr1/054jtaefDkr+14vh0=; h=From:To:Cc:Subject:Date:From; b=PhIKLFHQF1/QaV/w9RvkMZvMSUJgufPsRjMPyXjFbqqHD5H9goy6aF3ADPYMlHK5s 1Q9wtEKdpV/qtBSWm1kGjv5OBuT1/muOGIMBVNI/w6yL5xb+svnVqAR+S0T1wWU/7T LWfz0EuWAJS3F7obfqbbSVX4Wq7OfIEt/UIML2en/tuyoz01xCIjp+T/fIktjK34ei 81Tp3KgT8teG9QGpj1FgIz4A+xQX5Yngc7UqU1B5wLBkzpflxkqYMPqkiTGzeKNhzb s7XsbK4seovcB2oaE6EtWQJDaAQm5Xxci6+xNh3XgFBQjZ/woX5mRJhNBik2GZEUYA Qn3oncftF4WuQ== From: Arnd Bergmann To: Alexander Potapenko , Andrew Morton Cc: Arnd Bergmann , Marco Elver , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] kmsan: export kmsan_handle_urb Date: Thu, 15 Dec 2022 17:26:57 +0100 Message-Id: <20221215162710.3802378-1-arnd@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 839674001B X-Rspam-User: X-Stat-Signature: rjnszpzk6kpwdhfxbnssa3hdxrk4m81q X-HE-Tag: 1671121638-879852 X-HE-Meta: U2FsdGVkX19TyB2tb18LHsbUTe2c8nWYwQ8bJ1yNTg2gY6Fp3kxrBDhU1n15SRP7XA0G2CeBGaHe5NZKa9Nj4T7ROFRy5UHbJwvBB0fSTFIrD4tDC++YzgHFRVh3ZvNaGOxeDCepTw4hnvaqAhR9MBA9b/GLcEYBXdGtlSOhhDoPrRRt2ma3RS8vhGkuoOEAMQ+j23xKTek04IKzgFHWs28GTCB9yOxy58XFfB9mkT18taRfWgrLBoqkyYNgQ7P5GHxtp2gQOTFH4RMybfzuJWLxICbcSQCGOSrtKtsFqBMNLSLfCe1DLjYT1WPq7dzpzqV5kYxB5mL/2GcafOdOpjEdAG5lZk1uW0Co7/lgwBKbsYldM0LurzbLa4yYBs6b5p58x+0BVbQdJ2A4whosEcUcXpXXG0MduLM7EylJ5fwsTcWQXLhLoPicohBCkYQA/omvOM0E6+wCu88LfGyb21QAUwozuJNei+9FqI1tAH69cxl4aLH7p8eIDPuCLN1Of9XOq3FB/gUPWd4+4SI/DRevJMYHS12Sx5TVf4tsMvTcPmMW5Gx6tvYBM3p39pH1iqPXYhg3E8/f8wh1BY0zT2c1nQwq+uswM2PEsyl2mAOSNc/tS0FGN4we/PskuIqMkQx/E8eDSfZKLuTMAuH8caoyOSGp6Fcvr9L0Nq/GDu95WjYpofuGDMBzP+xaFI7ItlECY3pP7Uhnj6CjLV99nuGvSaX/6r+PRfO/dJtjXlSUOMrdSKCMEldK6K8w/r3BjL2mioMBcceV9Ei1QU7IsDEIxZmO3bDvHkKIjL9z8HW4Su2ktVbjojK8PMlcZvluDe897bjx3T2gdDs5VuJRJ09RK93eX3lrTrDX+NXmSgwPHLJVPrIgc1zgtJ+/zliiKyk9S4o2v1Nl9PtNV7o6wr2+nu4YDT4Eo24o5mOovHXtcwmz5lr9Bl7Ssvi9XFAjui4O7etjUFhrLZyk/oD KPOBjaZ3 CM9lVSRb5gccNJmHmWPMyLjVZQEyOLL7HN0877bXAXw9ajkwn7lVV2I/5On4pwoq/CxNYHS9C1JE9j8jgKnQm2qY82Xvk4ZEiZyKry/lxEWgMvyNqx3aqmCubNQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Arnd Bergmann USB support can be in a loadable module, and this causes a link failure with KMSAN: ERROR: modpost: "kmsan_handle_urb" [drivers/usb/core/usbcore.ko] undefined! Export the symbol so it can be used by this module. Fixes: 553a80188a5d ("kmsan: handle memory sent to/from USB") Signed-off-by: Arnd Bergmann Reviewed-by: Alexander Potapenko --- mm/kmsan/hooks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/kmsan/hooks.c b/mm/kmsan/hooks.c index 35f6b6e6a908..3807502766a3 100644 --- a/mm/kmsan/hooks.c +++ b/mm/kmsan/hooks.c @@ -260,6 +260,7 @@ void kmsan_handle_urb(const struct urb *urb, bool is_out) urb->transfer_buffer_length, /*checked*/ false); } +EXPORT_SYMBOL_GPL(kmsan_handle_urb); static void kmsan_handle_dma_page(const void *addr, size_t size, enum dma_data_direction dir)