From patchwork Mon Jan 25 11:28:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12043247 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6710CC433E0 for ; Mon, 25 Jan 2021 11:28:42 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D756F22AAC for ; Mon, 25 Jan 2021 11:28:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D756F22AAC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2CD968D0002; Mon, 25 Jan 2021 06:28:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 27E4C8D0001; Mon, 25 Jan 2021 06:28:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1467A8D0002; Mon, 25 Jan 2021 06:28:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0182.hostedemail.com [216.40.44.182]) by kanga.kvack.org (Postfix) with ESMTP id F223B8D0001 for ; Mon, 25 Jan 2021 06:28:40 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id BBF7C3638 for ; Mon, 25 Jan 2021 11:28:40 +0000 (UTC) X-FDA: 77744074800.12.pin88_5e0fb6c27585 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id 9CDE4180555DE for ; Mon, 25 Jan 2021 11:28:40 +0000 (UTC) X-HE-Tag: pin88_5e0fb6c27585 X-Filterd-Recvd-Size: 2431 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf26.hostedemail.com (Postfix) with ESMTP for ; Mon, 25 Jan 2021 11:28:40 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 7DFE9222F9; Mon, 25 Jan 2021 11:28:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611574119; bh=Xp2YXhN5fYQEq2trNt3KUwGwkgV2teZlMQj7za+4IoI=; h=From:To:Cc:Subject:Date:From; b=QvKH9jeOavEWiOczUcI4W4UQQaWsny3NOCFBCniUa95Ut30fB55x3xS5KzuKfAle+ NYQr9nE8Cb70EEV3bYUcMyxgvvj8GA8gU12vzqQC8w+bxVIa4k8wF76DK0QttkQonH 28SovmJyPSmHPPykeccrah8i5dcqVr/oxcU9Umlv4FRsZ4gynvg6oX9R9piHSc2Q33 OSNavd2AKbUVT3YXYBhsuTBeTNcFTAHNIqG/Ihe+PKQJ09UnefFHyOi1sKa6IOVqAY mqm7fqRrZ7ffiUoF31ODqeHQHfUVicGx9JbdYViqefWxp4Fy7IdHtY515fZ7mdk4+2 5YDbFxLOSjh4Q== From: Arnd Bergmann To: Andrey Ryabinin , Andrew Morton , Stephen Rothwell , Andrey Konovalov , Marco Elver , Alexander Potapenko Cc: Arnd Bergmann , Dmitry Vyukov , Vincenzo Frascino , Walter Wu , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] kasan: export kasan_poison Date: Mon, 25 Jan 2021 12:28:13 +0100 Message-Id: <20210125112831.2156212-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 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 The unit test module fails to build after adding a reference to kasan_poison: ERROR: modpost: "kasan_poison" [lib/test_kasan.ko] undefined! Export this symbol to make it available to loadable modules. Fixes: b9b322c2bba9 ("kasan: add match-all tag tests") Signed-off-by: Arnd Bergmann Reviewed-by: Vincenzo Frascino --- mm/kasan/shadow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/kasan/shadow.c b/mm/kasan/shadow.c index de6b3f074742..32e7a5c148e6 100644 --- a/mm/kasan/shadow.c +++ b/mm/kasan/shadow.c @@ -94,6 +94,7 @@ void kasan_poison(const void *address, size_t size, u8 value) __memset(shadow_start, value, shadow_end - shadow_start); } +EXPORT_SYMBOL_GPL(kasan_poison); void kasan_unpoison(const void *address, size_t size) {