Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2681680pxb; Fri, 5 Nov 2021 02:55:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3KoHg9A9Is5PIyGM8yPHPfJpQM28ko0zqxpygzs1qlqPnT2agGjac0aiHxAeL7Hn/8U52 X-Received: by 2002:aa7:c044:: with SMTP id k4mr50265965edo.369.1636106147952; Fri, 05 Nov 2021 02:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636106147; cv=none; d=google.com; s=arc-20160816; b=McwAe5v/8fr9IoGKHgZWpZJChbjWSAMKTlpmvZBtVTD/vmYX7Szzo1sevJhSso93uR 0zbS//Vi4rWc5IsxyELtTrS2nL9mUu68Z199Wn5LNSFtw5zZ5MjWcaa+aAw02+K59Ytw tYN2ZW0X4l1M6nQZllLG6B9cv9aFmP0x41bg4RjrYSirBEX8VI6F0DOS2NaDXexCpLS1 0HPqw29cNIpcBvqu9z8+RFUMcMcGD7GYEnSX6rJ7+IvYijyVrB2hd5RNM19qkpzsX4FJ hfdCvj0LgKTuCnJe7ie8pseq1GtKHMLmdAERqxgBdi5/QatUJD8ZDoax7EWQ8NgMvZDv sIHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=mby2JIZUNM+DNzTfY4azBDzQa/92IvvCw8tLadYHt78=; b=Q/VJs8NWFPR2+hhJS8c3rkYBYZIOgMGakm+ZLN2oDkO9n2+GTgq5uo4iooLcOR/7TZ 3DExTSI429pSXbUwcyZV8VhnF1ZD+2a5CKPgc3u/Y6psQgs/aao3NN+A0EtaLEfDBOG1 fr5qSkZYts6X56BwgaN2IoLMl9WlXyujQzq5yF3rXZF8Tohqtxo1fuZlS/KXjDu5I3HG uPdvZm7AQCR0npgoJBQ1WPcLCL1GTEZYaK8+4ucAOomenHEEopgDtCDb2PkPpTJBfnSc ZmInyymzJyUBuz758oAw1k+Oom0dMo0bOQXoKtnhKNppFiuYHY3irxmavR4sUaTvx2mu 3kKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=rNlRdZcK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t13si118376ejf.616.2021.11.05.02.55.22; Fri, 05 Nov 2021 02:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=rNlRdZcK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232837AbhKEJ5v (ORCPT + 99 others); Fri, 5 Nov 2021 05:57:51 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:50992 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbhKEJ5u (ORCPT ); Fri, 5 Nov 2021 05:57:50 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 4DEA91FD33; Fri, 5 Nov 2021 09:55:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1636106109; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mby2JIZUNM+DNzTfY4azBDzQa/92IvvCw8tLadYHt78=; b=rNlRdZcKQOCSZpYPzPrRzb2E+1bXLWVEnJM4Dzb5PAiL9uNR+XeyDlYZ3UTyI6Fml8Cv8C vx9asIPpjaxVUPubuozUoaYNWXM5AH5VpTx5MjycaA0faTncC5vcdk65IDTZXHAjhSvB1e poh38Gdvgtr80NuSSZMT1EpLyodmnCk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1636106109; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mby2JIZUNM+DNzTfY4azBDzQa/92IvvCw8tLadYHt78=; b=nzctrc7rLdjmdCVlJNft5ocJrbG6SAddj/2+I5zFvjB2sJzkxB3jwNmuGN1hzLRVZzMixK /fHuVK51FITdOyAQ== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) by relay2.suse.de (Postfix) with ESMTP id 4FBFF2C14A; Fri, 5 Nov 2021 09:55:07 +0000 (UTC) From: Michal Suchanek To: keyrings@vger.kernel.org Cc: Michal Suchanek , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Alexander Gordeev , David Howells , Herbert Xu , "David S. Miller" , Luis Chamberlain , Jessica Yu , Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , Rob Herring , Lakshmi Ramasubramanian , Hari Bathini , Thiago Jung Bauermann , Frank van der Linden , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-crypto@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [PATCH 0/2] Additional appended signature cleanup Date: Fri, 5 Nov 2021 10:55:03 +0100 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org There is one more copy of the code checking appended signarutes. Merge the common code to module_signature.c Thanks Michal Michal Suchanek (2): module: Use key_being_used_for for log messages in verify_appended_signature module: Move duplicate mod_check_sig users code to mod_parse_sig arch/powerpc/kexec/elf_64.c | 2 +- arch/s390/kernel/machine_kexec_file.c | 2 +- crypto/asymmetric_keys/asymmetric_type.c | 1 + include/linux/module_signature.h | 1 + include/linux/verification.h | 3 +- kernel/module.c | 3 +- kernel/module_signature.c | 56 +++++++++++++++++++++++- kernel/module_signing.c | 33 ++++---------- security/integrity/ima/ima_modsig.c | 22 ++-------- 9 files changed, 74 insertions(+), 49 deletions(-) -- 2.31.1