Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp520851pxb; Tue, 15 Feb 2022 20:41:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGu7eBfoQtyvcjd7hNz9LBJuDXL05ahSrIujOA/HHopYx8jDEn+1MXt/USyGUMP8pTEh+l X-Received: by 2002:a05:6402:51cb:b0:409:e99f:bc1c with SMTP id r11-20020a05640251cb00b00409e99fbc1cmr1105822edd.68.1644986473377; Tue, 15 Feb 2022 20:41:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644986473; cv=none; d=google.com; s=arc-20160816; b=d7lrY7OtjSz+baalARs3jOyhtc0wIZJiy+7Ak6B4pDMWTExs1ff0wgXIbb76fv0bUc jm0bP1FOhit8lpFo6UdnopM7DRP56U3rbB2LC4R4hVXz3TFveVshNMB2wKloPT/JXX49 5nmgpQHm7YZBaW5LmSkN6lXu9JxhxpVb7zZkTuPzvozwMc14LmjDfY/Ysv6hkzr96UAe bmeygWLhUwrWR3VY5sflIVtj/q8XikelCqUV9kqLRbo+mreOnmx3Bl1kXeuQa+3J6F9i tloSsz1RMhJMwUuThO+nFzrAdEh/EPoXfGTLPAf96fskiKC7YjghDpGTyGyizU6eACps WUDQ== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=CZO2vVfbTb0RbiaMRH3DHFFoOpbO0f4KMW0LM2NECLI=; b=xXb70+mwPhMPI5N7h5s1euRXY9sFWgWYJyoaR6VRdRPLVy7572ieA9mM7jI5w54jXq AcbFLIKNftIuWV9y1egau+SIFotgcgoMVsof3goOjb7Lx3urhOmt0Brgca7H+UGrc/wo Tpan6iZZ/lfTsf3kbBq1g2srWfaCytS/QT7J5ASInecxd4+GKSVgnKVYYB5yJFGr3yvu MUu+xmEfe3w8kf3R+rW5ne/YuGiLL5Zb9BPhCwBtSY6FqRu4yCmzf31OdqL46iwO1A0C UdGypEH/NDZkgEFQNOlSljRX0mz9/Ceq65VjfRs2SBkkcINOLyraKHjXZd7f6THjNg6u NEEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oHf2pcsn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3si14772683ejt.423.2022.02.15.20.40.50; Tue, 15 Feb 2022 20:41:13 -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=pass header.i=@ibm.com header.s=pp1 header.b=oHf2pcsn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244008AbiBOUJM (ORCPT + 99 others); Tue, 15 Feb 2022 15:09:12 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243992AbiBOUJJ (ORCPT ); Tue, 15 Feb 2022 15:09:09 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A55F2B0C41; Tue, 15 Feb 2022 12:08:58 -0800 (PST) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21FJsadO014857; Tue, 15 Feb 2022 20:08:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=CZO2vVfbTb0RbiaMRH3DHFFoOpbO0f4KMW0LM2NECLI=; b=oHf2pcsnXBfk3reeAPkZi0So1/lIhu7AWhDYN8eK1iTpyHZ4e5PVzlNJj74bcKKjZnxz xexiRwoCuuj0MsYlkN1bSyNEjC+0d9y/gfvW7YHD0hsqiC3RH3sWxTn7Nt9YAjSCWCDP cec4IT2DJ7GXwXzn+qKp3upiFbWPORrcsBtvZyC0HutqUTNZIUCA0i6pbrVEpKSE1w3a XYviHlFtgWAH6Q/21AFmW9HyiREM2f6bC0D8Wyze22zFPZRiDYMsk0OUD6FFPqpcYfyL OilFNaNYlAaKnGBY4L02DjP9U5qwCGoRJRkd+8T02n55uHQJODB952sYGXo/5KH2y/xo LA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e8jre8bgb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Feb 2022 20:08:27 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 21FK3cwE028627; Tue, 15 Feb 2022 20:08:26 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e8jre8bfp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Feb 2022 20:08:26 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 21FK2VEW007429; Tue, 15 Feb 2022 20:08:24 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma04ams.nl.ibm.com with ESMTP id 3e64ha2gn2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Feb 2022 20:08:24 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 21FK8LNN44958156 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Feb 2022 20:08:21 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6638211C04C; Tue, 15 Feb 2022 20:08:21 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A1B5511C054; Tue, 15 Feb 2022 20:08:18 +0000 (GMT) Received: from sig-9-65-88-149.ibm.com (unknown [9.65.88.149]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 15 Feb 2022 20:08:18 +0000 (GMT) Message-ID: <3e39412657a4b0839bcf38544d591959e89877b8.camel@linux.ibm.com> Subject: Re: [PATCH 4/4] module, KEYS: Make use of platform keyring for signature verification From: Mimi Zohar To: Michal Suchanek Cc: 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 , Kairui Song , Martin Schwidefsky , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-modules@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, stable@kernel.org, Eric Snowberg Date: Tue, 15 Feb 2022 15:08:18 -0500 In-Reply-To: <840433bc93a58d6dfc4d96c34c0c3b158a0e669d.1644953683.git.msuchanek@suse.de> References: <840433bc93a58d6dfc4d96c34c0c3b158a0e669d.1644953683.git.msuchanek@suse.de> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 0GR9onIvF1UifqvAn0Td1dXMzNG0In9Z X-Proofpoint-ORIG-GUID: aoAH1LPXWXCnZNv3qt9jCU3grFgSYc55 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-15_06,2022-02-14_04,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 suspectscore=0 clxscore=1011 spamscore=0 phishscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202150113 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Cc'ing Eric Snowberg] Hi Michal, On Tue, 2022-02-15 at 20:39 +0100, Michal Suchanek wrote: > Commit 278311e417be ("kexec, KEYS: Make use of platform keyring for signature verify") > adds support for use of platform keyring in kexec verification but > support for modules is missing. > > Add support for verification of modules with keys from platform keyring > as well. Permission for loading the pre-OS keys onto the "platform" keyring and using them is limited to verifying the kexec kernel image, nothing else. FYI, Eric Snowberg's initial patch set titled "[PATCH v10 0/8] Enroll kernel keys thru MOK" is queued in Jarkko's git repo to be usptreamed. A subsequent patch set is expected. -- thanks, Mimi [1] Message-Id: <20211124044124.998170-11-eric.snowberg@oracle.com>