Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp259441pxb; Tue, 15 Feb 2022 12:43:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLx+q0UpsTGMlIvEIgNgVms80rdrBINvGux3ZwegSmzh/uEkHy89eopAJvevToBRU6ByCz X-Received: by 2002:a17:903:2443:: with SMTP id l3mr798558pls.146.1644957782139; Tue, 15 Feb 2022 12:43:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644957782; cv=none; d=google.com; s=arc-20160816; b=TVBotyHBpkYCuDL8Ac2e/UvD33YE7r9yQ26fdF5oOCG+apyqHMz7D0W8j+A2k6HTOp xp7L32t+whEFZHgyzBSHqk0QtXmgnAFRX6pB/xyZJ0f4WtIKgrrUk06pByKwpAU8vYcB Ss/r+3ltardmono71JPHX0m0AqJqKAGqoSQHw9ayUhFhpyCQh0jRpUFUgIyfil5inEjg dDbtjtfaPg6iclK5MqxdUlUIPVd3wsxAqtzN3zI5urA5814FJYHIpUsjyjVcGUsww5Ri KCHJiZVE8eMIj+BPGza5/NvhC+uQ0pTsHrNXzbKzvedJd7CxLpkt4QyfZ5a4QK/Fpe6c pGKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature:dkim-signature; bh=8u8PjdIzbfQMtiY3mRFAQedyhueCJjszz6hXjTc8rTk=; b=0mzxO7BvXIfStx2kpPiG4HjqcZBDvqVbqSs/qm336gBH1zXTWaVGP92pKUr0EPOJIY hE4bWOe9fBrK5GZSJ1c0NB9eZhYpejocTU3CHLR0FE+AM+7yEKxIOAtsmLsqhdaM9bMO IX308+wCpEOScjgSXI52mfrQTrV/SS1BQL1Xhu6kIh+MamPHeZlW1hGpLDFY7OGKKIac xuNfhQMH24rIYy0F6Rs8ospulnKEbfnVdya24uYscqzOe53Ojh1Dqk06nwmI/1E/vp7B 5XbwBQISqGvRUGqY40dFKUn+IdW3dEsc4DZGoqwG6pSx7mm+JVAEAk0TvzxrarbTOPZe qt3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@suse.de header.s=susede2_rsa header.b="QhW6nE0/"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=uzveXHo0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2si9855908pfo.21.2022.02.15.12.42.46; Tue, 15 Feb 2022 12:43:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@suse.de header.s=susede2_rsa header.b="QhW6nE0/"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=uzveXHo0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243748AbiBOTkX (ORCPT + 99 others); Tue, 15 Feb 2022 14:40:23 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243704AbiBOTkV (ORCPT ); Tue, 15 Feb 2022 14:40:21 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07C43DEAD; Tue, 15 Feb 2022 11:40:10 -0800 (PST) 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 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.31.1