Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3BB7C43603 for ; Tue, 17 Dec 2019 02:06:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 901AF24655 for ; Tue, 17 Dec 2019 02:06:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbfLQCGo (ORCPT ); Mon, 16 Dec 2019 21:06:44 -0500 Received: from mga04.intel.com ([192.55.52.120]:51523 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbfLQCGo (ORCPT ); Mon, 16 Dec 2019 21:06:44 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Dec 2019 18:06:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,323,1571727600"; d="scan'208";a="205315700" Received: from chauvina-mobl1.ger.corp.intel.com ([10.251.85.48]) by orsmga007.jf.intel.com with ESMTP; 16 Dec 2019 18:06:41 -0800 Message-ID: <67dd5c51becbe4500f5db297d5845c9c3c5db285.camel@linux.intel.com> Subject: Re: [PATCH URGENT FIX] security: keys: trusted: fix lost handle flush From: Jarkko Sakkinen To: James Bottomley , linux-integrity@vger.kernel.org Cc: Sumit Garg In-Reply-To: <1576173515.15886.7.camel@HansenPartnership.com> References: <1576173515.15886.7.camel@HansenPartnership.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 17 Dec 2019 04:05:25 +0200 User-Agent: Evolution 3.34.1-2 Content-Transfer-Encoding: 7bit Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org On Thu, 2019-12-12 at 12:58 -0500, James Bottomley wrote: > The original code, before it was moved into security/keys/trusted-keys > had a flush after the blob unseal. Without that flush, the volatile > handles increase in the TPM until it becomes unusable and the system > either has to be rebooted or the TPM volatile area manually flushed. > Fix by adding back the lost flush, which we now have to export because > of the relocation of the trusted key code may cause the consumer to be > modular. > > Signed-off-by: James Bottomley > Fixes: 2e19e10131a0 ("KEYS: trusted: Move TPM2 trusted keys code") Reviewed-by: Jarkko Sakkinen Will collect to my rc3 PR, thank you. /Jarkko