From mboxrd@z Thu Jan 1 00:00:00 1970 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 E570AC433F5 for ; Mon, 11 Apr 2022 01:56:37 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XfN1E8uiYlod1FQukbCDUoWu3BAXfXPkPTVnnNmcIao=; b=0t5XD4paGXJpl1RiknVhtGFUgv BgkQCtcJSCG230lwvekXWMvDXwnyhM6iVxXEOaXn6bEd91cE8sjHzejFi4wJTc1tMveC0YNA+xYoo B72T+eZh0O8AhSfB6EXybKnSMgVyuCC/mLwVViYskRLFoigN6qiFmWfuxcz2O0clxZJ+2JL14v1XX F24lREN7JmLT1ni7YXgj+PLdrGRnrWWRf77Jvhmr3C5FqwRX0E8MeYreuoAEn15IDWaKJbjSz6tyM zwLLn9Yjzgw6+MwBk7mOe7W3yYngXB9RDjy/6pH2EuJVbVRNZ8+McUoTrj3pRCYI0da6eBwbY8jnh +LmbMXtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndjH8-0068zU-Os; Mon, 11 Apr 2022 01:55:30 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndjH4-0068x1-Kf for linux-arm-kernel@lists.infradead.org; Mon, 11 Apr 2022 01:55:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649642123; 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=zuJKaK7r7LHLN4cwSBWmZIWeWVXu8A4aKeKeUvCuS04=; b=EG3dOHslXhLS+pSLx7gzxmiHkiUBX+2WpXrWO4S311AQWKiXLVNTcK50IuYsay8+OR6DSb ll0N1YMTVc97K+WWQEd3VDuL9zLPNhzJHJ76FyVj+nsTuFrFcGAbAZU1oHozzCh8/jbX9k foOFuvsnY4UiUrFP069v+UOnBeMniWk= Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-133-mgoA9eT6Pwe54idYflBkdw-1; Sun, 10 Apr 2022 21:55:22 -0400 X-MC-Unique: mgoA9eT6Pwe54idYflBkdw-1 Received: by mail-pl1-f199.google.com with SMTP id s18-20020a170902ea1200b001570031e832so4054124plg.6 for ; Sun, 10 Apr 2022 18:55:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=zuJKaK7r7LHLN4cwSBWmZIWeWVXu8A4aKeKeUvCuS04=; b=jkghZZVgvWj2aMAfFO3UElLcQgFa1RrN6isofhYCkjiG8kzogvsam9EbbACixKvK4K mwRBwAbeeUKkX2ycIAKX/sTbyYhkeu2JrwNSnF1Gr0UWKRuqFOe+wuY5JIYq1gCuW7sV X7kDhGCFWJG0D3HN5hy9QpvXSxJuRW72PzVSFaggBCiY7wmrCbL0lLS4szqGZuLs2cAe 42TVNn1neEisZX7Mtgr+jc61485BcZk/PANB3IgUDuTU78DPUkH4bGlwCnc9FD/NLS29 z8FyEeZupSlOwmEm3gjEgmICLKaTp/I/ysrHBE17+OwebTPlJHC/mrg6e8FxXOSsQcSI PYsw== X-Gm-Message-State: AOAM530ivC8ju/FP+4vqRTa+MLrWut0IFsaZ+Cn2IHi2XgwAuAIvYPPE ElMz36H182xh/u6CKqEy8H75mZEBCiGRNR1j9rukSOAz0MC06pkSkhhJYepiKlYVnv/O+qpiyFj uZB3YVFQqDcsYaiA14vI+h9jdIWk2oUT64lw= X-Received: by 2002:a17:90b:3502:b0:1c7:2920:7c5f with SMTP id ls2-20020a17090b350200b001c729207c5fmr34349713pjb.89.1649642120692; Sun, 10 Apr 2022 18:55:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyjKm8RBDV6usV5ExyVcnYmqgT4AFa8hKL82Xr7ORvZ06konjDB3gPHWHMdx4XPH8nsg2FKg== X-Received: by 2002:a17:90b:3502:b0:1c7:2920:7c5f with SMTP id ls2-20020a17090b350200b001c729207c5fmr34349692pjb.89.1649642120293; Sun, 10 Apr 2022 18:55:20 -0700 (PDT) Received: from localhost ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id rj13-20020a17090b3e8d00b001c77bc09541sm18585553pjb.51.2022.04.10.18.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 18:55:19 -0700 (PDT) Date: Mon, 11 Apr 2022 09:52:18 +0800 From: Coiby Xu To: Baoquan He , Michal =?utf-8?B?U3VjaMOhbmVr?= Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Dave Young , Will Deacon , "Eric W . Biederman" , akpm@linux-foundation.org Subject: Re: [PATCH v5 0/3] use more system keyrings to verify arm64 kdump kernel image signature Message-ID: <20220411015218.ckw42xx5rrhidhpd@Rk> References: <20220401013118.348084-1-coxu@redhat.com> <20220408085931.GW163591@kunlun.suse.cz> MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=coxu@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220410_185526_775631_956C6C7C X-CRM114-Status: GOOD ( 20.59 ) 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: , Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Apr 11, 2022 at 09:13:32AM +0800, Baoquan He wrote: >On 04/08/22 at 10:59am, Michal Such=E1nek wrote: >> On Fri, Apr 08, 2022 at 03:17:19PM +0800, Baoquan He wrote: >> > Hi Coiby, >> > >> > On 04/01/22 at 09:31am, Coiby Xu wrote: >> > > Currently, a problem faced by arm64 is if a kernel image is signed b= y a >> > > MOK key, loading it via the kexec_file_load() system call would be >> > > rejected with the error "Lockdown: kexec: kexec of unsigned images is >> > > restricted; see man kernel_lockdown.7". >> > > >> > > This patch set allows arm64 to use more system keyrings to verify kd= ump >> > > kernel image signature by making the existing code in x64 public. >> > >> > Thanks for updating. It would be great to tell why the problem is >> > met, then allow arm64 to use more system keyrings can solve it. >> >> The reason is that MOK keys are (if anywhere) linked to the secondary ^^^^^^^^^ platform? >> keyring, and only primary keyring is used on arm64. Thanks Michal for providing the info! Btw, I think you made a typo because MOK keys are linked to the platform keyring, right? > >Thanks for explaining. This is valuable information and should >be put into log for better understanding when reviewing or >reading code later. Thanks for the reminder! I'll include this info in the commit message. > -- = Best regards, Coiby _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel