From nobody Thu Apr 9 13:37:20 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 1FF62374199; Mon, 2 Mar 2026 12:42:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772455379; cv=none; b=eBct/IL9slAQEknS2v5PfwJR8Q4v/1uCizy9qfj4PLyCehmAhOukBccwMq4te7O80ast85s0/7lQeLPJ8trD6ddQczV2cz6UQpO23/iv0DvyEizdFqxshz8lPem9jommkgcQzn9hRyrAz/MfLvxJ3v0RMb+PL7U7j/uq/cV55bw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772455379; c=relaxed/simple; bh=ur3wno1ZvBzeP1rsZGdFqu3K7q/acmvdMgedhUg8Hrk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZvqRp/oBr5wTKPafI0h0RWiYjhKhHhTaYGvUhxcNyeoKZ1CIuiixsrwfju29XqiTbKrYMwI3msTshtJT4sGbR4DliE/3A7P4n2eh7YO/gXNUxZeGVZz1HzuZ1Oepa8jvj9VZBXVPtU9KtJBJzjIiPLpyQxH/e3tg90Mf8sVTOYQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=n+uZVmpa; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=tuCvpsju; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="n+uZVmpa"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="tuCvpsju" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772455376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jpv6S9NQcAa5B5KVkj2jiXMPZnAkS7rcD+/ivsQs98g=; b=n+uZVmpaVzTjTZbRebibMJdZdYHx/5DNiUzQNK5Jn62Xhh3wffk0hJMR6USokShmVJ4XVW nGiA4QVbmW7mpgbOUdCcntSXEcw590joPQ0r7vl4lwwDp7TXrjTd7uoMpJEGb0CltDvbFW jPy99aQlgtfqxBSKGeR7ae+HpMMAz26R2DmR7x5Dulp5sA8GcFh7HlPoMI9x7BQArbCwyB ba6+50WDFg7qdxSKjN/f1mVaRqmH6b7K0sk8D1YzdqUSxcmNX02/UOI9jMjwlgQ1M9mHbR o1vloc4TOAayC97fngNBSqV2lvEttNbMInVgWn0it5ip0mEqDOXdKtwtFnDa7Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772455376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jpv6S9NQcAa5B5KVkj2jiXMPZnAkS7rcD+/ivsQs98g=; b=tuCvpsjuCYnCe87Hcz6IuxfolP15IsHNGcKTo3uVZvNEzNvKnRFaz8JaZtmAhTXJDS1UHY QHUnk4VZVaE6UyCw== Date: Mon, 02 Mar 2026 13:42:38 +0100 Subject: [PATCH 2/8] module: Drop unused signature types Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260302-module-signature-uapi-v1-2-207d955e0d69@linutronix.de> References: <20260302-module-signature-uapi-v1-0-207d955e0d69@linutronix.de> In-Reply-To: <20260302-module-signature-uapi-v1-0-207d955e0d69@linutronix.de> To: David Howells , David Woodhouse , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Paul Moore , James Morris , "Serge E. Hallyn" , Nathan Chancellor , Nicolas Schier , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan Cc: keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, linux-s390@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kbuild@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772455374; l=864; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=ur3wno1ZvBzeP1rsZGdFqu3K7q/acmvdMgedhUg8Hrk=; b=URcJQjEFOC2tm52Bx4DuKldD28dvW8muyMvcAk/fvBe3JN3YE2RAp5qikI6/jqWMLuYsz2dyJ gOab8VmtyowDnzvLWT82oCZyoIH3nq57mRsVwz8EAKawsJHmjuWUtDk X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Only PKCS#7 signatures are used today. Remove the unused enum values. As this enum is used in on-disk data, preserve the numeric value. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/linux/module_signature.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/module_signature.h b/include/linux/module_signat= ure.h index 7eb4b00381ac..820cc1473383 100644 --- a/include/linux/module_signature.h +++ b/include/linux/module_signature.h @@ -15,9 +15,7 @@ #define MODULE_SIG_STRING "~Module signature appended~\n" =20 enum pkey_id_type { - PKEY_ID_PGP, /* OpenPGP generated key ID */ - PKEY_ID_X509, /* X.509 arbitrary subjectKeyIdentifier */ - PKEY_ID_PKCS7, /* Signature in PKCS#7 message */ + PKEY_ID_PKCS7 =3D 2, /* Signature in PKCS#7 message */ }; =20 /* --=20 2.53.0