From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5036D2D0E9 for ; Tue, 13 Jan 2026 12:46:58 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4dr8Bw5Lg3z2ynC; Tue, 13 Jan 2026 23:46:48 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1768308408; cv=none; b=Am6+olALR7Xh27wgpmSYYZQB+/+SubbrqHSVt0I7oUNXGEjZpPG5E94mARv1XO7aD4w0jIC1pwtBMoOLXBye5PKhZbVMSupN+cKWrhHwjaOVX5/sYz1QdDHgb0y1oCEwYht89E8WKBqnWP1VgoH62nEGbqujFKAjym1+/jZE9OccfxjPRwwwTe1O1ljlkiD4Q54nU2KKFsuMcyQLK7mYPreyhB46qsAiVgKa+Bg2Ju/fA1Yv3SLCGhEIVqmcaICL5WMhCHpf5qWHBF6hnCmQyXlSG9akjcGU+vC9/yJVGn2EOLVOnBtRIN4vpNrkF58A2UTUuX+n7XihWcvFz6SIOA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1768308408; c=relaxed/relaxed; bh=CeygNIzHFWJ7cWbz5rn6ZflPngLSKJOy6OOrAL0rlRc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lQ9NhHcvkjNi8wBMCHYrzT+c3shuZHR1MbeGkaUPuVLmNiEACCAhYak723I3bV8UbD9wPXUoLIzAzbOENOIeXFj0KkhJcDCf/B019SsidGvKNhcy9FPcRlvEkvMZUlafVAWldJnt0Khi0QR56BHyC0XyQQkTUcs+q1LnUrZCMh0VyvjgZQLbX5J8UxgVrH7+M0eXY9WddAkWwfCLSW8fASux10c3wamK8XLy+wwP6iYEmSTAfEweUxvazqgJZKS6gsgoQlUe1BoC/3xMllaK0R/4O1+YGWi2vidmqiVcR5VnmUjhaxSGZCPAdm9B0ntF8nhzn81yKXRQxpILKHyvjg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; dkim=pass (1024-bit key; unprotected) header.d=weissschuh.net header.i=@weissschuh.net header.a=rsa-sha256 header.s=mail header.b=nykdCqRX; dkim-atps=neutral; spf=pass (client-ip=159.69.126.157; helo=todd.t-8ch.de; envelope-from=linux@weissschuh.net; receiver=lists.ozlabs.org) smtp.mailfrom=weissschuh.net Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=weissschuh.net header.i=@weissschuh.net header.a=rsa-sha256 header.s=mail header.b=nykdCqRX; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=weissschuh.net (client-ip=159.69.126.157; helo=todd.t-8ch.de; envelope-from=linux@weissschuh.net; receiver=lists.ozlabs.org) Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4dr8Bw0Dg2z2ykf for ; Tue, 13 Jan 2026 23:46:48 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1768307860; bh=s0y09ejJrfvI6BDYjzt+p3QqNUHYOG0PUerqb17chAU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=nykdCqRXMQEPNNVhqI4IMkhiOVHlWWTvYcRj6i/WpHHMJuriU0oAdA6iaFR0bxyCp RqnMAFimntilzRwbpGFb977FfLmG7lTw2tkOB7UXSOpSKEZ4eUzY5XEw2iK3gIXums KLNufKaP8k/iv8PG/rUfSk4ssFbwf0H+NXhvUH2g= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 13 Jan 2026 13:28:48 +0100 Subject: [PATCH v4 04/17] module: Make mod_verify_sig() static X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260113-module-hashes-v4-4-0b932db9b56b@weissschuh.net> References: <20260113-module-hashes-v4-0-0b932db9b56b@weissschuh.net> In-Reply-To: <20260113-module-hashes-v4-0-0b932db9b56b@weissschuh.net> To: Nathan Chancellor , Arnd Bergmann , Luis Chamberlain , Petr Pavlu , Sami Tolvanen , Daniel Gomez , Paul Moore , James Morris , "Serge E. Hallyn" , Jonathan Corbet , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Nicolas Schier , Daniel Gomez , Aaron Tomlin , "Christophe Leroy (CS GROUP)" , Nicolas Schier , Nicolas Bouchinet , Xiu Jianfeng , Nicolas Schier , Christophe Leroy Cc: =?utf-8?q?Fabian_Gr=C3=BCnbichler?= , Arnout Engelen , Mattia Rizzolo , kpcyrd , Christian Heusel , =?utf-8?q?C=C3=A2ju_Mihai-Drosi?= , Sebastian Andrzej Siewior , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-modules@vger.kernel.org, linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1768307859; l=1228; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=s0y09ejJrfvI6BDYjzt+p3QqNUHYOG0PUerqb17chAU=; b=uwg0wFTAu3Q06NkGGP+SClBTEtm6t/P9IPUONWe98bNwGb9YkRYeWkqllddS3Jy0aw5RpuMhA a43F4kdpYaJAlRRI+ZcWb/HGQ+OCDraXpoYd0EBmq25H2uVLsqPNyev X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= It is not used outside of signing.c. Signed-off-by: Thomas Weißschuh --- kernel/module/internal.h | 1 - kernel/module/signing.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/module/internal.h b/kernel/module/internal.h index 618202578b42..e68fbcd60c35 100644 --- a/kernel/module/internal.h +++ b/kernel/module/internal.h @@ -119,7 +119,6 @@ struct module_use { struct module *source, *target; }; -int mod_verify_sig(const void *mod, struct load_info *info); int try_to_force_load(struct module *mod, const char *reason); bool find_symbol(struct find_symbol_arg *fsa); struct module *find_module_all(const char *name, size_t len, bool even_unformed); diff --git a/kernel/module/signing.c b/kernel/module/signing.c index a2ff4242e623..fe3f51ac6199 100644 --- a/kernel/module/signing.c +++ b/kernel/module/signing.c @@ -40,7 +40,7 @@ void set_module_sig_enforced(void) /* * Verify the signature on a module. */ -int mod_verify_sig(const void *mod, struct load_info *info) +static int mod_verify_sig(const void *mod, struct load_info *info) { struct module_signature ms; size_t sig_len, modlen = info->len; -- 2.52.0