From patchwork Tue Feb 15 19:39:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Suchanek X-Patchwork-Id: 12747567 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 6FE9FC433FE for ; Tue, 15 Feb 2022 19:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=quN+xntXMQYizz30UTalSGdfJ4UT6GpP7cIUX9/1DLo=; b=ZnbyqLW0xt4IDQ wR657LTLCLvSlBH2UvhnWUIheye4g4A7tyt7eqyyRP6WhbhFd+1coT2ki/Gjn/7D8m9dLj2KLcAuB 3X7hNjVWN4Ftyoh1BOsSlQhZLhMXbMLvw15o6AmkLIV91GI9cefDng4ZPMLTm86ApcCDWJs3Gi2BF j9yoZY8aUnytfBu/N1MFMOE2EyRgJ+T/TO2Ydid3R3nXtr1W83pL1d0f236rIQRffQ0y/3l+0hb50 pv2SWvEA0feOy1mXfQp1e1Ox1XKuxJBRPtxOiRWsPz66WKadAHtXYeUI49zIiil1WqXppxGfdkSDW Wi2FPRJFGyYr6nLAnhOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nK3gN-004MBV-S5; Tue, 15 Feb 2022 19:40:16 +0000 Received: from smtp-out2.suse.de ([195.135.220.29]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nK3gK-004MA2-6Y for linux-arm-kernel@lists.infradead.org; Tue, 15 Feb 2022 19:40:13 +0000 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 90E381F37B; Tue, 15 Feb 2022 19:40:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644954008; 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; bh=8u8PjdIzbfQMtiY3mRFAQedyhueCJjszz6hXjTc8rTk=; b=QhW6nE0/GVBRI9VbtCzshznpy+OFGHS5foHg+1++JwkpZ6gkmNLpuXoEgiwI75QdunQq+x hcWZVaYOw0tVvhvlXgVP/aJsVObbxIEO7y37h/OGUA1UMCvkXoXtxWesdNtO+Zqso2b/aN 6dJloNGaWVH4K39c8Q7LBbs9OYOVEKg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644954008; 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; bh=8u8PjdIzbfQMtiY3mRFAQedyhueCJjszz6hXjTc8rTk=; b=uzveXHo0tshmF6FfZuSkt3f1rGVMAtsJ6UIRc2nR+GxdRu/kLFcU6JF7mSBO+gZZZ1dAJt jMlsOeFsN/jaORAQ== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) by relay2.suse.de (Postfix) with ESMTP id 36832A3B85; Tue, 15 Feb 2022 19:40:08 +0000 (UTC) From: Michal Suchanek To: Cc: Michal Suchanek , Catalin Marinas , Will Deacon , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Philipp Rudo , Baoquan He , Alexander Egorenkov , AKASHI Takahiro , James Morse , Dave Young , Mimi Zohar , Kairui Song , Martin Schwidefsky , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH 0/4] Unifrom keyring support across architectures and functions Date: Tue, 15 Feb 2022 20:39:37 +0100 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220215_114012_449076_761B7588 X-CRM114-Status: UNSURE ( 7.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org While testing KEXEC_SIG on powerpc I noticed discrepancy in support for different keyrings across architectures and between KEXEC_SIG and MODULE_SIG. Fix this by enabling suport for the missing keyrings. The latter two patches obviously conflict with the ongoing module code cleanup. If they turn out desirable I will add them to the other series dealing with KEXEC_SIG. The arm patches can be merged independently. Thanks Michal Michal Suchanek (4): Fix arm64 kexec forbidding kernels signed with keys in the secondary keyring to boot kexec, KEYS, arm64: Make use of platform keyring for signature verification kexec, KEYS, s390: Make use of built-in and secondary keyring for signature verification module, KEYS: Make use of platform keyring for signature verification arch/arm64/kernel/kexec_image.c | 13 +++++++++++-- arch/s390/kernel/machine_kexec_file.c | 18 +++++++++++++----- kernel/module_signing.c | 14 ++++++++++---- 3 files changed, 34 insertions(+), 11 deletions(-)