From patchwork Fri Oct 18 15:11:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13841930 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 D3F61D30016 for ; Fri, 18 Oct 2024 15:11:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 34D106B0083; Fri, 18 Oct 2024 11:11:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2FD626B0088; Fri, 18 Oct 2024 11:11:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1EBBF6B0089; Fri, 18 Oct 2024 11:11:23 -0400 (EDT) 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 01E276B0083 for ; Fri, 18 Oct 2024 11:11:22 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 816AE4067B for ; Fri, 18 Oct 2024 15:11:15 +0000 (UTC) X-FDA: 82687061268.30.FA9FEC3 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf29.hostedemail.com (Postfix) with ESMTP id 226F6120013 for ; Fri, 18 Oct 2024 15:11:05 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=tpbA0ysE; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf29.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729264246; a=rsa-sha256; cv=none; b=TrPEKd2+xjILknEZCOsG1XcF8JAvZnIBPbgbMB+UUtQ1XlnZSiwD3s0QEcSOTmnZbDqKo6 YX+DrSz9ix970oPbsKM6R9Ktm4MG6rFHGQjcg0gwyB513plxj93y2HEf00LYn76aTITGgS 1lTo1EngTd/jI7Vg82kf+ZmzuWKMeWk= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=tpbA0ysE; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf29.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729264246; 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=RpHpbO+ZKo4bml1x6Wrvprjn0Kj6Md1oMmjMwgYw/NI=; b=tAPwuu2rjGjI5v6M7J6GcO9A7LawhJLI3TybEy+YtJSeX4r4r9XygjSRXyKUHkar1+XuB9 5lRvwfuHZK9fBXuIZV5S60ZC2DvicoxfPtauEwHyNVsTvinWMqxl+d0+kK9otnZh1AbCfi 0B1la/3NEpfeOSZdBAgrrOrP8gCcgOQ= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 939185C02A6; Fri, 18 Oct 2024 15:11:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF18CC4CEC3; Fri, 18 Oct 2024 15:11:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729264279; bh=CJ+jBXETEz+wfc5ePlLRU0j3ezHl8RQ8g2Sbi6vH+jI=; h=From:To:Cc:Subject:Date:From; b=tpbA0ysEob46Hw34JccUdzfg7lIdx9iZv4nYPQzMlm1ziBoHu66FUeky+qg+621Z1 1IWH5QU7Tz3pi69brkwzwKeDXdsTXh2BxgPPxTJCt8eYPIJa6cjKwI3qIRtLVVDhZn SQfhH1G/1grERjA+UpZ6zEQGAr1ExQ/WXxfnz7T7/LyjHun6b/btoWg33KyDWqJWaI wgPjO3m8eeZjHUIim5q2Kq9MD3wbZ/UoUMgo8Bk8/THvBppcATYU/14tPw1Uxao9kH 8ZGo8JmRcDw+BaOFxY0cMygzqenNfpdZ3j5PheqYp4CTQFJ2YKMFX1HQJHDwnmKC2k fCaEFXIxtwr9w== From: Arnd Bergmann To: Andrew Morton , Sabyrzhan Tasbolatov , Andrey Konovalov Cc: Arnd Bergmann , Marco Elver , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm: export copy_to_kernel_nofault Date: Fri, 18 Oct 2024 15:11:09 +0000 Message-Id: <20241018151112.3533820-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: dksrefwiemx8rwor5uz77ut73uftza9c X-Rspamd-Queue-Id: 226F6120013 X-Rspamd-Server: rspam02 X-HE-Tag: 1729264265-555023 X-HE-Meta: U2FsdGVkX1/P2nbRDrecQRJOWF821gxXaWeVvRQnG1+WLUNvX5957iYwhHYSoPCUobsC/maeVk7R1Q0qGcSziKL2ESNFmkHkTqkb3VK44yK5NCVK7pTWZVE/TGOYnem2Mkuvuydz9mexIYU/SS8xpTO3I+sOZdoRZMGx4/Uovaa7miYir/HIG1okJoNE4El8rbd7tNCaSK0jOYDI9r+1/qOKs+GHQmbczutaI3qiNBbQUGuktDvxFuXt86rtP232xnWorx0aMuBxbcBgvE185FxA4EehoVqxvybBoYCbsxLXPyqz/J4qbQ58oveXhpQ813OfHg6XXT39yKO6yypIU3Cw/3Ug4Stmlue1IfLDW+kDbQ5Z6EeO1UHA8bBlHUe59alpOxw5Pr7iWwlNwNoDYkVsLMTvJEjPmY8smeANo+5BO+jRD8GJ0GPyHFRg4F6HtefMBcPIT85r0kASlUy5SYyCET25nS6TfHUgbxraYIM5HCZkIlCq/Zy0CzxQwSq6PXEwi5I2EgNS2nSv3dXGSJl3TgOYYv4xv/4RQYKYnYSHMNEpExOyggkzF6foc2aI1FILZvGKVXjybB+USxCiupVNbir6q96/tIhOaCQT6xzCwG9M862Jm87ZRUqTpvahEg69PYRdhHa/CpvTcRTUelqTJ4DD2o7V+pcE2+rx9ophga7S02dhoTReaOYD54ZpDQqqU1Vcu+vks4Cf4CF780dJX4X8ScMS+b3h9SIXRJUB7JlVabah0Gqt8o1iP1VKj6mMetOlhvaOssq96cFJZOumcp6YJxaZNWV0qv23OPCqpOZB9RB0/r7i0HN6ZRJs+YNqeK5+SjoyroGM6QOW6h+GMyPrrJ09Jel82UPb9UjvYozcCVW1QOBeYLiDNAbGwBCCtASTGIKeCfHrKfJLGT5NEGUhKev+VBqJAjhbus/bzhIsHNxLdjVMpjZJ22HQAClXNvnyfQABPTY51TQ bFQbQi9W OFIsSlGBCpS8ySQm5ZKyzb+eHxiwB9oPnYQheg8oDJC2J8mhO+zIQ4FN4nOU7r5HVt2cyIQEcfULdjmzG1LcZ1dPJI4mA1ImKPTNyZRPZAOnkAbAUUjW8+lbNNa3ukUo/waq5LAuU9nUjlunkfuICw2oVEJDgZzsUIHNfY1Jm4o0QkikrrvYIALHJQdgjM7BgR/9piqJ5uzIj+BF2f10HxUljkyddvmjJu89eMImVc+siit3s+SYOnKKUl7tA1IeTkty4 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: List-Subscribe: List-Unsubscribe: From: Arnd Bergmann This symbol is now used on the kasan test module, so it needs to be exported. ERROR: modpost: "copy_to_kernel_nofault" [mm/kasan/kasan_test.ko] undefined! Fixes: 44749130ffb4 ("kasan: migrate copy_user_test to kunit") Signed-off-by: Arnd Bergmann Acked-by: David Hildenbrand Reviewed-by: Andrey Konovalov --- mm/maccess.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/maccess.c b/mm/maccess.c index 3ca55ec63a6a..8f0906180a94 100644 --- a/mm/maccess.c +++ b/mm/maccess.c @@ -82,6 +82,7 @@ long copy_to_kernel_nofault(void *dst, const void *src, size_t size) pagefault_enable(); return -EFAULT; } +EXPORT_SYMBOL_GPL(copy_to_kernel_nofault); long strncpy_from_kernel_nofault(char *dst, const void *unsafe_addr, long count) {