From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:44904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728481AbeKQCc6 (ORCPT ); Fri, 16 Nov 2018 21:32:58 -0500 Date: Fri, 16 Nov 2018 11:19:57 -0500 From: Sasha Levin To: Jarkko Sakkinen Cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, James Bottomley , Tomas Winkler , Tadeusz Struk , Stefan Berger , Nayna Jain , stable@vger.kernel.org, Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , open list Subject: Re: [PATCH v8 08/17] tpm: call tpm2_flush_space() on error in tpm_try_transmit() Message-ID: <20181116161957.GG1706@sasha-vm> References: <20181116123845.15705-1-jarkko.sakkinen@linux.intel.com> <20181116123845.15705-9-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181116123845.15705-9-jarkko.sakkinen@linux.intel.com> Sender: stable-owner@vger.kernel.org List-ID: On Fri, Nov 16, 2018 at 02:38:32PM +0200, Jarkko Sakkinen wrote: >Always call tpm2_flush_space() on failure in tpm_try_transmit() so that >the volatile memory of the TPM gets cleared. If /dev/tpm0 does not have >sufficient permissions (usually it has), this could lead to the leakage >of TPM objects. Through /dev/tpmrm0 this issue does not raise any new >security concerns. > >Cc: James Bottomley >Cc: stable@vger.kernel.org >Fixes: 745b361e989a ("tpm:tpm: infrastructure for TPM spaces") >Signed-off-by: Jarkko Sakkinen >Reviewed-by: Stefan Berger Hi Jarkko, This patch seems to depend on previous patches in this series, but those were not tagged for stable. Do they also need to be backported? If so, can you tag them as such? -- Thanks, Sasha