Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp24277ybt; Tue, 30 Jun 2020 14:02:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymPvnxWrxIGj6yKqh5i0x49YFb1DuoeKwuO2oI3r1VlzMM+nUkjS15hFLFJr4kcifeJn8U X-Received: by 2002:a50:f08c:: with SMTP id v12mr24705779edl.119.1593550498749; Tue, 30 Jun 2020 13:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593550498; cv=none; d=google.com; s=arc-20160816; b=N++DAY9aJv5IfbIrM57hF2ptqA5aojczcKxcsHfTG09AMV83xdHSvdrTB8Dz29BICS QDAoSnNS2fu+uYQlxfIi7+T2+db8S4QxH3w2wOXtPK8EGeMqLu69p3l+5MPwXqIIJONv xk8E7kL4i4IKgDi9YdJB+k46p7QqW6XkHwX+2HvlPbiCFQuGb5NfvHzVrNkDzYTk9u/I wf6+qTgMZe0z5rzdtpAGh8CG9N06NDXJR0gQcioF2pjN7t6IR9sAxrpzzHssn6traGHX DG5UtFfCa/ps61sF0ra2ENJ1gYDHfCWZQkt0QsQ0f3JhCIVL5AnovoUEW27vkR5qN0TK o1Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ta3QiFyXugeuA+urmixcQfRxGdpjyq1pxJZ1EMys5Xg=; b=YLA7MGPrcsqSrJ+jb2jsthkzV2mFLbzlrm4tITR1QV3dxPNqnlMueb98dYWA/7+SJH gvA5FaEVTLtEn6BwJWqAZBi9z4PxKZX5sthBqYXzpDv5dyfNaTHRCEUMpdczHQx+nKN0 PsQK/H6Rye00moLl6cxTivIeQFCcMLNALZlFKQMKWGwgcqxu+yO09Y5sNGr+BtKlfOBd UPQZb7W2GdgdAN3kluS6kpnHwvl/GlNKwTijt4D7fnh+ra6SoG80M0uO+JOjOb68rcup 075yl6qMsIa2HkBz9FuTLEzsbli3G357D9sjbFNh7f4AF2Z+GqyteEN4yUcIbwzG2udJ Jy5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GXtiJxFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si2479840ejo.11.2020.06.30.13.54.35; Tue, 30 Jun 2020 13:54:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@redhat.com header.s=mimecast20190719 header.b=GXtiJxFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728677AbgF3TtU (ORCPT + 99 others); Tue, 30 Jun 2020 15:49:20 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:43619 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728597AbgF3TtH (ORCPT ); Tue, 30 Jun 2020 15:49:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593546546; 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: in-reply-to:in-reply-to:references:references; bh=ta3QiFyXugeuA+urmixcQfRxGdpjyq1pxJZ1EMys5Xg=; b=GXtiJxFz9lsfS+qKnCi0yFr4oU0qkz6Denot0e8FGZaADGg8qWKaViCxeVjGHKOR5mIGvC Hih8LQeeffEl6IKxgqeexIkEbImM+3GLJ2UvDyNSX+IDYax+0F7xR54tUVJZ63iBWJ7AXN J5VR6fRLCe4eu2XyeqglEbM54XOI29o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-72-3ZEdmMQOM5yrPXoOwZ7Sxg-1; Tue, 30 Jun 2020 15:49:02 -0400 X-MC-Unique: 3ZEdmMQOM5yrPXoOwZ7Sxg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 95981BFC3; Tue, 30 Jun 2020 19:49:00 +0000 (UTC) Received: from redhat.com (ovpn-113-167.phx2.redhat.com [10.3.113.167]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A8D7F7BEDE; Tue, 30 Jun 2020 19:48:58 +0000 (UTC) Date: Tue, 30 Jun 2020 15:48:56 -0400 From: Peter Jones To: Tyler Hicks Cc: Ard Biesheuvel , Matthew Garrett , Jarkko Sakkinen , Peter Huewe , Jason Gunthorpe , Petr Vandrovec , Nayna Jain , Thirupathaiah Annapureddy , linux-integrity , linux-efi , Linux Kernel Mailing List Subject: Re: [PATCH] tpm: Require that all digests are present in TCG_PCR_EVENT2 structures Message-ID: <20200630194855.mfctxgveltvphgnc@redhat.com> References: <20200615232504.1848159-1-tyhicks@linux.microsoft.com> <20200630185327.pasrylg7og7rlno3@redhat.com> <20200630192322.GF4694@sequoia> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200630192322.GF4694@sequoia> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 30, 2020 at 02:23:22PM -0500, Tyler Hicks wrote: > > > I am all for stringent checks, but this could potentially break > > > measured boot on systems that are working fine today, right? > > > > Seems like in that case our measurement is unreliable and can't really > > be trusted. That said, having things that were using the measurements > > before this suddenly stop being able to access sealed secrets is not a > > great experience for the user who unwittingly bought the junk hardware. > > I haven't seen where anyone has suggested that such junk hardware > exists. Do you know of or expect any firmware that has mismatched > TCG_PCR_EVENT2.digests.count and TCG_EfiSpecIdEvent.numberOfAlgorithms > values? If nobody has seen any hardware that actually produces the values you're excluding, then I don't have a strong objection. > I would think that the userspace code that's parsing > /sys/kernel/security/tpm0/binary_bios_measurements would also have > issues with such an event log. > > > Same with the zero-supported-hashes case. > > Small but important correction: it is a zero-hashes case, not a > zero-supported-hashes case > > There's no handshake involved or anything like that. This would only > cause problems if the firmware provided no hashes, which means the > firmware event log is unusable, anyways. Indeed. -- Peter