lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181118232157.GA1711@sasha-vm>
Date:   Sun, 18 Nov 2018 18:21:57 -0500
From:   Sasha Levin <sashal@...nel.org>
To:     Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>
Cc:     linux-integrity@...r.kernel.org,
        linux-security-module@...r.kernel.org,
        James Bottomley <James.Bottomley@...senPartnership.com>,
        Tomas Winkler <tomas.winkler@...el.com>,
        Tadeusz Struk <tadeusz.struk@...el.com>,
        Stefan Berger <stefanb@...ux.vnet.ibm.com>,
        Nayna Jain <nayna@...ux.ibm.com>, stable@...r.kernel.org,
        Peter Huewe <peterhuewe@....de>,
        Jason Gunthorpe <jgg@...pe.ca>, Arnd Bergmann <arnd@...db.de>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v8 08/17] tpm: call tpm2_flush_space() on error in
 tpm_try_transmit()

On Sun, Nov 18, 2018 at 09:36:18AM +0200, Jarkko Sakkinen wrote:
>On Fri, Nov 16, 2018 at 11:19:57AM -0500, Sasha Levin wrote:
>> 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 <James.Bottomley@...senPartnership.com>
>> > Cc: stable@...r.kernel.org
>> > Fixes: 745b361e989a ("tpm:tpm: infrastructure for TPM spaces")
>> > Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>
>> > Reviewed-by: Stefan Berger <stefanb@...ux.ibm.com>
>>
>> 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?
>
>Hi
>
>Is that the preferred approach?
>
>I've usually followed this workflow:
>
>1. Mark patches with a fix to a regression with the fixes tag.
>2. If a merge conflict raises, I'll locate the deps.
>
>I've done it this way because often patches can depend on patches
>outside the patch set. Anyway, I'm open to change my workflow if
>that is required.
>
>/Jarkko

Hi Jarkko,

There's no "preferred" approach really. I try to warn about cases like
this early because the response rates to Greg's "FAILED" email seem to
be low - by the time they are sent out people are done with that code
and have moved on.

In this scenario, for exmaple, this patch would not apply to any stable
tree because it depends on a previous patch in this series that was not
tagged for stable. My hopes are that if I warn you about this early you
can work around this (for example, by marking that prior patch for
stable as well) so you won't need to deal with this patch again in a few
weeks.

There's no need to change anything about your flow if it works for you.

--
Thanks,
Sasha

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ